Author Options:

Bomb Defuse Game? Answered

I am somewhat new to Arduino, and I wanted to create a project, but don't know where to start.

The project I am looking to create is a bomb-diffuse game that uses a 4 digit 7 segment display that will count down from a variable amount of seconds.

It will be activated by a 2-position key switch, and deactivated by a code. (10 input buttons).

Once four buttons are pressed, it needs to check the order and the numbers pressed and subtract five seconds if wrong. I may also want it to beep every second once it reaches 30 seconds, and flash a red LED every second from start.

Any pointers, suggestions, or solutions would be greatly appreciated. Thanks in advance!


The forums are retiring in 2021 and are now closed for new topics and comments.

1 year ago

Have a look in the Arduino Playground.
Counters are plentyful there, including the wiring of the hardware with LED displays.
The game coding is much easier if you create a simple flow chart for the project.
Like start sequence, code pad functions, countdown, subtraction, boom or no boom.
Again, code examples for basically all your needs are in the Playground, you can copy and paste based on your flow chart to get your basic building blocks.
Add the required variables that you want to use to link it all and adjust the input and output pins in the code according to your design.
Plays off to test each part seperately for the coding and then to combine it to work together.