Society of Robots - Robot Forum

Software => Software => Topic started by: extreme.aly on August 01, 2007, 06:07:03 AM

Title: move a motor anti-clockwise
Post by: extreme.aly on August 01, 2007, 06:07:03 AM
i got a normal motor (got from playstation 2 controller for vibration) and i want to make that motor to move in opposite direction... what code should i use... do i use the same as for servos?
Title: Re: move a motor anti-clockwise
Post by: hazzer123 on August 01, 2007, 06:18:57 AM
Im guessing that you are using a microcontroller...

You can't do the same thing with a normal DC motor as with a servo. You need you use something called a H-bridge. http://en.wikipedia.org/wiki/H-bridge (http://en.wikipedia.org/wiki/H-bridge).

That should be plenty of info.
Title: Re: move a motor anti-clockwise
Post by: extreme.aly on August 01, 2007, 06:35:20 AM
yea i'm using a microcontroller... can we make a H-Bridge?? or is there any other motor which can be moved in both direction?

a normal RC-Car uses which motor?
Title: Re: move a motor anti-clockwise
Post by: Admin on August 01, 2007, 01:14:20 PM
This should answer your questions before you get them . . .

http://www.societyofrobots.com/robotforum/index.php?topic=602.0

Search the forum for motor driver.
Title: Re: move a motor anti-clockwise
Post by: extreme.aly on August 02, 2007, 07:35:57 AM
could not find any thing related of what i want... :(
Title: Re: move a motor anti-clockwise
Post by: Hal9000 on August 02, 2007, 07:52:03 AM
try buying a lm298 motor driver IC. This is what I intend to use.
Title: Re: move a motor anti-clockwise
Post by: Gertlex on August 02, 2007, 11:35:22 AM
You could do what I did (because I was using only a servo controller)... I devoted a servo to switching polarity... I've got it set with three options: forward off reverse.  It's kind of poorly made, but it's something I plan to improve on in the future. I just need to get better materials before I do.

Here are two pics that might give you an idea of how I'm doing this... I'd need to take it off the car for better pics.
http://www-personal.umich.edu/%7Eerelson/ModeServo01.png
http://www-personal.umich.edu/%7Eerelson/ModeServo02.png