This is a short video of the very first version of the rover that I choose to call "Kitchen Tray Project "
These are the instructions to hack the servos and below you can see the electrical links.
After the program upload into the Arduino yùn you have to open the REST API ACCESS from the configuration menù.
At this point you are able to open the rover web page with a tablet or a PC linked on the same net.
You have to write the Arduino yùn IP plus "/sd/rover" on the web browser address bar.
For example my address is:
- a table with the buttons icons and some numeric field.
server = "/arduino/mode/" + mode + "/" + time;
richiesta = new XMLHttpRequest();
richiesta.onreadystatechange = sendCommandResponse;
richiesta.open("GET", server, true);
The sendCommand function send a HttpRequest (it's like write an address on a web browser and press enter) with address: IP/arduino/mode/3/40.
The code "richiesta.onreadystatechange = sendCommandResponse;" subscribes the answer from Arduino and tell that it will be managed by "sendCommandResponse" function.
esito = richiesta.responseText;
document.getElementById("info").innerHTML = esito;
response = esito.split("#");
document.getElementById("info").innerHTML = response;
mode = response;
Ardumia67timeout = response ;
That function "sendCommandResponse" refresh the string state field.
In the next post I'm going to add a webcam to the rover.