Need Relay timer program

Working on a project and came across arduino. I have spent the past 5 hours watching tutorials etc. But it still seems like Greek to me. I have no programming experience at all Wondering if anyone can write a program for me or point me in the direction i need to go.

I want to have a lcd countdown timer which can be adjusted with buttons up or down.

Press a button that starts the timer and turns on 6 relays.

When the preset time runs out the relays turn off.

You want a program that:

Outputs to LCD.
Reads buttons, up, down and start.
Turns on 6 relays for the set time.

Now we need the important "detail".

Are the 6 relays to have individual set times? IE, 6 timers.

What duration are you expecting to set? Seconds, minutes, hours or days?

Are the timers to be set or run independently and concurrent?

Weedpharma

all 6 relay run off one timer.
seconds. 1-30

Thanks Weedpharma :slight_smile:

I should have asked this to begin with. What sort or repeatability will be achievable? I need something that will be very repeatable for precise measurement. Im hoping 0.2% of set value can be achieved.

I have a made in china test bench that does this already but only repeats within .5 seconds.

casper604:
all 6 relay run off one timer.
seconds. 1-30

Thanks Weedpharma :slight_smile:

So that is 1 IO pin driving 6 relays all coming on at same time?

Have you any program written or are you wanting someone to design the whole project and write the full program?

At least we need to know what display you are using to correctly code for it.

Weedpharma

what you want to do is well within the capacity of the arduino and additional hardware, And this is the right place to get the help you need to work it out.

as well as being Very useful the arduino platform is an educational tool so is ideal for learning how to program.

grab a big pot of coffee and sit down one evening and read through starting with the 'getting started' option off the learning menu above.

if anything really baffles you, ask.. but you need to learn how to walk n talk first :wink:

Thanks for the input. The best I have been able to come up with is a single relay board with the uno using the blink program. It is working for now but I do need something hard wired and setup the way I want it. At first I wanted someone to do the whole thing for me. But after getting into a little bit, I am finding it quite interesting.

The relay board is running off a 12v battery.

What display would you recommend?

the hardcore guys will develop on an arduino board and solder up a solution when all the bugs have been ironed out. However for me with my one off project i am more than happy to use the development board for my working solution (if i get there..) and will use a bit of tape to secure the dupont prototyping wires in place on the board and the peripheral devices. hot glue from a trigger gun would also work too..

why do you need 6 relays if all are turning on at the same time for the same durration, cant you switch everything from a single relay? or are they hi amp devices?

for a minimal cheap display the 16 x 2 lcd screens are cheap if you need more info there are also cheap 20 x 4 lcd screens. you may want to look at the lcd shields as they just plug into the board and have 4 buttons and a reset button wired in all ready to go too

lcd shield 16 x 2

So you already have the UNO, do you also already have the display? Buttons? You already have a relay board? If so, could you give details of the exact models you have, they differ quite a bit.