Society of Robots - Robot Forum

Software => Software => Topic started by: nckspec on April 01, 2008, 01:11:22 PM

Title: programming $50 Robot
Post by: nckspec on April 01, 2008, 01:11:22 PM
void robot_go_straight(void)
   {
   servo_left(25);
   servo_right(44);      I don't understand how this code would make it go straight if the left servo would go faster than the right.
Title: Re: programming $50 Robot
Post by: Webbot on April 01, 2008, 02:01:57 PM
A value of 25 makes the wheel turn full speed one way, 44 makes it turn full speed the other way. And a value of about 35 will make it stop.

The reason why the bot goes forward is that the motors are on the sides of the robot (ie one is flipped over in relationship to the other). So one has to go clockwise and the other anti-clockwise for the bot to go forwards.

Title: Re: programming $50 Robot
Post by: superchiku on April 03, 2008, 12:18:09 AM
u should have seen later posts on the same topic, everything is clearly explained