Instructables

How to build an Arduino WiFi 4x4 with Android Controller

RC cars can be WiFi Cars...?

RC cars are cool, but cheap RC cars have limited range and can only be controlled with the particular controller that was included with the car.

I purchased a RC jeep, complete with 4 wheel drive, flexible suspension, and off-road tires for about 30 bucks. Not long after playing with the car I determined that I could improve it by using WiFi and Android. So I wasted little time, and completely remove the circuit board that make up the cars electronic system. Using the existing electronics I determined the voltages and devised a motor control system that could be operated by the Arduino using a custom shield that I developed. The motor control system does not implement any PWM to control the speed. The car is design to crawl over obstacles, with very low gearing as a result it is very slow.  This meant that just having the motors turn on and off would work just fine. The circuit I designed will however support PWM by using the enable pins. 

 I have been using the Arduino microcontroller in projects for a few months. I also purchased the asynclabs (http://asynclabs.com/) WiFi Sheild for the Arduino Duemilanoe to experiment with WiFI and microcontrollers . It comes with a package installs into the Arduino IDE. Building off of the “SocketServer” example I was able to build sketch that lets me control the motors and steering over WiFi.

I then used Visual Studio to put together a quick windows form application that connects to the car server and issues commands to control the motors, steering and lights. Then got bit with the android bug, after building a couple test apps I finally managed to get a working version that uses the orientation sensor to determine the desired car function.
Here is the step by step,
 
 
Remove these adsRemove these ads by Signing Up
moegamatn1 month ago

This is so brilliant.

I desperately need to try this.

Luvly :)

Moegamat

yup

Frans043 months ago

Are you able to control the WIFI car from anywhere or just in your Home-network(LAN)?

MichaK Frans0410 days ago

nope

MrSTUDofRC7 months ago

How many farads are C1 and C2?

bkimmons (author)  MrSTUDofRC6 months ago

They were small 10uf, just enough to smooth the 5v to the Arduino.

MrSTUDofRC7 months ago

And what are the resistor values?

bkimmons (author)  MrSTUDofRC6 months ago

There is only one, for the Temp Sensor. It was used with a trim pot and then calibrated to the correct temp in software. I am afraid I don't remember the value.

rnituc6 months ago

i will try to combine this project with this project

http://www.instructables.com/id/Android-controlled...

i use arduino due, arduino wi-fi shield, and as motor shield i will use l293d hbridge

i might need some help programming arduino and android but shortly i will come back as it is work in progress

bkimmons (author)  rnituc6 months ago

I am looking at using the BeagleBoneBlack to replace the Arduino and provide video streaming capabilities.

randalcr6 months ago

I get a "uip_conn undeclared" error when I hit the verify button. Is there something I need to modify in the sketch or is that something it needs to actually run on the arduino?

lukeD9 months ago
do you have a good (cheap) alternative for the asynclabs module? the site doenst exist anymore and i cant find the asynclabs online.
mrhacker11 months ago
Great instruct able. For the camera, you can get another android phone or tablet and mount it on the car. Download an app called ip camera on the phone and set it up. Then download ip camera viewer on your other Android or get a laptop and type in the ip in your Web browser and you have a video feed! Depending on the phone and your wifi it might be a bit delayed. I tried it with an evo 4g and a galaxy s3 and worked perfectly for this airsoft truck I have
Mr.Bukhari1 year ago
hey nice project, whats the total cost if i ask u to make it for me???
donmatito1 year ago
I like that. I'm going to try it!
Actually sorry for that foolish question. I realized everything now.
But now I have another two questions.

1-In the 3rd step in circuit i can see a output which is named as a AUX. What is the use of it?
2- Another thing is what are the resistor values and for what u have used the temperature sensors in that circuit.

Actually I appreciate your work and thanks for the early reply. If u can attach the full list of components u needed for ur project it is gud for others too. Specially if u can mention about Wi-FI shield ur using.
Thank You........
Thanks for this really cool stuff.
I can see that you have connected one RJ45 pin to the wifi shield. But can i know to where do u have connected the other end of the RJ45 connector.
That's the part i got confused with.
Thank You.
bkimmons (author)  WarGodfather1 year ago
In step 2 you should see a section of tabs labeled "to Arduino" The RJ45 cable is pinned out to these pads to control the H-Bridge for the motors and steering.
bakarony2 years ago
sir... i also try to make this one for my school project but i have some trouble. and can i ask about the motor shield? where we can find the motor shield. we need to buy it or we just get it from the RC Car that we dismantle? if we need to buy it i can't find it on my country (indonesia). any way can you help me..
bkimmons (author)  bakarony2 years ago
bakarony,

I built my own motor controller in step 2. It is just an Hbridge driver that is controlled by the arduino.

It is possible to use the motor control circuit that came with the car but it would require some investigating of the actual board you have. I found it simpler to build by own.

Brandon
sir.. have you try to use arduino motor shield??

ok sir if we need to make the motor shield. so i need to find someone who can do the board print..

Herman
bkimmons (author)  bakarony2 years ago
It should be possible to make it work with the Arduino motor shield, You would just have to make sure that your motor control outputs don't conflict with the WiFi modules required pins.

As far as printing the board.... I was able to use the toner transfer method. however it is a fairly simple board and could be hand soldered with wires on a prototyping board.

Good Luck.
coder5123 years ago
I wana build this without using Arduino.
Just wana build it using Wifi Server and Client Dongle.
bkimmons (author)  coder5122 years ago
oldsmarracin is correct, you need the Arduino to run the car, as it operates the socket server and controls the motor control board.

the arduino is what control the car with out that the car wont move
rawand2 years ago
Amazing!!!! its awesome
valimdj2 years ago
does it work with this wifi too ? APC220

http://www.dfrobot.com/index.php?route=product/product&product_id=57

javi_vite3 years ago
really nice idea man!!! i love 4x4 rc and android in the same pack so to say hahahaaha, im a do my own 4x4 android judt to test and show off to my litle cousins :D lol
Chowmix123 years ago
Check out Cellbots. Its an opensource project on using bluetooth and other means to connect an android phone to be either the brain or controller of robots.. maybe somewhat of interesting. They were actually looking for someone to help them with WIFI direct.
Do you know where I can get that WiFi module but without the Arduino shield? Async Labs doesn't provide a datasheet or even a part number in their store page or wiki, unless I missed it.
Never mind, it turns out to be a Microchip product.

I don't use Arduino so I'd like to have it without a shield, here is the link for anybody in my situation

http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en548014
RedMeanie3 years ago
Wow! I wish I had the time to do this! Very Good Instructable. Great Work!

If you could set up a video server app could this be remotely operated like the mars rover? Some software that might suffice, and could possibly be tweaked for this would be the app that the little Iphone/Ipod remote quadricopter thingy uses.

If that software could be hacked to function through the net, I would "Make" time to build it.

Anyways, Great Job and Thanks For Sharing!