Jegway Rev0
The first version of my Jegway is implemented using just the Hitechnic gyroscope.
Here is a video of the device. You can hear Mythbusters, one of my favorite shows on the background.
I’m not going to include a lot of documentation for the Rev0 of the Jegway, but I’ll put up code for it. Basically with only a gyroscope, it’s very difficult to have the device stay upright. The drifting of the gyroscope makes the device tilt in one direction constantly and after a certain amount of time, it falls down to it’s doom. The only way (that I can think of) to compensate for the drift is to keep track of your position, and change the compensation depending on how far away you drifted from that position.
Here is the RobotC code. Leave a comment if you have questions.
Enjoy.

Entries (RSS)