ARDUINO AIRSOFT TIME BOMB GAME

43,764

51

134

Introduction: ARDUINO AIRSOFT TIME BOMB GAME

About: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the wide range of sensors you can use with it. I make…

Take a look at the video to see it at work.

Check the next steps for the Schematic and code.

Step 1: The Schematic and Parts List.

Just connect it as the schematic shows. Upload the code and it should work.

I added a on/off switch a reset button and a power jack, those are not

shown on the schematic but easy to add.

To add a reset button just add a button to the reset pin, put one wire in the

reset pin and one in ground.

You can also add extra buttons for C and D as shown on the schematic.

My final project will have a red button for the red team and green for green team.

Parts list.

  1. Arduino UNO
  2. Potentiometer (+ knob optional)
  3. buzzer
  4. On/Off switch
  5. 1 Channel relay
  6. lcd 1602 - Blue Backlight
  7. 4x4 Keypad
  8. 2x Red leds, 1x green led.
  9. 2x 220 Ohm (220 R) resistors
  10. A set of MM FF MF Jumper wires
  11. Female Power jack & adapter (optional) (You can also add batterys of course)
  12. 2 buttons for C & D(optional)
  13. 1 button for reset (optional)
  14. Alarm Strobe? Alarm Sound?

(i used male and female audio plugs to connect the lamp)


Step 2: The Code.

There are multiple codes inside.

Open and upload the Time_Bomb_Airsoft_Game.ino

If you connected everything the right way it should work right away.

Be creative! make a nice enclosure for it.

Good luck!

10 People Made This Project!

Recommendations

  • Toys & Games Contest

    Toys & Games Contest
  • Big vs Small Challenge

    Big vs Small Challenge
  • Fix It Challenge

    Fix It Challenge

134 Comments

0
VinnyB7
VinnyB7

2 years ago

Hey,

I bought buttons to connect to "C" and "D", but when I connect them the way it's shown in the schematic nothing happens during the domination game. Any help is appreciated.

0
LUTINROUGE
LUTINROUGE

Reply 20 days ago

meme probleme
same problem

0
LUTINROUGE
LUTINROUGE

Reply 20 days ago

j'ai le même problème !!

0
gmayrhofer fonseca
gmayrhofer fonseca

Question 2 years ago

Does anyone know why this error messages??

C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:17:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* menu1[]={"Search&Destroy","Sabotage","Domination", "Configuration" };
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:17:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:17:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:17:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:18:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* menu2[]={"Game Config","Sound Config", "Relay Test", "Auto Test" };
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:18:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:18:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:18:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:19:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* GAME_TIME="Game Time:";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:20:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* BOMB_TIME="Bomb Time:";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:21:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* ZERO_MINUTES="00 minutes";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:22:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* ARM_TIME="Arm Time:";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:23:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* ZERO_SECS="00 seconds";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:24:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* ENABLE_SOUND="Enable Sound?";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:25:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* YES_OR_NOT="A : Yes B : No";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:26:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* ENABLE_RELAYPIN="Enable Relay?";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:27:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* ENABLE_CODE="Enable Code Arm?";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:28:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* GAME_TIME_TOP="GAME TIME";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:29:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* ARMING_BOMB = "ARMING BOMB";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:30:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* ENTER_CODE = "Enter Code";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:31:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* CODE_ERROR = "Code Error!";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:32:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* BOMB_ARMED = "BOMB ARMED";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:33:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* DETONATION_IN = "DETONATION IN";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:34:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* DISARMING = "DISARMING BOMB" ;
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:35:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* DISARM = "DISARMING";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:36:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* GAME_OVER = " GAME OVER! ";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:37:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* DEFENDERS_WIN = " DEFENDERS WIN ";
^
C:\Users\guima\Desktop\arduino airsoft bomb\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:38:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char* SABOTAGE_FAIL= "SABOTAGE FAIL!";
^
O sketch usa 20808 bytes (64%) de espaço de armazenamento para programas. O máximo são 32256 bytes.
Variáveis globais usam 1363 bytes (66%) de memória dinâmica, deixando 685 bytes para variáveis locais. O máximo são 2048 bytes.

