DRV8835 dc motor driver

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
craigching
Posts: 7
Joined: Sat Nov 28, 2015 2:14 pm

DRV8835 dc motor driver

Post by craigching » Sat Jan 02, 2016 4:55 pm

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!

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: DRV8835 dc motor driver

Post by dhylands » Sat Jan 02, 2016 8:16 pm

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.

craigching
Posts: 7
Joined: Sat Nov 28, 2015 2:14 pm

Re: DRV8835 dc motor driver

Post by craigching » Sat Jan 02, 2016 9:36 pm

Awesome, thanks a lot Dave, I really appreciate the help I get here! :D

Post Reply