Page 1 of 1

DRV8835 dc motor driver

Posted: Sat Jan 02, 2016 4:55 pm
by craigching
I have my DRV8835 all pinned up and I'm ready to start playing with motors :D

I have two of these motors.

The wiki has this page about a dual DC motor driver. Is that and the accompanying pwm module going to be a good start for me? I have separate power for the motors (4 AAA battery holder) and I am confident I know how to connect everything, just looking to confirm before I get started. My goal here is to simply play with motors for now to learn and understand what I'm doing.

Thanks for any help or pointers!

Re: DRV8835 dc motor driver

Posted: Sat Jan 02, 2016 8:16 pm
by dhylands
That looks good. I generally like to use a PWM frequency which is above 20 kHz, which puts the motor whine outside of the audible range. The 8835's are good for upto 250 kHz, so that should work well.

You'll want to start out with MODE high and use the PHASE/ENABLE mode. Then ENABLE gets the PWM signal and PHASE gets a GPIO for determining direction.

And generally speaking, you should make sure you stop the motors before changing direction.

Re: DRV8835 dc motor driver

Posted: Sat Jan 02, 2016 9:36 pm
by craigching
Awesome, thanks a lot Dave, I really appreciate the help I get here! :D