Author Topic: $50 robot programming help  (Read 4514 times)

0 Members and 1 Guest are viewing this topic.

Offline MasterRykoTopic starter

  • Jr. Member
  • **
  • Posts: 9
  • Helpful? 0
$50 robot programming help
« 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!

Offline rgcustodio

  • Robot Overlord
  • ****
  • Posts: 217
  • Helpful? 0
  • Use "Search" and ye might find answers!
Re: $50 robot programming help
« Reply #1 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
The best thing one can do when it's raining is to let it rain. - H. W. Longfellow

understanding is the path to enlightenment

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: $50 robot programming help
« Reply #2 on: June 27, 2007, 07:35:09 PM »
I'd recommend just buying a motor driver (that has an H-bridge 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)

 


Get Your Ad Here

data_list