0
LUTINROUGE
LUTINROUGE

Answer 20 days ago

Dans longlet lang, il faut mettre const char * menu1 [] = {"Recherch & Dest", "SABOTAGE", "DOMINATION", "Configuration"};
pour chaque ligne.
remplacer char * par long char *

0
D_Knightrider
D_Knightrider

Question 10 months ago

Hi !
I'm trying to build this thing but I have several issues, first of all I have this error message when I upload the project to the board : warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
It does upload the code anyway but all I'm seeing are special characters displayed, nothing makes sense.
I tried different versions of Arduino and some older versions are better to display something "readable" but still pretty messy.
Anyone tried this code recently ?

0
D_Knightrider
D_Knightrider

Answer 10 months ago

Well ... I have my answer and I hope it will help some others.
The random characters were due to the buzzer ... I don't know how it could interfere but it does.
I removed him and replaced by another model and everything is sharp clear on display !
Thanks for the amazing job !

0
LUTINROUGE
LUTINROUGE

Reply 20 days ago

Dans longlet lang, il faut mettre const char* menu1[]={"Recherch&Dest","SABOTAGE","DOMINATION", "Configuration" };
pour chaque ligne.
remplace char* par long char*

0
senpuu21
senpuu21

Question 4 weeks ago

hi i have problem i use arduino uno (clone) relay channel etc. but i don't use leds and buzzer
and i dont know why 2 keypad dosen't work :/ (i am green i this was thinking hmm looks easy :D) don't have any error when program go to arduino

ok now working problem was with that don't understand it :D but with core sierraalpha777 works ps. in buzzer red wire should go to arduino not ground

0
Lukas212Santos
Lukas212Santos

6 weeks ago

Boa noite, esta apresentando este erro alguem poderia me ajudar?
3:18: error: variable or field 'keypadEvent' declared void
3:18: error: 'KeypadEvent' was not declared in this scope
3:18: note: suggested alternative: 'serialEventRun'
In function 'void setup()':
111:27: error: 'keypadEvent' was not declared in this scope
111:27: note: suggested alternative: 'KeypadEvent'
In function 'void loop()':
197:3: error: 'menuPrincipal' was not declared in this scope
exit status 1

0
AmmarF5
AmmarF5

Question 2 years ago

Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Users\........\AppData\Local\Temp\Rar$DIa0.657\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino: In function 'void loop()':

Time_BOMB_Airsoft_GAME:194: error: 'menuPrincipal' was not declared in this scope

menuPrincipal();

^

exit status 1

'menuPrincipal' was not declared in this scope

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

0
vandenbrande
vandenbrande

Reply 2 years ago

Think you did something wrong there.

0
vandenbrande
vandenbrande

Reply 2 years ago

Wrong library i think

0
bgeorgy2001
bgeorgy2001

Reply 3 months ago

Hey im still getting this issue and have both keypad AND the crystal libraries installed. Any tips?

0
nickpalec052891
nickpalec052891

Question 3 months ago

Hi! i am trying to add a 12v alarm speaker/buzzer connected on the relay..however when it is off and is connected on NO, it produces a sound right away even though it is still off..if connected to NC, during off, no sound, but when turned on, it produces sound right away..can you help me with this?

0
Ricochet2152
Ricochet2152

Question 3 months ago

Is there a way to run this program via bluetooth or wireless from your phone?

0
alanjo99
alanjo99

4 months ago

What do the C & D buttons actually do ? Thanks

0
guardadasucan
guardadasucan

Reply 4 months ago

C - Cancel
D- Accept

0
guardadasucan
guardadasucan

Question 4 months ago

I made this project changing the old i2c screen to the new with only 4 pins (gnd, vcc, scl, sda) everything went good but when i start the game i got weird buzzer sounds different from a bomb sound rhythm. I made a video of the problem, please help me guys :c
https://youtu.be/4DeLGRzPF0E

1
ColinS111
ColinS111

Question 2 years ago

With keypad libarie do i have to download? i cant find it... can someone help me (adafruit or something else?) I got the 4x4 keypad.. hope to hear from ya soon!

Keypad not found 2.PNG