Archive for April, 2011

New code for the motor part of the X-bot

Posted in Arduino, Processing, Self balancing robot on April 22nd, 2011 by x-firm – Comments Off

I have recoded the motor part and added the encoder for the other motor and made a PID for each motor that takes the output from the current PID. This for trying to get the two motors to behave equal. The original PID is only looking on the right motor encoder as before. But I’m calculating the current speed in pulses/10ms for each motor and then using that and the output from the old PID to control the motors for a requested speed in pulses/10ms..

That feels better than just sending a value of 0-255 that has no connection to the speed of the motor that are depending on the surface and battery level.

I have made a new sketch for the bot and a GUI to make settings and testing the motor PIDs you can download it from this links:
Motor_PID_Enc_v2 (Bot code)
Motor_PID_Enc_v2 (GUI)

Nice balancing bot controlled by a WiiMote

Posted in Arduino, Self balancing robot on April 6th, 2011 by x-firm – Comments Off

Found a nice robot that was built and programed using parts of the Balancing Robot For Dummies guide. A nice looking bot..

The most interesting is that he has the WiiMote connected directly to the Arduino true a USB HID shield.. Instead of having both the bot and the WiiMote connected to a computer that acts as a gateway..

More information here..