22Views2Replies

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!

Discussions

0
None
Downunder35m

8 days 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.