Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Balancing AVR Mega168

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
18,032
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 13, 2008

Balancing robot using AVR Mega168 and a Ping))) ultrasonic sensor to keep balance.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (RoBotXro)

  • Also, the Ping sensor should be kept perpendicular to the surface at all times, even when the robot is tilted to be able to receive a continuous line of measurements. But because the sensor is tilting with the robot, the measurements get out of range so sometimes it will think is tilting one way but instead it is tilting the other way so instead of recovering it will fall faster.

  • Any continuous rotation servo is able to rotate at different speeds by adjusting the pulse around the 1500 microseconds that should be the stop value. But it has a small range of adjustment, that means the servo will reach the max speed way before the 1000 or 2000 microseconds pulse. In my case, I have about 300 microseconds to play with each way. Unfortunately the servos are not speedy enough to recover if the robot is falling after about 5-7 degrees.

  • Yes, it reads the Ping sensor (distance to the surface), compares it to the value from the potentiometer and if there is an error, a PID control will adjust the motors speed and direction to restore the balance.

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • the data which you provided is it sufficient to build the same robot?

  • I'd put wither two pings on it, one on each side, and rely on the one with "nearest" measurement for balancing, or just use an accelerometer instead.

  • nice piece man!

    may I ask how you managed to control the speed of the servo motors??

    I'm trying to find out a way to do that, in order to build my balancing robot..

    thnx in advance..

  • thats hot

  • So basicaly it is balanced because if the ping is less or more then a certain amount it turns the motor to get it back in the correct place?

  • nice, can we have more details?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more