Instructables
loading
loading

How to build an Arduino WiFi 4x4 with Android Controller

Picture of How to build an Arduino WiFi 4x4 with Android Controller
2011-02-12_18-53-01_548.jpg
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
1-40 of 42Next »

Hello,

I have one problem, I start the communication I open the serial monitor, it say that wifi is connected but then all stop when it look for server.

Did you know what is wrong?

Please help me, thank you

Robert

pplanko27 days ago
pplanko27 days ago
kymark12 made it!1 month ago

Made the project I said here in the comments, but I used a motor shield, since I can't make my own motor shield

11018635_10204914556156439_5184046503782544043_n.jpg
PrachiJ11 month ago

i am resident of india and making this project seems diffcult by means of shield circuit what to do

kymark122 months ago

I got the it connected but the CC3000 arduino sketch isn't compatible with the program, I hope you update this with the Arduino sketch so we can edit the commands being sent by the client and received by the arduino. Hope you see this

hghardik2 months ago

good job man!! i like to know how thiss thing works like we connect our android device to the car using the bot but how are we able to send data was it like sending urls or is this something else can u please help me with this??

kymark123 months ago

I would like to as if it's possible to just control the motors on the RC and ditch the circuit board passage? Like doing this tutorial, except using that RC for the chasis and motor Android controlled RC Vehicle with real-time Video via Bluetooth & Wi-Fi

ashaikh145 months ago

kindly share the arduino sketch so that I can be able to write a code

moegamatn8 months ago

This is so brilliant.

I desperately need to try this.

Luvly :)

Moegamat

MichaK moegamatn6 months ago

yup

Frans049 months ago

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

MichaK Frans046 months ago

nope

MrSTUDofRC1 year ago

How many farads are C1 and C2?

bkimmons (author)  MrSTUDofRC1 year ago

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

MrSTUDofRC1 year ago

And what are the resistor values?

bkimmons (author)  MrSTUDofRC1 year 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.

rnituc1 year 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)  rnituc1 year ago

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

randalcr1 year 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?

lukeD1 year ago
do you have a good (cheap) alternative for the asynclabs module? the site doenst exist anymore and i cant find the asynclabs online.
mrhacker1 year 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???
donmatito2 years 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)  WarGodfather2 years 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
rawand3 years ago
Amazing!!!! its awesome
valimdj3 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
Chowmix124 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.
1-40 of 42Next »