HomeGenie Forum

Automation Program Plugins and Wizard Scripting => APP Contributions => Topic started by: enterprised on July 11, 2015, 11:29:22 PM

Title: Arduino Ethernet Switches
Post 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:
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
 
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
Title: Re: Arduino Ethernet Switches
Post by: KaZe on July 17, 2015, 08:58:30 AM
Hi!

With this program do not keep growing use of the memory of the homegenie service?
Title: Re: Arduino Ethernet Switches
Post by: enterprised on July 17, 2015, 11:47:19 PM
I have HomeGenie running this on a Rasberry Pi 2 and have not seen an increase in memory usage over the last week.