Weakly Tidbit – Arduino Remote Control

Arduino remote control interface.

Arduino remote control interface.

So welcome back to the new year. To start of the blog for 2014 this weeks TidBit will be a little bit of news from this blog. So, introducing the Arduino remote control. For some time I have been looking for a nice simple and universal way to give remote input to my Arduino controlled robots and vehicles.

So far I have not found anything that really satisfies what I am looking for, and from what I see on the forums, the feeling is mutual for many others. This is why I am releasing an a free app on the stores to allow anyone with a network connected arduino to access the full power of the remote control connected over wifi or 3g/4g (even from the other side of the world over the internet!). What defines this as a universal remote is the fact the it is customised by the code running on your Arduino. Its plug and play! Continue reading

The Arduino Web Server

So after having a few requests on how the code works on the Ardunio web server on my previous post “Arduino Web Server with controllable LED”  , I have decided to upload the project file and give a brief over view of what is happening under the hood. First off i will say that the source code is built for an EtherMega from Freetronics which is an Ardunio Mega with both an Ethernet shield and  SD shield built directly on to the board, there for it goes with out saying you will have to adapt the code to your set up. More info can be found here at the Freetronics website. The project file is available to download from the link at the bottom of the page.

Now the project consists of two parts, the Arduino server code, and the web content served by the Arduino, this creating a fully self contained web controllable project requiring no external web server or content hosting whatsoever. First I will start with the server, the beating heart of this project. Below you can see a flow diagram of how the current set up processes the different requests. As you can see it processes page requests and Get requests separately and can not be sent in the same request to the Ardunio server. This is because I plan to load all the web application code before it starts to interact with the server and have no need to implement dynamic page content created on the Arduino itself. As the dynamics of the page are processed in the browser and not on the Arduino, this creates a faster application reducing load on the Ardunio.


Arduino web server flow diagram

Continue reading

Arduino Web Server with controllable LED

I decided one night when lounging around that it would be awesome to put a web server on my Ether Mega (an Arduino Maga with onboard Ethernet). Being the nerd that I am, I decided a simple way to prove this could be useful (and really awsome) was to simply turn an led on and off. The requirements of  this project where  to be capable of loading static web files including html and images saved on the sd card,  process ajax queries sent to it and respond with json.

EtherMaga (Arduino Maga With Onboard Ethernet) From Freetronics

EtherMaga (Arduino Maga With Onboard Ethernet) From Freetronics

By using the  foundation code of the server on the Arduino I am able to build a web app that is loaded from the SD card on the Arduino when browsing to it via a browser. Then by using javascript loaded to the client send ajax requests to the server. When the ajax request is received by the server I can then define actions associated with the relevant query then respond back to the client about the status of the request via json. Continue reading