Hi everybody, I’m a noob both here and with electronics in general. I’m trying to get a DC motor working with my ESP32, using a motor driver board TB6612FNG. It doesn’t do anything after I upload the sketch.
Here’s how I hooked it up:
VM → 9v battery positive
VCC → 3.3v output pin 1 from ESP32
GND → 9v battery negative
A01, A02 → DC motor
STBY → GPIO27 (11)
AIN1 → GPIO14 (12)
AIN2 → GPIO12 (13)
PWMA → GPIO13 (15)
GND 1, GND 2 → GND (14)
I copy/pasted this sketch without modifying it:
I was able to measure 3.3 volts on the TB6612 VCC, and 8.9v from the VM. But the motor doesn’t move (if I hook up the battery directly to the motor is does). The Serial Monitor prints the Loop message so I know the sketch is running on the ESP32 properly.
Any ideas? This is driving me nuts!
Thanks in advance,