Digital ebb timer?

joe macclennan

Well-Known Member
Hey guys Ima build a DIY ebb and flo/aero hybrid system.I'm actually gonna build it just for ebb for now and add the aero to it later. (still haven't decided on high pressure or low pressure) I'm currently runnin the stinkbud system but I'm lookin for some bigger treees:joint: Anyway I would like to find a digital timer to put on my controller.
any ideas?
Thanks in advance
joe
 

Kdn

Member
All you need is a uC and a couple relays, I have some relay breakout boards which take a 5v control signal to activate(can be feed straight from a uC pin), then at least 5v to feed the relay and a gnd then you can switch the load all the way up to ~15amps 120v AC. I use these for lights,pumps,solenoids,fans,o3gen basically anything I can think of lol. if you wanted a recycle timer something like 20 lines of code would do it.

Code:
#include <Time.h>
#include <TimeAlarms.h>
#define RelayA  2 //<-Pin High will activate Relay A
#define RelayB  3 //<-Pin High will activate Relay B
void setup()  
 
{
 Alarm.timerOnce(60,RelayAOn); //Wait 60Seconds then turn on RelayA
 Alarm.timerOnce(90,RelayBOn); //Wait 90Seconds then turn on RealyB
}
void loop()
{
 Alarm.delay(1000); //wait a seconds(1000ms) then check our timers again
}
void 
RelayAOn()
{
 digitalWrite(RelayA, HIGH);
 Alarm.timerOnce(60,RelayAOff);
}
void 
RelayAOff()
{
 digitalWrite(RelayA, LOW);
 Alarm.timerOnce(60,RelayAOn);
}
void 
RelayBOn()
{
 digitalWrite(RelayB, HIGH);
 Alarm.timerOnce(90,RelayAOff);
}
void 
RelayBOff()
{
 digitalWrite(RelayB LOW);
 Alarm.timerOnce(90,RelayAOn);
}
 

wiseguy316

Well-Known Member
All you need is a uC and a couple relays, I have some relay breakout boards which take a 5v control signal to activate(can be feed straight from a uC pin), then at least 5v to feed the relay and a gnd then you can switch the load all the way up to ~15amps 120v AC. I use these for lights,pumps,solenoids,fans,o3gen basically anything I can think of lol. if you wanted a recycle timer something like 20 lines of code would do it.

Code:
#include <Time.h>
#include <TimeAlarms.h>
#define RelayA  2 //<-Pin High will activate Relay A
#define RelayB  3 //<-Pin High will activate Relay B
void setup()  
 
{
 Alarm.timerOnce(60,RelayAOn); //Wait 60Seconds then turn on RelayA
 Alarm.timerOnce(90,RelayBOn); //Wait 90Seconds then turn on RealyB
}
void loop()
{
 Alarm.delay(1000); //wait a seconds(1000ms) then check our timers again
}
void 
RelayAOn()
{
 digitalWrite(RelayA, HIGH);
 Alarm.timerOnce(60,RelayAOff);
}
void 
RelayAOff()
{
 digitalWrite(RelayA, LOW);
 Alarm.timerOnce(60,RelayAOn);
}
void 
RelayBOn()
{
 digitalWrite(RelayB, HIGH);
 Alarm.timerOnce(90,RelayAOff);
}
void 
RelayBOff()
{
 digitalWrite(RelayB LOW);
 Alarm.timerOnce(90,RelayAOn);
}
Do you think if he doesn't know much about timers he is going to build his own? I know lots about electronics and I could not even build a timer from what you provided.
 

Kdn

Member
Just throwing the info out there, those who are motivated enough will find everything they need in that post. Surely you can figure out how to hook up a relay to a uC with a few minutes of google and some simple wiki reading about electronics. Instead of being negative we can use this opportunity to learn and innovate.
 
Top