メニュー
▼ アクセス(地図)
▼ Windowsアプリ開発 ▼ マイコン開発 ▼ CGI・PHP制作 |
▼ サイトマップ(全投稿記事)
▼ タイトル(画像一覧) ▼ 事業内容 |

お問い合わせメールフォームが開きます。
2020年01月27日
ニコタワープチ・VT02P-D24T2のUSB接続

USB接続対応のパトライトは価格が若干高いので
日恵製作所のニコタワープチ 「VT02P-D24T2」とUSBシリアルI/F IC FT232RL を組み合わせてみました。
(2端子だけなのでパラレルI/Fは使わず、シリアルの制御端子を利用)
日恵製作所 「VT02P-D24T2」の接続図

USBシリアルI/F IC FT232RL との接続

Visual Basic では上記回路と下記のようなコードでOn/Off制御できます。
SerialPort1.Open()
SerialPort1.RtsEnable = True
SerialPort1.RtsEnable = False
SerialPort1.DtrEnable = True
SerialPort1.DtrEnable = False
今回は緑赤の2色でしたが、3色以上は別途工夫が必要です。