Society of Robots - Robot Forum
Software => Software => Topic started by: Choco_liger on April 24, 2010, 08:07:14 AM
-
Hello. I just completed the 50 dollar robot and it's pretty good.
All except for one flaw.
My servo's were turning really slow when trying to turn a certain direction. So I changed the signal number thingy to different values. I think because of some I may have done or may have not done, because now instead when the light is equal on both sides of my robot, it seems to move away from it rather than move towards it.
Apart from that it's fine as it can turn left and right towards the light.
I am pretty sure it's because I put different values for the servo's.
So basically I was just wondering how I can change this.
Sorry for bothering you... :-\
-
(I properly know less than you)
You can swap the code round so whatever is in the while left is brighter than right has the code in the while right is brighter than left (vice versa)
I'm sorry if this is confusing: I think I have worded it badly.
-
Shouldn't the robot move STRAIGHT when the light is equal on both sides?
-
It moves straight but backwards for me.
-
Swap the servos around?
-
Sorry for bothering everyone.
I changed the threshold and now's it's all ok. :D
Thanks for the help and advice though.
-
Swap the servos around?
I like your advice! Ha ha