PDA

View Full Version : How do I use the VNH2SP30 IC?



librab103
09-05-2008, 04:16 PM
Hey everybody,

I have the Pololu MD01B that I was going to use with a project way back when and was thinking about using two of them to drive the motors for my soccer bot. The problem is I can,t seem to get it working. What is the code used to turn the motor CW and CCW. Thank you and talk to you later.

Adrenalynn
09-05-2008, 06:26 PM
It's PWM - just like a servo. Have you tried hanging it on a servo controller?

I'd say something like APPROXIMATELY 1500uS center point, above that is forward, below is backward. Once you get it working, you'll of course have to trim it out.

librab103
09-05-2008, 07:17 PM
i would code to it like i would for a servo right? Pin high, delay, pin low right? loop

EDIT: After JonHylands was patient enough to help me understand how to use the VNH2SP30 and a about 30 minutes of troubleshooting some wiring issues I've got it to work. YA me. Unfortunately, the motors I have right now are PC fans and they seem to only go one way.... I am going to hack one of them up and see if I can get it to spin both ways. Thanks again to JonHylands.

I have attach the code for viewing.