Control a robot with the Macbook’s accelerometer.

We have already seen other times how to give various uses to the motion sensor, also known as an accelerometer, which incorporates the Macbook. The one that we bring you today allows you to control a Lego Mindstorms NXT robot, just by tilting the laptop sideways to change its direction, or back and forth to change its direction of travel. The connection between Mac and the NXT is done by Bluetooth, and thanks to a two-line script written in Cinderella that captures the information from the accelerometer and processes it, it is possible to send the information to the robot.

Since I was at the inauguration last week of the Lego Mindstorms Robotic Center in Madrid, I have had long teeth. It’s time to get the NXT out of the closet (I don’t think it affects his sexual orientation) and write an entry in SamaGame about the programming of the same in Mac. Let’s see if I can find some time and get on.