Code for arduino pro-mini
Budget: $10 – $30 USD
This is an alarm with an activation code and with 2 different modes for de-activate it, but with some considerations.
Basic components:
- Arduino mini pro
- LCD 16*2
- Keypad 0-9, # ,*
- Switch (SW)
- Led
- Buzzer
Process starts when switch is turned on.
Then the system wait the input code
(The LCD always is written in 2nd row, from right to left.)
After the code press "*" for confirmation and the system check out if it’s OK
If the code is right, the main timer starts to count down from 40 secs making 2 beep sounds.
These beep sounds starts synchronous with the count down and go fastest progressively until beeps faster when its near to 0 secs.
When the timer reach 0 secs, sound 9 beeps fast and write in the LCD "TIME OUT"
(beep and led on simultaneously always)
And the pin 8 (or any free pin) changes to HIGH level. Holds and restart.
De-activate the timer:
There is two ways to de-activate the timer:
1.- Pressing the "#" key for 10 seconds
2.- Input signal for any free PIN of the Arduino, for 4 seconds.
After complete the time to de-activate, LCD shows message “deactivated”, holds and restart.
There is a flowchat of the process as a guide.
Basic components:
- Arduino mini pro
- LCD 16*2
- Keypad 0-9, # ,*
- Switch (SW)
- Led
- Buzzer
Process starts when switch is turned on.
Then the system wait the input code
(The LCD always is written in 2nd row, from right to left.)
After the code press "*" for confirmation and the system check out if it’s OK
If the code is right, the main timer starts to count down from 40 secs making 2 beep sounds.
These beep sounds starts synchronous with the count down and go fastest progressively until beeps faster when its near to 0 secs.
When the timer reach 0 secs, sound 9 beeps fast and write in the LCD "TIME OUT"
(beep and led on simultaneously always)
And the pin 8 (or any free pin) changes to HIGH level. Holds and restart.
De-activate the timer:
There is two ways to de-activate the timer:
1.- Pressing the "#" key for 10 seconds
2.- Input signal for any free PIN of the Arduino, for 4 seconds.
After complete the time to de-activate, LCD shows message “deactivated”, holds and restart.
There is a flowchat of the process as a guide.