3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

A Remotely Programable Relay Controller (Christmas Lights or Home Automation Controller)

Step 4The Software


Here is the .pde sketch file.

Just download this sketch and load it into your AtMega328 chip and you are off and running!

The code has almost exhausted the RAM capacity of the ATMega328 - if you decide to make any changes, you will need to be very careful not to let the buffers corrupt the stack space.

All of the code is commented - and should be able to be followed.


« Previous StepDownload PDFView All StepsNext Step »
11 comments
May 19, 2012. 7:26 PMaxe512 says:
Please help me, where can I find: etherShield.h ?

I have this error like below when compiling the code:

Ethernet_Relay_Controller.pde

error: 'Time' does not name a type In function 'void do_zone_selection_ACT_GOVT()':
In function 'void setup()':
In function 'void loop()':
In function 'uint16_t print_time_page(uint8_t*)':

Please advise.

Thanks!
Jan 20, 2012. 3:03 AMsv1elf says:
Hi
I have a New Arduino Uno - R3 board .
Can i program with this board the atmega IC?
Is it possible to add a port like ' 7000 ' in case i want forward the ip- port to router?
Thanks
George
Jan 13, 2011. 5:07 AMcrorat says:
realy good project, i have prroblem finding atmega in my countri could you please tell me is anyone of this useble, thanks

http://www.chipoteka.hr/?module=moduli%2Fshop&moduleS=index&moduleLinkID=22&search=atmega&traziField=atmega
May 17, 2011. 9:06 AMchax says:
I'm from croatia too. A/D Electronic shop has Atmega168 microcontroler. I'm planing to buy one to build arduino myself. http://ad-electronic.hr/vmchk/mikrokontroleri/atmega168-20puisp-mc-27-55v-16k-flash-20mhz.html
It's Arduino compatible microcontroler, unfortunately, they don't have Atmega328 which has double amount of flash memory.
Or you can always buy Atmega328 from ebay.
Nov 7, 2010. 11:21 PMva2phl says:
Super !

I upload this code and it works really fine. Will be able to use it on the lan and on the wan side.
Sep 26, 2010. 11:53 AMDarksead says:
Thanks!!!
Now I can start making a board for this project. I searched for project like this in russian sites but a couldn’t find. This site and your project help me!
Sep 25, 2010. 1:51 PMDarksead says:
Hi,
I’m Russian student, so I don’t speak English very good! This project is so interesting, but I have sum trouble:
1) What kind of compiles you have used?
2) Can you give me .hex file for Atmega88, that I can load into my processor?
Sep 22, 2010. 7:43 AMrod27cn says:
Hi drj113,

Great!
I got the files now there is no error, thanks for your help!
Sep 22, 2010. 3:01 AMrod27cn says:
Hi,

Please help me, where can I find: etherShield.h ?

I have this error like below when compiling the code:
25: error: etherShield.h: No such file or directory In function 'void setup()':

Please advise.

Thanks!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
361
Followers
11
Author:drj113
I have a background in digital electronics, and am very interested in computers. I love things that blink, and am in awe of the physics associated with making blue LEDs.