Step 20Arduino board
My previous machines used robotics AVR boards but the Arduino is cheap, has huge active forums if you get stuck, books on how to get started and is easy to program and load software onto via a USB lead.
Code: send me a message with your email and I will respond.
Past versions of the code and how it has developed can be seen on my website of past self-balancing projects:
http://sites.google.com/site/onewheeledselfbalancing/
This diagram comes out small so I have enlarged sections of it on next 2 pages.
Code examples for this project attached to pages 43 - 47 of this Instructable.
| « Previous Step | Download PDFView All Steps | Next Step » |


























































































I see your using pull down resistors for all the inputs.
I think it may have already been mentioned but instead of all the resistors you can use the atmegas internal 20k pull up resistors. you can do so with the following
pinMode(pin, INPUT); // set pin to input
digitalWrite(pin, HIGH); // turn on pullup resistors
this makes them a steady 5V in which you can reverse the check of the inputs to see if they are "LOW" then trigger.
First off: great project, thanks for sharing your knowledge!
I'm trying to build a similar project, and I'm following different instructables for this. (I must say yours is the biggest part, lol)
Could it be possible to get the code you wrote, for the Arduino ?!
(It's just that I don't want to invent 'hot water', when it was allready invented, years ago. Plus I'm more able to adapt code than to write it from scratch. I guess I'm not smart enough for that, lol)
My email is : Xained@gmail.com
Thanks for your time,
Keep on building !
Xai Ned
If having problems come back and I will email it to you.
best wishes
John