KeiganPiとは

[KeiganPi] スターターキット 各種

KeiganPi とは、KeiganMotor を素早く動作させる為に開発された「RaspberryPiにプログラミング環境を組み合わせた製品」です。
ビジュアルプログラミング環境にはNode-REDを採用し、PythonやNode.js向けのKeiganMotor用APIもインストール済みです。※スクリプトでの開発も可能


ご購入後すぐにKeiganMotorを動かせるため、 面倒な設定も一切不要です。

 

物理PUSHボタンの取り付け方法

KeiganPiには3ボタンの物理PUSHボタンが同梱されています。
下図を参考にGPIOヘッダーへ接続して下さい。

物理PUSHボタンの動作確認

 

 

取付け後、以下のデータをコピーしてNode-REDから動作確認できます。
Node-REDエディタの右上メニュー>[読み込み > フローをクリップボードから読み込み]で表示されたウインドウに貼付けしてください。

[{"id":"a409b98.b604648","type":"tab","label":"ボタン動作テスト","disabled":false,"info":""},{"id":"80cdc238.7f9de","type":"rpi-gpio in","z":"a409b98.b604648","name":"","pin":"37","intype":"up","debounce":"25","read":false,"x":180,"y":160,"wires":[["45172390.58b7cc"]]},{"id":"45172390.58b7cc","type":"debug","z":"a409b98.b604648","name":"緑ボタン","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":400,"y":160,"wires":[]},{"id":"7f302776.561848","type":"rpi-gpio in","z":"a409b98.b604648","name":"","pin":"35","intype":"up","debounce":"25","read":false,"x":180,"y":220,"wires":[["2b61df02.4c3b"]]},{"id":"d4ea63dd.c609f","type":"rpi-gpio in","z":"a409b98.b604648","name":"","pin":"33","intype":"up","debounce":"25","read":false,"x":180,"y":280,"wires":[["53656554.05b94c"]]},{"id":"2b61df02.4c3b","type":"debug","z":"a409b98.b604648","name":"黄色ボタン","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":410,"y":220,"wires":[]},{"id":"d1a8485c.756e48","type":"comment","z":"a409b98.b604648","name":"33,35,37番ピンに接続","info":"","x":120,"y":60,"wires":[]},{"id":"53656554.05b94c","type":"debug","z":"a409b98.b604648","name":"赤ボタン","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":400,"y":280,"wires":[]},{"id":"4fdf1b9a.d510a4","type":"comment","z":"a409b98.b604648","name":"物理ボタン押下で「0」離すと「1」","info":"","x":260,"y":120,"wires":[]}]

 

Node-RED基本的な使い方はこちら