Balancing AVR Mega168
Loading...
18,032
Loading...
Uploader Comments (RoBotXro)
see all
All Comments (6)
-
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...
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.
RoBotXro 2 years ago
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.
RoBotXro 2 years ago
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.
RoBotXro 2 years ago