HomeGenie Forum
Automation Program Plugins and Wizard Scripting => APP Contributions => Topic started by: enterprised on July 11, 2015, 11:29:22 PM
-
Just a little fun project with some spare components I had laying around.
Arduino Ethernet Relay Controller
This is based on the original Arduino Switches code for HomeGenie and some of the freely available Arduino code.
Hardware Requirements:
- Arduino Uno, Mega 2560 or equivalent
- Ethernet Shield W5100 for Arduino Uno, Mega or equivalent
- JBtek 8 Channel DC 5V Relay Module
- Patch cable 200mm male to female
A very simple project, no soldering required.
The HomeGenie part is a series of virtual switches activating the Arduino over Ethernet,
Attached code for Arduino is based on the Arduino Mega 2560 and uses pin 31 to 38.
Ethernet shield code is based on DHCP IP address assignment.
The Arduino relays are controlled via a simple API.
Example below for relay 1
- http://Ip-Adress:Port/?switch1on (http://Ip-Adress:Port/?switch1on)
- http://Ip-Adress:Port/?switch1off (http://Ip-Adress:Port/?switch1off)
This project has potential for further development to include sensors and messaging. I may work on this, but if anybody else wants to jump in, you are very welcome to do so.
NOTE: The attached zip file contains both .INO file for Arduino .HGX file for HomeGenie
-
Hi!
With this program do not keep growing use of the memory of the homegenie service?
-
I have HomeGenie running this on a Rasberry Pi 2 and have not seen an increase in memory usage over the last week.