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 8Setting up a Program

Setting up a Program
Now - we can set up a program in the controller.

Before we do that, lets turn on the timer again, so that the automatic functions can operate.

Then, select "Program 0-6" at the top of the screen to view the current program states 0 through 6. The screen below will be displayed.

The program shown uses 2 states;

State 0 which turns on relays 1 3 & 5 for 1 second then jumps to state 1
and
State 1 which turns on relays 2 4 & 6 for 1 second then jumps to state 0

Round and round it goes....... alternating every second.

Lets modify it so that state 0 turns on relays 1 3 & 5 for 10 seconds, then goes to state 1.

Just type 0 in the state selection box at the bottom and push 'Modify". This will cause the modify screen to be shown. It is also shown below.

In the modify screen you are shown the state (or step) that you are changing, and you can alter the wait time (between 1 and 65000 seconds), the step to jump to (between step 0 and step 19, and what outputs to turn on for this step.

Just make your changes by entering 10 for the wait time, 1 for the next state, and select relays 1, 3 & 5. Then push the Modify button - Your step will then be saved, and you can re-select the "Program 0-6 tab" to see the whole program.

The steps will automatically be saved into EEPROM on the micro, so that your program will run automatically by itself as soon as the board is powered up.


« Previous StepDownload PDFView All StepsNext Step »

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.