This program demonstrates Self Balancing System.
The idea is that the system has sensor (like gyroscope) which tells its banking angle. Then system changes only velocity of bottom end of the stick. Gravity does the rest.
See Segway and Dynopower for real life products.
SDL library is used for graphics.
Linux (gcc)
balance.tgz (16k) source
Windows
Animated GIF (137k)
markku (dot) t (dot) korsumaki (at) mbnet (dot) fi
Back to home (code::web)
Last modify: