Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: mohamed on April 10, 2008, 04:35:50 AM

Title: help with the serovs
Post by: mohamed on April 10, 2008, 04:35:50 AM
now after i done modifying the servos',then i plugged them to my circuit(50$ robot)
the servo which is plugged to the pd0 bus isn't rotating but the one which is plugged to pd1 works fine
also there another question i modified the two servos without using the hex file that make the servo to stop i just began to rotate the pot until the servo stopped the i glued it so if there is a Small difference in the speed of both servos does that make any problem or not?
Title: Re: help with the serovs
Post by: Trumpkin on April 10, 2008, 08:27:23 AM
yep that's a problem.
Title: Re: help with the serovs
Post by: mohamed on April 10, 2008, 12:22:36 PM
OK if that's a problem what should i do to fix it?!!!
thanks
Title: Re: help with the serovs
Post by: Trumpkin on April 10, 2008, 02:41:16 PM
IF you used super glue to modify the servos use some nail polish remover and a Q-tip to remove the super glue. then download the modify servo code and redo it.
Title: Re: help with the serovs
Post by: Admin on April 14, 2008, 07:15:49 PM
Nah its not a big problem if they are close in speed.

You can tweak it in code. Just look for where the servos are given speed commands, and modify the number by small amounts until it balances the way you want.
Title: Re: help with the serovs
Post by: mohamed on April 16, 2008, 12:15:40 PM
i have a question....when the robot detect the light the servos move forward but when the robot detect dark the servo stop or reverse it's rotation?!!!
coz mine when i put my hand in front the photoresistor it make a slow reverse rotation
Title: Re: help with the serovs
Post by: superchiku on April 16, 2008, 12:33:04 PM
thats what they were designed to do , the 504 robot is not only an obstacle avoider but also a photovore which means that it will move towards light..
Title: Re: help with the serovs
Post by: Webbot on April 16, 2008, 01:18:35 PM
Suggest you try doing the 'hold_a_servo' again. Sometimes the process of applying the glue or putting everything back together when not 100% dry can undo your glue work. So check they are still centered - and make sure you are using a freshly charged battery pack when doing so.