With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Worked really well, each key press was correctly identified in the serial monitor window. I am new to arduino and am now trying to use the keypressed variable in a passcode script. Any advice or direction?
Wii Nunchuck as general purpose controller via Arduino board
Self-balancing Raleigh Chopper inspired electric scooter
Star Wars Maz Kanata Inspired Glasses
Self-balancing skateboard/segw*y project Arduino Shield
Self balancing one wheeled electric skateboard
Easy build self balancing electric skateboard
VW Beetle rear view camera
Wireless Wii Nunchuck controlled Arduino
Kindle Page Turner - 3D printed
Tangible Music Player: RFID card controlled iPodTouch
DIY Google Glass AKA the "Beady-i"
Arduino Self-Balance Controller using DIGITAL IMU, at last!
Arduino 3 wire Matrix Keypad
Nunchuck text-to-speech unit. Very low cost TVout/Arduino based
Have you noticed this has now been copied (too) in China?It is one of those hoverboards with a seat stuck on top essentially. Described as self-balancing so the nose wheel is just for starting and "landing" I assume. The levers twist each half of the hoverboard instead of doing it with your feet.
Hi Ira, great project. I bought an MPU6050 to try out as much cheaper than the IMU's I use. I notice from Jeff Rowberg's site that the Angle_Y value is derived from on-board sensor fusion between the gyro and accel within the 6050 (Kalman filter or something like that). Therefore you do not need to do the sensor fusion with a complementary filter on the Arduino at all, as you have at the moment. I have changed the balancing part of your code so it back calculates a rate of rotational tilting for the D term of the PID, I use Angle_Y for the P term and have an I term too. You then play with the P I and D constants listed at the top plus the overallgain value until it balances. It might work more smoothly as a result as I use a very similar method in my current one wheelers. I have sent you a PM as can email you the code to try out.Best wishesJohn
I have built a few self balancers using the Sparkfun Part No. SEN10121 IMU which also connects via I2C. I see some people here having trouble with their IMU not communicating well with the Arduino. Here is just my 2 cents worth but what worked for me was (i) to obtain some flexible thin lengths of coloured insulated wire by extracting them from some 9 core shielded cable (much easier to work with and keep everything neat between IMU and Arduino), (ii) keep these wires between Arduino and IMU really short, (iii) SOLDER the IMU wires to the Arduino rather than using push in pins. As my wires are thin I tin a 2mm uninsulated part at the end then solder that to the underside of the Arduino board where the relevant header pins just slightly poke through. (iv) I choose a common ground pin rather than using various GND pins on the Arduino (I have several to choose from as I use a Mega). Hope this may help somebody. I am not an engineer but have a huge amount of trial and error / falling-off experience!
Join 2 million + to receive instant DIY inspiration in your inbox.
Download our apps!
© 2016 Autodesk, Inc.