Oct 8, 2011

Segway balancing with Dexter Industries IMU Sensor


Recently I have been reprogramming my NXT Segway. The code is now much cleaner, and it also made it easier to implement Dexter Industries' latest sensor, the 6DOF IMU. The Segway runs around the room while avoiding objects with its ultrasonic sensor. This isn't new, but it's a nice demonstration of Dexter's new sensor.

In this robot I'm just using one "Degree of Freedom", namely one gyro axis. Other axes could be used for elementary navigation like making a 90-degree turn. The acceleration sensor could help determining whether the robot has run into an obstacle. Much interesting work left to do here!

5 comments:

Steve said...

Looks great! Are you willing to share the code?

Laurens Valk said...

Steve, yes that's the plan :)

I'm going to try making an NXT-G 'translated' version since not everybody has RobotC.

NickNackGus said...

How about an NXC version? Actually, just post whatever you have, and let others translate if they want. Then you can move onto your next program/robot!

Steve said...

I'd be all over the RobotC version.

Toby Foote said...

The IMU Sensor is a great new sensor. Would love for it to look a little nicer (cover it in white plastic), but it's very functionable. For a similar blog on this sensor, see Classroom Antics article on the New LEGO NXT Sensor: Inertial Motion Unit.

Related Posts Plugin for WordPress, Blogger...