Good Morning,
Have a prototype that I have been piecemealing with timed LED strips on 12 hour timers and a small water pump. A friend suggested an Arduino for initial run of manufacturing. The 2 LED light strips and a small water pump all work on a 12V. I have attached an image of the parts I am using.
Basically what I would like to program:
- All three things to be powered and put on a 12 hour on/12 hour off timer. I found code and put it at the end of this post.
- I would also like the power to be lowered for the pump. Right now I have a valve on the tubing of the small pump to reduce water flow (still is surprising too powerful for the application.) I would like to get rid of the valve and just reduce power.
I am trying to get this simple code, but I am new. If anyone can help, I would be tremendously thankful! Also let me know if this code below will work with an Arduino Uno for 12hour on/12 hour off:
#define TWELVE_HRS 43200000UL
unsigned long startTime;
setup()
{
startTime = millis();
}
loop()
{
if (millis() - startTime > TWELVE_HRS)
{
// Put your code that runs every 12 hours here
startTime = millis();
}
}