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.
Hi,
I dont know when you published this, but i’ll be happy if you could include documentation on your model because i am working on an NXT segway too
@Srikanth. This was ages ago. Any Lego setup with two wheels on the bottom will work, you’ll just have to tweak the PID values in the software.
-J