Today I received the OtterBox Armor Series for iPhone 5. After playing around with it for the day this is my current opinion, if you want an iron man suit for your phone look no further. OtterBox over the last few years had made some very versatile cases for all your tech gadgets, and when it came to the Armor Series, OtterBox has gone back to its roots of making indestructible (almost I can think of a few ways to destroy them) boxes for your belongings and paring this with your modern gadgets. What you get is a water, drop, crush, and dust resistant housing for your expensive and fragile smart phone. Continue reading
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.
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.