I spent a weekend putting together a prototype on a piece of 3/4" plywood and tweaking the code to work with the Accelerometer/Gyro that I was using. The code was the most difficult part.
Major parts I am using are: * 2 - 250W motors (from a Razor E300) * 2 - 6" wheels (from a Razor E300) * Sabertooth dual 25A motor driver * Arduino (this does all of the processing of the signals from the Accelerometers and Gyros and determines the signal to send to the motor controller.) * MinIMU-9 v2 Gyro, Accelerometer, and compass * 2 - 7aH Sealed lead acid batteries
I even took this board out in front of my house and was able to ride around on it. But I don't have turning hooked up yet.
This video shows that it is balancing well on it's own. The wire I'm holding is for the dead man switch to cut power to the motors if something bad happens.
Next will be adding a skateboard deck, turning, LED lights, buzzer, proximity detection, etc.
I'm thinking about doing the same thing and was glad to run across this article. I'm new to all of this and was wondering if you had a schematic that you worked from or did you go from the TLC5940 data sheet. Also Sparkfun has a TLC5940 breakout board that I was thinking about using in conjunction with the common anode LEDs you used https://www.sparkfun.com/products/10616?, do you have any thoughts on using it?
I created my own schematic using both the ATMega328 datasheet and the TLC5940 datasheet.
I tested the design and operation on a breadboard before creating the circuit boards.
Since trying to create a one layer circuit board to hold all of the IC's and connectors was not really possible without a lot of jumpers, I decided to go with 4 circuit boards with the same type connectors that the arduino uses.
The sparkfun breakout board would be good to use if you want to become familiar with them or don't have a way of etching your own circuit boards. Just remember that you'll have to buy a bunch of these to control a whole staircase full of RGB lights. I've actually been thinking of designing a kit to allow DIYers to purchase that will be enough to control 15 stairs with RGB LEDs and will have an arduino integrated. But this is still a ways off.
The RGB LEDs used are diffused common anode type that I picked up off of eBay. They have a rated luminous intensity of 8,000mcd at 20mA.
I have not done anything further with the stairs lately. I have determined that the pressure sensor are not going to work in my setup long term in the way I have them. I have the pressure sensor centered between 2 stainless plates with a dab of hot glue on either side to focus the pressure on the sensor. Then I put a dab of hot glue at each corner to hold the plates together. It works great for a while but then the hot glue starts breaking down with the continuous walking on it. I've thought of changing from the hot glue to little rubber pads but have decided to use infrared distance sensors instead.
The sensors have a limited range of about 3 feet so going across the stair case will work great. The pressure sensors use only 2 wires whereas the infrared sensors use 3 wires. To install these, I have to either hack in these to my existing board or I have to re-create the top board. For simplicity, I will likely just hack in the sensors to my existing board.
In my design, there are 3 PCBs to control each of the colors for the LED and the top board has the ATMega IC and the positive connectors for all the LEDs. If I had to redo this all over again, I would spend the extra money to have a single 2 sided board made to allow me to easily plug each LED into its own connector rather than having to plug each leg of the LED into its own board. This would make it easier to create something that is marketable to others interested in doing the same thing and would have saved me hours of wiring this up in my closet under the stairs. But once installed, it has worked flawlessly.
If anyone downloaded my fritzing file for the 5x5x5 cube and still has it, can you send it to me please?
Norton backup sucks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Even though I was backing up the my documents folder, it skipped file types it didn't recognize. Way to go Norton!!!!!!!!!!!!! f'ing pissed. Lost a lot of my projects.
I plan on building a Segway type vehicle this summer and started purchasing parts. I have the motors, batteries and just got in the speed controllers. Problem is.....I ordered the wrong speed controller and realized it 30 minutes after ordering it! Let this be a lesson....Don't purchase from eBay late at night when you've had a couple drinks! lol
So I received 2 - 30A speed controllers that are not reversable. So now I'm trying to think of how I can use these for my project or another project that may only require a single motor. Can I use each of these to power a different direction with a diode on the output to protect it from reverse voltage/current? Any other suggestions would be helpful.
I plan on building at least a couple different vehicles....segway like, balancing skateboard and perhaps a lawnbot. So now just looking for a way to utilize these and not have to try to resell them.
So I screwed up the two 5M strips I bought. Totally my fault. I put my power supply in series mode to get more from it but didn't adjust the voltage prior to pushing the button. I fried the strip and my arduino!
The second strip was after adjusting my voltage down to 5v but not realizing (nor was it well documented) that the display showed only 1/2 of the voltage in each so in actuality I was feeding 10v to the strip. GRRRRRRRR. Another strip fried but the arduino survived. I didn't realize what was going on until I put a meter to the output of the power supply.
So now I have 10M of the LPD8806 strip that doesn't work. Another project for myself is to fix these at some point. I already have plenty of ICs and plenty of 5050 RGB LEDs but have to figure out how to isolate the bad chips and replace just those. Fun, fun.
In the meantime, I ordered and received another 25M of these strips (5 - 5M spools). I got these all tested out and they are working great. I also hooked up two in series (both strips powered from both ends but data lines fed from one to the other) and the arduino controlled all 320 lights with no problem in any of my lighting routines.
I also bought a 20A, 5V power supply from eBay that is powering both strips very well.
Anyhow, I was thinking of selling some of the latest order if anyone is interested. It would be the exact same as what is bought off Adafruit but cost much less. Not sure if I'll just throw them on eBay by the spool or by the meter yet.