Description: Countdown Timer: Range 1-99 minutes. Output time (mm:ss) to seven segment display(TM1637) and Audio to Buzzer. Input: Push button to start. 10K Pot used for time select.
Note: Two alternative designs, two different ino files. One with Attiny85 IC the other with an arduino nano.
But I'd like to improve 2 things, let's see if you can help me:
- during the countdown, the 2 separating dots (mm:ss) are not visible, only in the time setting. What should be the changes in the code to make them visible also in the countdown?
My display is a little different from yours: it has also a decimal point at the right of each digit.
- the buzzer alarm, when the time reaches 00:00 it's like a two tone siren. Can we change it to a loud beep?
Check the TM1637 data sheet but I think the colon's cathode is driven by the 8th segment line and the anode is common to the hours drive. So you just have to edit the output routine to turn on the 8th bit during the 2nd time slot, which is minutes during countdown.
You may have a variant display that has decimal points in addition to the colon. AFAICT there aren't enough segment lines on the TM1637 to handle both the colon or DP, so the DP probably isn't active.
I've made this project, it's working fine.
But I'd like to improve 2 things, let's see if you can help me:
- during the countdown, the 2 separating dots (mm:ss) are not visible, only in the time setting. What should be the changes in the code to make them visible also in the countdown?
My display is a little different from yours: it has also a decimal point at the right of each digit.
- the buzzer alarm, when the time reaches 00:00 it's like a two tone siren. Can we change it to a loud beep?
Thanks!
Eduardo