Show HN: I built a Raspberry Pi/Android driven toy car
This is the current iteration of the car: http://i.imgur.com/ko8YBh.jpg
Details:
I wrote a simple android app that streams the accelerometer data from the phone to the pi over a simple socket. The pi then uses this data to drive the DC motor and the servo motor. Tilting the phone to control the car feels very natural.
In this[0] pic you can see the wifi dongle I've used. I am using Adafruit Occidental v0.2[1] as my OS because it has support for my wifi dongle. It also makes some hardware interaction easier and comes pre-installed with some good python libraries.
Here[2] is a picture of the breadboard. I am using the L293DNE[3] hbridge chip for DC motor control. The two black wires you see coming off the board connect to the motor.
In this[4] pic is the battery pack I am using to power the pi. I purchased it on amazon here[5]. Here is a pic[6] of the battery pack I am using for the DC motor.
Here[7] is a closeup of the steering servo. It is an HS-55[8] and I power it directly from the pi's 5v rail. To control it I use the servoblaster kernal module[9].
My next plans are to add some sensors and make it autonomous. Let me know what you think.
[0] http://i.imgur.com/w0PIk.jpg
[1] http://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro/occidentalis-v0-dot-2
[2] http://i.imgur.com/hhogr.jpg
[3] http://www.mouser.com/ProductDetail/Texas-Instruments/L293DNE/?qs=sGAEpiMZZMtYFXwiBRPs0wSafWlCmJbc
[4] http://i.imgur.com/3t6NG.jpg
[5] http://www.amazon.com/PowerGen-External-Blackberry-Sensation-Thunderbolt/dp/B005VBNYDS
[6] http://i.imgur.com/zpgyj.jpg
[7] http://i.imgur.com/b8Qnc.jpg
[8] http://www.servocity.com/html/hs-55_sub-micro.html
[9] https://github.com/richardghirst/PiBits
I was wondering if there are any K'Nex or LEGO Technic kits that are particularly well-suited for this type of endeavor? I have found plenty of kits to build a wide variety of vehicles, but it's hard to anticipate what will comprise a good assortment of build pieces for a more free-flow introductory robotics project.
Any thoughts or advice on this subject would be greatly appreciated!
Thanks in advance.
EDIT: Awesome project, by the way :)
Was also looking at Technic kits (such as http://shop.lego.com/en-US/Tractor-9393) with a preference towards those with more pieces, and thus more flexibility.
Most often joysticks in controllers use potentiometers (variable resistors). You can simulate the effect of a potentiometer using PWM, or you can buy a digital to analog converter.
You can see all the raspi code here: https://github.com/jminardi/RobotBrain And the android code here: https://github.com/jminardi/RobotBrain-Controller