Arduino-Based 2-Wheel Balance Bot

Arduino Robotics Technology
Arduino-Based 2-Wheel Balance Bot

Reader Shaun Crampton sent us the specs for the second prototype of his ArduRoller:

  • Chassis: laser cut 2.7mm bamboo ply (Ponoko); various M2.5 machine screws from Amazon; Instamorph low-melt-point thermoplastic to fill in the gaps.
  • Brains: 1 x Arduino Uno
  • Motor driver: 1 x Sparkfun Ardumoto
  • Motors: Sparkfun 2 x 24:1 gearmotor
  • Wheels: 1 set Sparkfun 70mm — repaired with Instamorph after they cracked around the axle
  • Gyro: 1 x ADXRS613 (Sparkfun breakout) mounted at the axis of rotation
  • Accelerometer: 1 x ADXL203CE (Sparkfun breakout) mounted at the axis of rotation
  • Batteries: 2 x 3.7V Li-poly 850MAh (Sparkfun)

There’s video here, and code and chassis files on GitHub. [Thanks, Shaun!]


4 thoughts on “Arduino-Based 2-Wheel Balance Bot

  1. Ryan says:

    I am attempting to make a similar robot to the one you describe here. I tried copying and pasting your code into Arduino IDE and this error came up when I tried compiling it “sketch_nov06b.ino:3:22: error: WProgram.h: No such file or directory
    sketch_nov06b.ino:4:28: error: cppboilerplate.h: No such file or directory”
    any ideas as to what I need to do to fix this?

    1. Matti Virta says:

      same proplem for me i try test thats code and make Aroller :( have ide ver,105 and alltime error compiler and no can adding cppboiler h file,many error alltime error stray 302 and many other..
      But wprogram i understand can change wprogram.h delete and adding Arduino.h and now error thats h library. i understand old wprogram have now new ide arduino.h file. what ilooking at net.

Comments are closed.

Discuss this article with the rest of the community on our Discord server!

I am descended from 5,000 generations of tool-using primates. Also, I went to college and stuff. I am a long-time contributor to MAKE magazine and My work has also appeared in ReadyMade, c't – Magazin für Computertechnik, and The Wall Street Journal.

View more articles by Sean Michael Ragan