Quote:
Originally posted by MattK
...
If you have something on this platform, and you play it in front of the axle it will go forward correct? Now if you leave it in the same spot, will it gather speed as it moves forward or will it keep a constant speed?
Does anyone know of any balancing code that is available?
Does anyone know how to program or how to go about programing a "Speed limiter". Lets say the object is going to fast the platform will tilt back to keep it going below the top speed?
Thanks,
Matt
|
When you tilt forward or backward you apply a force to the robot that is tan(tilt)g. When vertical (0 deg tilt) you have zero force parallel to the ground. At a 45 deg tilt you have 'g' force.
As you know from physics Acceleration = Force * mass. So, with a constant tilt, your platform will accelerate at a constant value determined by 'g', the tilt and the mass of your platform.
My balancing robot
http://www.barello.net/Robots/Gyrobot uses a FIRST supplied gyro. I augmented it with an Analog Devices tilt sensor so long term drift would not affect the balance.
I am not great with the math, but do a search on "Joe Pendulum" to see an excellent balancing platform that uses just one gyro and wheel encoders to do the job. Other balancing robots you can search for: nbot and "fire marshall bill"
Cheers!