Hi there, I'm attempting to finish this project for a decoration project. I have a fake rocket that needs to "fly" when the countdown arrives to 0.
I built a 2 digit countdown 7 segment display with regular white led strip. I built an amplifier stage with 1 tip122 for each segment.
I used inputs from 0 to 13 to run 14 segments in order to make a countdown from 10 to 0. I also used A5 as digital input (19).
The press of the button starts the countdown, but if not pressed it will just display a cross and a frame. Until here everything ok.
I found two problems that I don't know how to solve.
When the countdown has started, it won't stop until 0. Somehow, I would like it to start from 10 again even if i'm inside the countdown. But the statment if makes it finish the countdown and back to main loop before I can press that. Is ther any way to do that? I mean, that the countdown starts every time I press the button even if it's already counting down....
The other problem is that the button doesn't react that well. I realised the longer the wire the worst it reacts (sometimes good, sometimes not good). I connected the button throught a pulldown 10kohm resistor on A5 ( using it as digital input 19). Any ideas with that?
Thanks a lot. I attach the code.
COUNTDOWN.ino (4.17 KB)