Domotica school assignment
Posted: Thu Dec 08, 2011 1:24 am
My story began three years ago, I bought a Velleman K8055D board with USB and made my own 'Room Control' system for my room. The software is written in VB.NET 2008 with the included DLL files. The system still works today but there are enough points to improve.Even it don't runs very smooth, for every action there is a delay of 1 to 5 seconds wich is very annoying. A new system would not be a luxury but a must.
The new system
At school I do the application developper study so I had to build a Android or iPhone application. The subject is free so I asked others for a couple nice subjects until I came to the teacher. He wanted an application power on his coffee machine at home so if he come home, the coffee is ready to drink. I told him about my 'Room control' and everything that's possible with domotica. Of course he liked it and I had an subject for a new application.
Key facts
* Maximum budget is 100 to 120 euro for the base system.
* The system must be universal so I can use it for other projects.
* No local server may be used, external server is no problem.
* No wires through the house (wireless)
* There must be an online managing system to set new events to an action.
My idea
My idea was to use a Arduino ethernet board with an Xbee shield. The Arduino will be programmed to do every second a request to the external server. With this request will the server sent the statuses from all the devices and sensors around the house. The server give the commands back to sent to the device(s). The server will be a Linux (Ubuntu / Debian) server with LAMP on it (Linux, Apache, Mysql, PHP). In PHP I can make an API wich gets the request from the Arduino board and sents the command(s) back. Also stores the API a new row in the DB with the new status. At this way I make very easy an Android/iPhone application.
So my question is: "Is it plausible to do it on this way or do you have ideas?".
P.S. Sorry for my very bad English.
The new system
At school I do the application developper study so I had to build a Android or iPhone application. The subject is free so I asked others for a couple nice subjects until I came to the teacher. He wanted an application power on his coffee machine at home so if he come home, the coffee is ready to drink. I told him about my 'Room control' and everything that's possible with domotica. Of course he liked it and I had an subject for a new application.
Key facts
* Maximum budget is 100 to 120 euro for the base system.
* The system must be universal so I can use it for other projects.
* No local server may be used, external server is no problem.
* No wires through the house (wireless)
* There must be an online managing system to set new events to an action.
My idea
My idea was to use a Arduino ethernet board with an Xbee shield. The Arduino will be programmed to do every second a request to the external server. With this request will the server sent the statuses from all the devices and sensors around the house. The server give the commands back to sent to the device(s). The server will be a Linux (Ubuntu / Debian) server with LAMP on it (Linux, Apache, Mysql, PHP). In PHP I can make an API wich gets the request from the Arduino board and sents the command(s) back. Also stores the API a new row in the DB with the new status. At this way I make very easy an Android/iPhone application.
So my question is: "Is it plausible to do it on this way or do you have ideas?".
P.S. Sorry for my very bad English.