Introduction: ARDUINO AIRSOFT TIME BOMB GAME
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.
- Arduino UNO
- Potentiometer (+ knob optional)
- buzzer
- On/Off switch
- 1 Channel relay
- lcd 1602 - Blue Backlight
- 4x4 Keypad
- 2x Red leds, 1x green led.
- 2x 220 Ohm (220 R) resistors
- A set of MM FF MF Jumper wires
- Female Power jack & adapter (optional) (You can also add batterys of course)
- 2 buttons for C & D(optional)
- 1 button for reset (optional)
- 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!
Attachments
10 People Made This Project!
- guardadasucan made it!
- b dilly made it!
- Alexjcgdf made it!
- cyshane made it!
- CarlosF204 made it!
- KonradK8 made it!
- Daniel AugustoG made it!
- LorenzoC18 made it!
- EmanueleM6 made it!
See 1 More
142 Comments
Question 1 year 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
Answer 5 months ago
Hello. How are the connections to connect it with the I2C module the LCD screen? Would A5 and A4 share the SDA and SCL connection with the 4x4 keyboard? It says that the video is private, could I see it somehow? Thanks a lot.
7 months ago
Hi there,
I realise that I'm posting to a very old (but very awesome) design post. I've used your design and code before for a prop which was plugged into a mains adapter but what battery would you recommend for this project? I need it to last roughly 3 hours.
Cheers!
7 months ago on Step 2
tell me where to look for changing the button holding timer in domination
10 months ago on Step 2
hi i do this and it's work but i have one question how to add active relay when time in domination mode is over because ther is no sound that is over?? (i don't use relay just adding in pin 9 + and - to ground using 5v alarm siren) btw. i see in code there is configuration autotest etc. how to rest it?
11 months ago
Can anybody tell me how to change one thing.
In sabotage when bomb explodes or time runs out this bomb behave the same - time out game over and relay goes off. I need to know if bomb exploded or team run out of time.
3 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.
Reply 1 year ago
I have the same issue none of the keypad works when I hook up buttons
Reply 1 year ago
meme probleme
same problem
Reply 1 year ago
j'ai le même problème !!
5 years ago
Hi guys
Im struggeling, i have managed to upload the code and i have wired everything correctly by using to drawings from 2 different makers, where they ar the same.
However, when i power on.. there is a tiny frequensy sound from the buzzer, both led blink one time fast, then both blink again and the red lights up constantly.
There are no digits or symbols on the lcd. I can adjust backlight brightness, but still no symbols.
Hope some can help me. Maybe go over it with me over Teamviewer?
My email is: lofte87@gmail.com
Have a nice day and a nice easter
Best regards
Morten from Norway
Reply 5 years ago
I fixed it. I would like the relay to be activated when a game is over. Now the relay trigger when the bomb goes off in Search&Destroy :/
Reason is that I can but a siren on when the game ends.
Pleeeeease help anyone
Reply 1 year ago
I have a similar problem and I get random characters on the lcd after pressing the d key
Reply 4 years ago
1 I have the same problem, can you help me, please?
Question 1 year 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 ?
Answer 1 year 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 !
Reply 1 year ago
I'm having the same issue
Reply 1 year ago
Dans longlet lang, il faut mettre const char* menu1[]={"Recherch&Dest","SABOTAGE","DOMINATION", "Configuration" };
pour chaque ligne.
remplace char* par long char*
Question 3 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.
Answer 1 year ago
Dans longlet lang, il faut mettre const char * menu1 [] = {"Recherch & Dest", "SABOTAGE", "DOMINATION", "Configuration"};
pour chaque ligne.
remplacer char * par long char *