Hot answers tagged

1

As far as I can tell from the picture you share that you don't have an external power supply connect to the shield to drive the "12 DC motors". Read https://learn.adafruit.com/adafruit-motor-shield/power-requirements for better understanding on how to power the motors.


1

Assuming that your motor is connected to pin 8, and you want to set that signal high, you have to define it: #define motor 8 void setup() { pinMode(8, OUTPUT); } void loop() { digitalWrite(motor, HIGH); // put your main code here, to run repeatedly: } Since you use it also in setup, also replace it there: #define motor 8 void setup() { ...


Only top voted, non community-wiki answers of a minimum length are eligible