Dear all,
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:
-
http://IP_Address/?RELEX=ON (activate relay X, where X = 1,2,3,4, then shows the relays status)
-
http://IP_Address/?RELEX=OFF (de-activate relay X, where X = 1,2,3,4, then shows the relays status)
-
http://IP_Address/?RELEX=TOGGLE (activate relay X for 0,8 seconds, where X = 1,2,3,4, then shows the relays status)
-
http://IP_Address/?ALL=ON (activate all the relays, then shows the relays status)
-
http://IP_Address/?ALL=OFF (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.
Best regards,
Vincenzo Suraci