Society of Robots - Robot Forum

Software => Software => Topic started by: MasterRyko on June 20, 2007, 09:56:28 AM

Title: $50 robot programming help
Post by: MasterRyko on June 20, 2007, 09:56:28 AM
Instead of having two servo motors, I have one servo motor in the front and one regular motor in the back.  I was wondering if anyone knew any good code that could help me with these two kind of motors.  Thanks!
Title: Re: $50 robot programming help
Post by: rgcustodio on June 20, 2007, 11:09:27 AM
You can drive the servo with minimum code and electronics, you just need to be able to create a pulse that is x milliseconds in width.

For standard DC motors you need a continuous current running to the motor which your MCU might not be able to provide or handle. That is why most DC motors require H-bridges. When you have an H-bridge running the motor is as simple as generating a PWM signal. So your first priority is sticking an H-bridge to your robot if it doesn't have any yet.

Search and read the forums:
http://www.societyofrobots.com/actuators_dcmotors.shtml (http://www.societyofrobots.com/actuators_dcmotors.shtml)
Title: Re: $50 robot programming help
Post by: Admin on June 27, 2007, 07:35:09 PM
I'd recommend just buying a motor driver (that has an H-bridge (http://www.societyofrobots.com/schematics_h-bridgedes.shtml) already done for you). It'll save you tons of time.

(I know because I started motor control back when motor drivers were really expensive)