Close

Back to Web Development

A project log for Air Gesture AC Dimmer/Switch

A Touchless Gesture Mains AC Dimming Switch

johnnyJohnny 06/27/2014 at 07:112 Comments

The majority of this project is software based. I'm currently spending time on designing a website for the home automation server (Hub). Spending the a lot of my time on w3schools.com refreshing my javascript and AJAX knowledge. 

I want buttons and text input etc to have immediate effect on the nodes without refreshing the website. This is important as reloading an entire website is annoying and with an 8-bit micro using uart, can be time consuming. The reason for using an 8-bit micro such as Arduino to serve the website is, for one, most people start out using simple microcontrollers and I want people of all skill levels to be able to have a go. The other reason is, I believe a device like a raspberry pi is overkill for such a task and a pain to setup and wait for it too boot up.. I'd like to keep costs down too..

I will upload the code for a basic website with asynchronous controls and visual feedback of the "real-time" outputs state and Arduino code for people to play along with soon...

Discussions

Johnny wrote 06/29/2014 at 16:17 point
Thanks, I found a javascript solution :). Pretty small amount of code too. http://www.w3schools.com/ajax/. I was hoping jquery wasn't my only option, but was sure their had to be a way considering jquery is only a javascript library. I may go down that path of spi flash too, see how full the mcu gets first lol.

  Are you sure? yes | no

KingOfKYA(Travis K. ) wrote 06/27/2014 at 20:35 point
Your gonna hate the ansere but load the js from an external site.

Also there us these spi flash chips maybe theirs a solution here.
http://www.digikey.com/product-detail/en/S25FL164K0XMFI011/1274-1097-ND/4457674

  Are you sure? yes | no