Wishful Coding

Didn't you ever wish your
computer understood you?

NXTbike

I designed this robot to experiment with so-called “single track vehicle dynamics”, or in other words, balancing on a bike.

The challenge with designing a motorcycle like this is keeping he wheelbase short, and positioning the steering motor in a sturdy way.

The program for this robot is based on the principle of “steer into fall”, which means that if the bike leans over to the right, it needs to steer right to correct that.

A problem that I have with this robot is detecting the angle of the robot. The ultrasonic sensor is not precise enough and my floor not uniform enough to use the light sensor, like the NXTway does.

If you have a very uniform floor, you could use my code, but it is probably best to get a HiTechnic gyro with the software from this guy:

If you want to build this model, you need some extra wheels, check the parts list.

Download building instructions