I'm planning to add WIFI capability to Arduino UNO using TPLink WR703N router instead of a WIFI shield, here is my requirement:
Use an Andriod phone to remotely control (via WIFI) two continuously rotating servos (basically a remote-controlled car with two servos)
I've got an TPLink WR703N router with DD-WRT installed and configured as 'Client' mode.
Wondering how to connect the router to Arduino ? Can i use a USB/TTL device ?
And which particular device should i buy, and which PINs to connect to UNO ?
And on the software side, do i need an Android app to send command to router and then to UNO
Your help is much appreciated.
OK break it down into pieces
1) Yes you need a web server running on the TP Link router - assuming you have already flashed it with OpenWRT then you have one and can create a new page which can be used for running your Arduino control app
2) You would buy one of these from EBAY
This will give you a RX/TX pair at 5V out of the TPLink (and also a 5v and gnd if you want to power the Arduino from the TPLink) (although if you are running servos etc you would already have power i would imagine) - the RX/TX pair will go to corresponding pins on your Arduino - either the hardware serial pins or other pins using softserial library
3) You need to write a sketch on the arduino that will wait for input from the Serial port which will be commands you send from your TPLink webpage
You would cater for the start stop commands you were looking for as well as a status type command that could be sent to the Arduino asking for current servo positions etc.
To get all this happening
1) Order the EBAY part
2) Post up your current sketch for controlling the servos
3) Look at the easiest way to write a Linux app to run on the TPLink to take commands from the Webpage and send them out the serial port. I would suggest Python would be your easiest. You may want to do some research on the web about Arduino and Linux serial interfacing - a good source of examples are with the Raspberry Pi