cditty wrote: ↑
Thu Aug 29, 2019 6:17 pm
I'm trying to control 1 motor
from a raspberry pi zero w. I just need it to spin one direction for x seconds and then another direction for x seconds. Do I need a motor controller board for that? I'm looking at the gpiozero modules
to control it and it doesn't show a controller board so I'm confused.
Can someone school a newbie please? Thanks
You have apparently only looked at the Simple Recipe for gpiozero. But the Motor documentation there does
show a breadboard with a chip on it between the RPi and the motor - that chip must be there for a purpose... it is the H-bridge controller.
The full documentation is more explicit:
Attach an H-bridge motor controller to your Pi; connect a power source (e.g. a battery pack or the 5V pin) to the controller; connect the outputs of the controller board to the two terminals of the motor; connect the inputs of the controller board to two GPIO pins.
Ref: https://gpiozero.readthedocs.io/en/stab ... html#motor
connect a motor directly to your RPi, even to run it in one direction. Catastrophic/fatal/permanent damage to your RPi can result.