I am trying to wright a program to turn on and off some relays in a specific order.
Here is what it should do.
If photo eye 1,2 and 3 are lets say <400 for 1 min together,
then turn pins 13,12,11,10,9,8 High for 30 sec
then turn pins 13,12,11,10 low and delay for 45 sec and then turn 9,8 low
and wait for photo eye 1,2,3 to be <400 again
seems simple but I cant get it to check the state of all 3 and cant get it to change the state of the relays together.
This is what I have so far. (its probably way off and not completed)
Any help would be great.
int photoeye1 = A0;
int Photoeye2 = A1;
int photoeye3 = A2;
int replay1 = 13;
int replay2 = 12;
int replay3 = 11;
int replay4 = 10;
int replay5 = 9;
int replay6 = 8;