Author Topic: programming $50 Robot  (Read 1624 times)

0 Members and 1 Guest are viewing this topic.

Offline nckspecTopic starter

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
programming $50 Robot
« 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.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,132
  • Helpful? 108
Re: programming $50 Robot
« Reply #1 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.

Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline superchiku

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
Re: programming $50 Robot
« Reply #2 on: April 03, 2008, 12:18:09 AM »
u should have seen later posts on the same topic, everything is clearly explained
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

 


Get Your Ad Here