I have a very simple project I need help with
I am trying to accomplish the following:
1. Arduino counts sequential button pushes
(Second push needs to happen inside a time interval of 1000ms or less after the first push to get counted)
2. Turns LED on immediately after the first push, and holds it on for the the time that equals the number of sequential pushes multiplied by 1000ms
3. Ideally, any push that happens during the time LED is on, should get added to the count
4. Turns LED off, clears push count
The setup is standard:
const int buttonPin = 2; // the number of the pushbutton pin
const int ledPin = 13; // the number of the LED pin
For an experienced arduino programmer this is probably less than an hour of work.
Are you interested?