This is my first Arduino project (outside of the basic turning LED's ON/OFF). Is what I want to do is monitor an analog signal (0-5VDC) and see if it is pulsing or not. If it is pulsing then everything is working correctly and the LED should be off. If it is constant HIGH or LOW then that signals an issue and I want the LED to turn ON and stay on until the pulse resumes.
I'm not savy enough to get into using tables/charts/Array's yet and I was wondering if someone could help me flesh out the following statement into something the Arduino can process. I know my way of thinking and taking a statement I understand and converting it will help me understand this much more.
If Analog1 is = or < 2 hz for 3 seconds then change Digital1 to HIGH.
Else Digital1 LOW
I attached a rough schematic of the circuit and conditions of the inputs/outputs.
Thank you guys very much for taking the time to look at this :).
Planter Schematic.pdf (1.05 MB)