Arduino Forum

Community => Exhibition / Gallery => Topic started by: tarquinio on Dec 14, 2011, 05:42 pm

Title: Ardomotic - Free Arduino Domotic Project
Post by: tarquinio on Dec 14, 2011, 05:42 pm
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 :
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.
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: MikeFez on Dec 14, 2011, 08:14 pm
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.
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: tarquinio on Dec 14, 2011, 08:27 pm
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 :)
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 ;)

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 :)
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: JO3RI on Dec 14, 2011, 10:17 pm
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.  ;)
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: flico on Dec 15, 2011, 12:10 am
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?
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: tarquinio on Dec 15, 2011, 02:30 am
@JO3RI
You would be wrong :) 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 :)

@flico
I actually already had seen your project a couple months ago already! :) Major wirings that you will be doing :) 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 :)


Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: RobDrizzle on Dec 16, 2011, 01:40 am
no words.... except awesome.
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: tytower on Dec 16, 2011, 11:24 am
Yeh ditto to that . Looking forward to the code
Geez where to next arduino?
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: flico on Dec 19, 2011, 11:02 pm
OK.
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: guardian_of_light on Dec 22, 2011, 05:50 am
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?
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: Rivello on Dec 24, 2011, 06:09 pm
Really nice work!
Made me laugh alone for 2 minutes while playing with your xmas tree.  XD

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!  :)
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: tarquinio on Dec 25, 2011, 03:53 am
@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 :)

@rivello
Just saw your site. I'm portuguese, so i could understand it all, no language problems :)
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) :)
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 :) 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 :)
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: Rivello on Dec 26, 2011, 03:55 am
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. :)


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 (http://www.rentron.com/images/rely-drv.gif)?
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: tarquinio on Dec 27, 2011, 12:58 am

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. :)

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. :( (You might also want to warn on your site for people to be careful when doing stuff with 220V motors ;)
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: lurkingdevil on Dec 28, 2011, 11:13 pm
This is awesome!

Playing with the lights on your christmas tree was great  :)
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: tarquinio on Jan 04, 2012, 12:54 am
Well it was fun having everyone playing around with the tree, but now it's a new year, so the tree is gone so i'm back to working on the code... Hopefully will finish it soon and then i'll publish it on a dedicated webpage, so next year everyone can have their own Christmas trees online ;)
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: tytower on Jan 06, 2012, 11:49 pm
Have you noticed people have a compulsion to look over your shoulder and tell you what to do ?
Its psychological  and we all have it.

Your project was a flash of brilliance at Christmas. Thanks
Others would like to be able to do that for next Christmas I am sure , myself included.

My other thought was that any project such as that would be enhanced by a video camera being moveable in one or two planes so we can pan around. I switched on the lights in all the other rooms but could not see a change so a swiveling camera with zoom inside a pretty 18 year olds bedroom would be super! ( there was one with a fish tank I was compelled to try , I'll try find that and post a link but a fish tank is only entertaining for a short time)

Just kidding ,but people do like to pry and something like a camera in the kitchen ,lounge or laundry , bedrooms ,bathrooms and garage etc  will be the next live TV fad I suppose ,if they can control it through the Internet and you seem to be well on the way

Thanks again
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: tarquinio on Jan 13, 2012, 01:06 pm
Thank you.
I plan on integrating an option for servo control in the future. Having that, it's easy to have a camera that you can move around. Controlling the servos is actually quite easy, the tricky part is changing the current interface so you can input numbers easily.
In this case having the camera moving around wouldn't allow you to see much more though... Two messy desks, and sometimes a guy working on a pc on one of them :P The remote control on the lights of the rest of my house was disabled while I had this public test, because it was not very practical having lights turn on and off by themselves all the time when ur doing stuff around the house :)
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: tytower on Jan 13, 2012, 10:26 pm
OK I saw a couple of these actually but yours seemed to function best.

My thoughts on a camera were pan and tilt and zoom control. In the future this will be common I think but the problem will be if 100 people all want to use it at the same time.
Like the girl in the bedroom bit.
I thought maybe enough cameras set in a circular pod so there is always a 360 degree view and the user moves from camera to camera.
perhaps there is now or will be a scanning type camera which rotates mirrors at X times a second to feed a camera .
Those individual streams fed to a central storage unit and fed to users as demanded
However that does not give tilt or zoom unless the mirror type idea has mirrors further up and down of  the central circle of mirrors. The zoom might have to be digital zoom for now
So I'm thinking and looking around atm
Cheers
Title: Re: Ardomotic - Free Arduino Domotic Project
Post by: tarquinio on Dec 09, 2012, 06:43 am
Hello everyone.
Don't know if anyone is still following this thread, since it's been almost a year now... Unfortunatelly I had some problems and didn't do any work on this project for ages. I'm currently working on a new version that adds a lot of different features, but for now, here is the homepage with the code for the old version:

http://ardomotic.weebly.com

Have fun with it, let's see those xmas lights on :)