I have a pololu micro metal gearmotor (Pololu item #: 1101) and I have connected it to a magnetic encoder from pololu as well. I then connected this to a tb6612fng from adafruit and am wondering if I need to use the pwm pins on it as I don't need speed control in my project. Will it still work if I don't use them?
`
There is no need to apply a PWM signal if you don't need speed control, however the PWM pin must be high for the motor to run.
There is a pulldown resistor on the PWM input, so it needs connecting to something to make it high - might as well use an Arduino digital output.
See the table below from the Sparkfun TB6612FNG hookup guide:
In1 | In2 | PWM | Out1 | Out2 | Mode |
---|---|---|---|---|---|
H | H | H/L | L | L | Short brake |
L | H | H | L | H | CCW |
L | H | L | L | L | Short brake |
H | L | H | H | L | CW |
H | L | L | L | L | Short brake |
L | L | H | OFF | OFF | Stop |
Don't forget STBY must be high for the motors to drive.
So I can just connect it to a pin and set that pin from high to low depending on the state I want to put the motor into without fiddling with the pwm controls?
Hi,
Yes.. it doesn't have to be a PWM capable pin.
Tom..
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.