Pages: [1] 2   Go Down
Author Topic: Ardomotic - Free Arduino Domotic Project  (Read 5530 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone.

I'm writing this post to present my latest ongoing project, Ardomotic. It is a simple Domotics solution using an Arduino Ethernet as a server (no PC is required). The interface uses simple HTML pages, so it can be accessed easily from any PC or mobile device. Each device can be controlled wired or wirelessly.

It has 3 main windows:
Device List view: where it shows the names of all the devices and their state. It is possible to chance the state of each device clicking on the device icon.
Scheduler view: it is possible to schedule daily events (such as opening all the windows every morning, for instance).
Plant view: similar to device list view, only the devices are shown in a plant of the house.

I am not done with the code yet, but once it's finished i plan on posting the code on a proper webpage with a couple tutorials if people are interested.

For now i made the server public online, and enabled the control for my xmas tree, and the living room light (the one next to the tree in the plant). All the other devices in the house already work but are disabled while the server is public.

So for now, if u feel like lighting up a xmas tree in another country, feel free to check:
http://ardomotics.no-ip.org/bp

And to actually see the tree u might wanna go to the live stream:
http://www.ustream.tv/channel/arduino-domotics

NOTE: This is my house, where i kindda need to sleep sometimes... So between 2:00AM and 12:00AM (europe time) it is very likely that the whole system will be off... Otherwise, unless i'm testing some code, it should be working for the next couple weeks.

Please enjoy and leave any comments if u have them.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is great, I'm looking forward to seeing the source code. I'm in the middle of a similar project, but might ditch the PC in favor of having the Arduino serve the web page.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes unless u need to do something more demanding or feel like implementing a more complex interface, i thing just using the arduino is actually a nice was to go smiley
My initial idea actually was to make an iPhone app to control everything, but then i just went for the 1-size-fits-all html interface... May be a bit simpler, but it works everywhere smiley-wink

As i mentioned there are still a few things i want to sort out in the code before making it public, but hopefully it will be done within a month or so smiley
Logged

Hamme, Belgium
Offline Offline
Sr. Member
****
Karma: 4
Posts: 386
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Very cool project. I'm personally interested in your code to see how you inplemented the website into your code. I'm pretty sure you are using an SD card for storing your webpages, but I would like to know how.  smiley-wink
Logged


0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1040
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It is very good. I am making my new home a smart home, you can visit the link in my signature.
You have documented your project?
Logged

Trabajando en ...

    * Control Domotico (En montaje ...)
    http://casitadomotica.blogspot.com/
 

[url=https://bitbucket.org/fmalpartida

Offline Offline
Newbie
*
Karma: 1
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@JO3RI
You would be wrong smiley I am not using a card, i am using an EEPROM. But it is only used to store the images though. The webpage is created dynamically by the code, since their state can change. And the devices are all initialized in the setup() function. For instance, i have a line with the code:

  ADD_DEVICE_SWITCH( "Xmas Tree Lights", DEVICE_CONTROL_RADIO, IMAGE_XMAS_ON, 0, 166);

and that's pretty much all you need to to add or remove devices from the system. All of the pages are created according to the devices that we add in setup smiley

@flico
I actually already had seen your project a couple months ago already! smiley Major wirings that you will be doing smiley I was lazy on that part, so i went wireless and bought some Chacon controllers for that part.
I will make a proper webpage and some documentation at some point, hopefully in the next month or so. I am trying to make the code very modular, so that it is easy to add new types of devices and new ways to control them. Whenever you do something, it always end up in this piece of code:

    switch (dev_control)
    {
        case DEVICE_CONTROL_WIRED: sr.setRegisterNow(dev_id, dev_data); break;
        case DEVICE_CONTROL_RADIO: sendRadioOrder(dev_id, dev_data); break;
    }
For now i've only implemented wired (using the pinouts of a shift register)  and radio controlled (using the chacon wireless protocol).

I saw in your site you talk about having the devices on a I2C bus. To make it work with ardomotics, you would only need to create a function like:

void sendI2COrder(byte device_identificator, byte new_device_status)

and add the function in a new case statement smiley


Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 252
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

no words.... except awesome.
Logged

Cairns - Green Island for Winter
Offline Offline
Full Member
***
Karma: 2
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeh ditto to that . Looking forward to the code
Geez where to next arduino?
Logged

Governments should do what they were designed to do only.
Manage the larger issues best done by Government.
My Family and my Property are no

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1040
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK.
Logged

Trabajando en ...

    * Control Domotico (En montaje ...)
    http://casitadomotica.blogspot.com/
 

[url=https://bitbucket.org/fmalpartida

Rural Ozarka
Offline Offline
Newbie
*
Karma: 0
Posts: 33
Priest of the Screaming Electron
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ditto on the looking for code. Just got about 25 relays (traded for a pack of cigs, ha!) And i'm hankering to get started on some internet linked home automation! OP's link is down, is there anywhere to go for new/any updates/information?
Logged

Entrepreneurship, Arduino, Ham Radio & General Wannabe Hackery

http://insapio.com/
Twtr: @mltd_alexander

Rio de Janeiro
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Really nice work!
Made me laugh alone for 2 minutes while playing with your xmas tree.  smiley-lol

I made something similar in which I showed in this topic: http://arduino.cc/forum/index.php/topic,74872.0.html
But I'm not good at html and my page was ugly, only with buttons.
You did a nice job with the interface and the house drawnings. Excelent work!

Looking forward to see your codes!  smiley
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@guardian
I plan on doing a proper webpage with all the goodies and updates, when everything is completed. When i do it i will link the site here on the arduino forums too. The code is almost done, the first release should be soon. These days I just been having some issues with opening and closing the windows. The problem is actually physical, my relays were breaking because of power spikes caused when using the relays do turn the motors on and off... Since i'm not used to work with this kind of stuff an my electronic knowlege is VERY limited when it comes to inductive stuff... It's taking me a while to figure things out :s I'd like to have it all working when I release it, so that i could also make a nice demo video smiley

@rivello
Just saw your site. I'm portuguese, so i could understand it all, no language problems smiley
U got a cool project there too. I also did a similar thing with my building door (opend the intercom and put a relay in parallel with the OPEN button) smiley
I see you hacked the existing hardware for the remote control parts. I thought of doing that too in the beginning, but then I decided to do a little more research and learn a bit about the communication protocols. I made a small application (arduino+processing) to help decoding the wireless signals, and then the arduino just repeats it smiley I will publish that program too, I guess it might be useful for someone else.
As for the code, as I said I hope to publish it soon... Unfortunatelly I'm way more lazy to do webpages and documentation than I am to do code smiley
Logged

Rio de Janeiro
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice! It's a good idea, I think I'll do the same.  With a "signal recorder" it would work with any gate, regardless of the control. smiley

The problem is actually physical, my relays were breaking because of power spikes caused when using the relays do turn the motors on and off... Since i'm not used to work with this kind of stuff an my electronic knowlege is VERY limited when it comes to inductive stuff... It's taking me a while to figure things out :s

Did you put a diode in parallel reverse to the relay coil?  Like that?
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice! It's a good idea, I think I'll do the same.  With a "signal recorder" it would work with any gate, regardless of the control. smiley
Yes you can analyze different signals, even from other stuff, like infrared remotes (haven't worked much on those, but the principle is the same, only they use light instead of radio, and lower frequencies). At some i point i'd also like to integrate my air conditioning in this project too, but that will take quite some time, since air conditioning codes are quite more complex.

About the relay stuff... Thanks for the link, but my problem is not with the relay coil. The problem is the actual motor that the relay is controlling... The same thing that happens in the relay coil, and we fix with the diode, also happens with motors, but is much stronger (since it's a 120W motor). In this case it's strong enough to meld the contacts together, and the relay stays on all the time :s The idea is to make a filter to compensate the effect of the motor, but i don't even have the specs of the motor, which unfortunately is making things harder. smiley-sad (You might also want to warn on your site for people to be careful when doing stuff with 220V motors smiley-wink
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 20
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is awesome!

Playing with the lights on your christmas tree was great  smiley
Logged

Pages: [1] 2   Go Up
Jump to: