Documente Academic
Documente Profesional
Documente Cultură
Android RC Car
146,951 128 160
(/member/a1r/)
By a1r (/member/a1r/)
A1Rstudios.com (http://www.a1rstudios.com/)
Follow More
E
Hello and welcome to my second instructable, where we'll be modifying a cheap
RC car to drive it with an Android smartphone over Bluetooth.
Actually, this was my school project at the Lycée Jules Fil (http://lyceejules�l.com) ,
so I had to produce a complete write-up. Unfortunately, it is in French, but if you
want a really in-depth description of the system, and you understand french, you
can download it HERE (http://www.box.net/shared/r6s3sf81hcogsbz7vhrn) .
The cost of following this instructable is something around 30~40$ if you already
have the RC car.
So, the RC car will be driven using the accelerometer sensor (like in
iPhone/Android racing games) over bluetooth. For that, we'll be using an android
app and arduino library named Amarino 2.0 (http://amarino-toolkit.net/) . The
system works a little bittechnology
like that (/technology/)
:
|
Accelerometer
|
| I²C
\/
Android Smartphone
|
| Bluetooth
\/
Arduino
|
| PWM / simple logic
\ /
H-Bridge
|
|
\ /
Rear motor + Dir motor
Android-Controlled RC car
advertisement
Required tools:
Required chemicals:
Required Parts:
- Arduino
- cheap RC car
- Android smartphone
- Bluetooth serial adapter (http://cgi.ebay.com/Wireless-Bluetooth-Transceiver-
Module-RS232-TTL-/200520318414?pt=LH_DefaultDomain_0&
hash=item2eaff13dce#ht_6827wt_907)
- 10k and 20 kOhm resistors
- 9V battery or LiPoly 2S (7.4V) battery or 7~8v RC battery pack (Using a
rechargeable battery is MUCH better)
- small wires (IDE cable style, see the photo)
- 28 break away headers
- L293E H-Bridge (http://www.futurlec.com/Others/L293pr.shtml) (or any 16-pin
| technology (/technology/)
L293 variant)
- 16-pin DIP socket (http://www.futurlec.com/Sockets/ICS16pr.shtml)
- 9v battery clip
- blank PCB (http://cgi.ebay.com/FR4-Copper-Clad-Circuit-Board-Single-
Side-12x18cm-PCB-/370337952961?pt=Vintage_Electronics_R2&
hash=item5639dcb4c1#ht_1401wt_1139) (Printed Circuit Board)
- magazine paper (for the Toner Transfer)
Required Software:
Now that you have gathered all this stuff, let's go to step 2.
advertisement
I've designed a simple Arduino shield to hold the h-bridge and the voltage divider
(needed by the bluetooth module).
- download the Eagle CAD project (in zip format) HERE (http://www.box.net/shared
/pgg0cxb2ucqglcrd6fos) .
- unzip it in your Eagle project directory (located in "My Documents" for winXP or in
"Documents" for win7 or in your home directory if you're on linux)
- open Eagle CAD, load the project and open the board (see the screenshots below)
- disable all layers, the enable only the "Top", "Bottom", "Pads" and "Vias" layers.
- you should get something like the third screenshot
- click the print button
- check the "Black" andtechnology checkboxes, align the print to the center, and pay
"Mirror" (/technology/)
|
attention to the scale factor : it must be set to 1 ! If it's not, you will fail the pcb.
- take a magazine page (I use "Speakeasy magazine", it works really well), load it in
your laser printer and print by clicking the "ok" button
- cut the shape of the shield with scissors
- you should get something like the sixth image.
- take the printed design, lay it down (facing the pcb's copper side) on the blank
pcb.
- now draw with a pencil/knife around the edges of the design on the pcb.
- cut the pcb into shape with the hacksaw
- after cutting, the edges are a bit rough. Use the sandpaper to clean and smooth
them.
- If you've got presensibilized PCB, like me, peel of the protective plastic, and wipe
the uv-sensitive layer with acetone.
- Voila ! You should get something like the last picture.
advertisement
Step 4: Transferring
| the Toner
technology (/technology/)
- Empty the water from the iron, and power it on at the highest temperature.
- Now, lay down the design, facing down, on the blank pcb (pic. 1)
- wrap the pcb in a paper towel (pic. 2)
- put it against the iron for ~30 seconds, make sure the design doesn't slip on the
pcb. (pic. 3)
- lie it �at on a table, and press the iron against it for ~1min (pic. 4)
- rub gently the pcb with the edge of the iron for ~30secs (pic. 5)
- �ll the plastic container with water and drop in the (hot) pcb. (pic. 6)
- let the pcb in the container and head to step 5
In this step, we're going to assemble the two parts : the bluetooth module and the
arduino shield.
- Solder the white wire to the pad labeled RX on the shield. (pic. 1)
- solder the orange wire to the pad labeled TX on the shield (pic. 1)
- solder the yellow wire to the the shield's ground using a connector (the pin will
have to be disconnected when programming the Arduino) (Pic.2,3,4)
- solder the red wire to the shield's 3.3v pin (pic. 5)
- Take your RC car, open it up to reveal the circuit board and the motors (pic. 1)
- Remove the old circuit board and solder some wires to the motor leads (pic. 2)
- take the 9v battery clip and solder the + to the pad labeled 9v (on the top-right of
the IC)
- solder the 9v pad to the shield's(/technology/)
Vin. (see image 3's annotations)
| technology
- solder the two main motor leads to the two pads labeled "Motor"
- solder the direction motor leads to the two pads labeled "Dir"
- solder the pad labeled GND to the shield's ground. (see pic. 3's annotations)
- solder the - of the battery clip to the power switch, then to the second pad labeled
GND.
- insert the H-Bridge in its socket
- head to step 11.
Now that we've done the physical setup, it's time to work on the software side.
Troubleshooting:
- If you have reset issues, make sure there are no electrical shorts. Changing the 9v
battery to a rechargeable type (NiCad, LiPoly, etc...) can also help : Sometimes, the
car drains more amps than the 9v battery allows (~150mA), this causes a voltage
drop and the Arduino resets, making the car go crazy and unresponsive.
- If your car goes backwards when you tilt the phone forward, invert the wires
going to the main motor (eg. the red wire to the minus and the black to the plus).
- If your car turns left instead of right or right instead of left, invert the wires going
to the direction motor.
You should get something like in the video. Thanks for following this instructable !
advertisement
Share
Did you make this project? Share it with us!
I Made It!
Recommendations
| technology (/technology/)
(/id/DIY-4X5-Camera-Scan-Back/)
(/id/A-Laser-Beam-Combiner-With-Parametric-Optomechanic/)
|
A Laser Beam Combiner With 3d Printed
technology Parametric Optomechanical Components. (/id/A-
(/technology/)
Laser-Beam-Combiner-With-Parametric-Optomechanic/)
by Spiegelbout (/member/Spiegelbout/) in 3d Printing (/technology/3D-Printing/)
(/id/Cosmos-Mariner-a-Large-Aperture-Dobsonian-Telescop/)
(/class/3D-CAM-and-CNC-Class/)
(/contest/firsttimeauthor2018/)
(/contest/bigandsmall/)
(/contest/puzzle/)
| technology (/technology/) We have a be nice policy.
Be positive and constructive.
V |
Tip Question Comment
160 Discussions
Please Help !!
I am not able to make the Ardiuno shield, Can i purchase it for this project from any online site?
BTW i lives in Canada.
Answer / Upvote
(https://cdn.instructables.com/F7C/AF29/IL5I67G4
/F7CAF29IL5I67G4.LARGE.jpg)
Reply / Upvote
| technology (/technology/)
(/member/JaypennsonA/) JaypennsonA (/member/JaypennsonA/) 2 years ago
Reply / Upvote
what a great project , It worked well until I changed the name and password of the bluetooth
module (AT command mode) as the arduino stopped receiving data from the bluetooth
module , Can anyone tell me why did this happen?
1 reply F
Reply / Upvote
Reply / Upvote
Reply / Upvote
Reply / Upvote
good work :) ,,,,,,, can you explain why you multiply value by 24 in this line
intdata[0] * 24
1 reply F
|Replytechnology (/technology/) / Upvote
意⾦ (/member
(/member/%25E6%2584%258F%25E9%2587%2591/) /%25E6%2584%258F%25E9%2587%2591/)
5 years ago on Introduction
Hello ^ ^). May I ask a question about the schematic of the DIY PCB. Based on the schematic
of IC L293 given, the Pin 8 and Pin 16 are VSS. But they connect the Pin 5V of Arduino and "+"
of the 9V battery. Is that all right to connect to a different voltage(5V and 9V) in an IC?
4 replies F
Reply / Upvote
Hi,
I am using Eagle 6.5 and while printing the mirror text is printed as dots....
Any help?
Reply / Upvote
hi! sorry for the noob question (and my english) but does it matter which arduino i use? must it
be duemilanove or can i use leonard? thank you!
Reply / Upvote
意⾦ (/member
(/member/%25E6%2584%258F%25E9%2587%2591/) /%25E6%2584%258F%25E9%2587%2591/)
5 years ago on Introduction
Hi ^ ^)May I ask what is the function of the "jump" on your schematic of the DIY PCB. In my
point of view, the RX and TX on Arduino Board is just connected to the DIY PCB board's RX and
TX then connects to the RX and TX of blue tooth.
Reply / Upvote
意⾦ (/member
(/member/%25E6%2584%258F%25E9%2587%2591/) /%25E6%2584%258F%25E9%2587%2591/)
5 years ago on Step 9
Hi, dude~ Excuse me, may I ask where to solder Power switch. Is the same place that the pic
| technology (/technology/)
showed us? And if consider about the schematic of the DIY PCB, where is the power switch in
there? Appreciate~ ^ ^)
Reply / Upvote
意⾦ (/member
(/member/%25E6%2584%258F%25E9%2587%2591/) /%25E6%2584%258F%25E9%2587%2591/)
5 years ago on Introduction
I have no idea why the pic can't be uploaded. May I ask your email therefore I can send the
schematic of the IC L293 to u. That shows the pin of the IC.
Reply / Upvote
© 2018
Privacy settings