go_away

Author Topic: Help with $50 robot using ATMega168p  (Read 646 times)

0 Members and 1 Guest are viewing this topic.

Offline MtnbikerETTopic starter

  • Beginner
  • *
  • Posts: 6
  • Helpful? 0
Help with $50 robot using ATMega168p
« on: October 30, 2010, 05:21:38 PM »
I compiled the source code, hooked everything up, but for some reason, my robot just spins in circles. Thats all it does. I tried changing the code, but it always just spins in circle. Help please?

I can post videos if you want.

Offline knossos

  • Robot Overlord
  • ****
  • Posts: 278
  • Helpful? 14
Re: Help with $50 robot using ATMega168p
« Reply #1 on: October 30, 2010, 10:56:42 PM »
We would need more information, but first thing I would check is to make sure one motor or servo is inverted from the other (they should be inverted, either in software, or physically, depending on what types of motors or servos you are using and how you are driving them).  Easy way to check this is to pick up the robot and see if the wheels are spinning the same direction when it is supposed to be moving forward. 

Second, the wheels could be spinning at different speeds.   If so, then the robot would constantly turn in one direction.  There are many reasons that this might happen such as (in no particular order) differing motor performance (even on two identical motors), electrical design of circuit, insufficient power to a motor, uneven weight distribution, etc etc.  Encoders can help to resolve this, or you can fine tune them by adjusting how they fast they are driven in software.
"Never regret thy fall,
O Icarus of the fearless flight
For the greatest tragedy of them all
Is never to feel the burning light."
 
Oscar Wilde

 


Get Your Ad Here