i have an ESP32 C3, LED, number key pad, lcd1602, a beeper.
I want to make a fake C4 from CS.
When powered on, the device will beep and flash an LED. The display will read: Enter 4-digit Passcode To Plant The Bomb.
When input 4 digits, the display reads: Please Re-enter The Passcode.
If doesn't match, reads: Passcode Doesn't Match! Please retry. And flash and beep 3 times.
If matched, display: The Bomb Has Been Planted! Give a long flash and beep.
Then start to count down 60 sec on screen. and start to flash and beep continuously.
In the last 20 sec, it flashes and beeps faster.
and in the last 10, it flashes and beeps even faster.
At the end of count down, display: Bye Bye. and give a long flash and beep.
During the 60s count down, if the correct 4 Digit passcode are input, then display:
THE BOMB HAS BEEN DEFUSED! giving a long flash and beep.
If the passcode is wrong, then display: WRONG PASSCODE, countdown continues.
Here is my wiring:
LCD1602 SDA GPIO4
SCL GPIO5
Keypad Row 1 GPIO6
Row 2 GPIO7
Row 3 GPIO8
Row 4 GPIO9
Col 1 GPIO0
Col 2 GPIO1
Col 3 GPIO2
Col 4 GPIO3
LED Anode GPIO10
Beeper Positive GPIO10
Please help with the coding, I am simulating on Wokwi, avoid using any library