#define IN1_PIN 8 // ULN2003 IN1 → Arduino pin 8 #define IN2_PIN 9 // ULN2003 IN2 → Arduino pin 9 #define IN3_PIN 10 // ULN2003 IN3 → Arduino pin 10 #define IN4_PIN 11 // ULN2003 IN4 → Arduino pin 11 ...
今回は、Arduinoとステッピングモータ(28BYJ-48)を使って、スイッチで回転制御する実験を行ったので、備忘録としてまとめておきます。 Stepperライブラリを使って簡単にステップ数指定で回転 スイッチには INPUT_PULLUP を使うことで、部品数を減らしつつ ...
It’s fair to say that building electronic gadgets is easier now than it ever has been in the past. With low-cost modular components, there’s often just a couple dozen lines of code and a few jumper ...