this is to post my experience on the following configuration:
- Arduino UNO (http://arduino.cc/en/Main/ArduinoBoardUno/
- Seeed Relay Shield (http://seeedstudio.com/wiki/Relay_Shield
- Sparkfun WiFly RN-XV (http://www.sparkfun.com/products/10822
The idea is to control the 4 relays using a simple web (http get) protocol over the wifi.
I came into this problem some days ago and I did not find any suitable and ready-to-use solution on the web. At the end I found a solution!
First of all I downloaded the most recent (AFAIK) libraries for the WiFly RN-XV (WiFlyHQ - https://github.com/harlequin-tech/WiFlyHQ/tree/
). Then I wrote a newbie code to make the whole stuff work.
With the attached sketch (find below the link to download it), once you setup correctly the SSID and passphrase, you can point your browser to the IP_Address of your WiFly and do the following:
(activate relay X, where X = 1,2,3,4, then shows the relays status)
(de-activate relay X, where X = 1,2,3,4, then shows the relays status)
(activate relay X for 0,8 seconds, where X = 1,2,3,4, then shows the relays status)
(activate all the relays, then shows the relays status)
(de-activate all the relays, then shows the relays status)
I hope this can help others to implement their wireless home building automation solution.
I also hope someone else can improve my dummy code to make it perform better or to provide more functionalities.