制御用のArduinoには 秋月電子通商 の Arduino Pro Mini 互換の AE-ATMEGA328-MINI を用いました。 搭載されているCPUはATmega328P (5V)です。 LED3個とスイッチ1個、ロータリーエンコーダのAとBの端子2個をArduinoの適当なデジタル入出力端子に接続します。
秋月電子通商で購入できる「LED付ロータリーエンコーダー(赤)ツマミ付セット」をESP32で、1msec間隔でポーリングして、AとBの値を監視して、グラフにしてみる実験。 理想では、「右回り (CW): 00 → 10 → 11 → 01 → 00」、「左回り (CCW): 00 → 01 → 11 → 10 → 00 ...
"RoboCore-BRIICK-Encoder-lib" is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Licenseas published by the Free Software Foundation, either ...
Four wheel DC motor car controlled by ESP8266 wifi module via L298N Motor Driver module along with PWM, with Arduino sample control code. This project involves building an Arduino-based auto-driving ...