Introduction: Arduino Defuseable Bomb, Perfect for Airsoft Games! (with Timer, LCD, Keypad, Sound and More!)
This is a project I made a long time ago, but decided to upload anyways, feel free to ask me about it!
The bomb has several features:
- Password input by keypad to arm the bomb
- Timer/count down
- Flashy LEDs
- Defusing via the password
- LCD display
- Simple to edit and change
So to get started you would need:
- LCD (I used a 16x2 from sparkfun)
- Potentiometer for the contrast on the LCD
- Keypad (again from sparkfun)
- Resistors for the LEDs (I used 330 Ohm)
Step 1: Assembly
Connect the components as according to the circuit schematic
Step 2: Upload the Code
Upload the bomb project4 code to your arduino, and add the following libraries: Keypad, Tone, and liquid crystal to your libraries folder in the arduino folder
and now you're ready to use the bomb!
First edit the time in the code, to match your needs, then start the arduino and enter your desired password, then the bomb timer will start, and you can press the * to begin defusing the bomb, if you press a wrong key, pressing # will delete what you've written. If you write a wrong password, or the timer reaches 0, the bomb will "explode"!
Feel free to ask :)
10 People Made This Project!
We have a be nice policy.
Please be positive and constructive.
Hi. How do i wire the LCD if i have only 4 pins(gnd,vcc,sda,scl)? I have a small board on the 16p. Do i need a different cod? Pls help me.
Replace your LiquidCrystal.h library with LiquidCrystal_I2C.h that you can find anywhere on the net. Wire the SDA to terminal A4 on your Arduino and SCL to terminal A5.
Then add this to your code:
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
//LiquidCrystal lcd(7,8,10,11,12,13); // the pins we use on the LCD
You may need to alter the LCD commands to something like:
A bit of reading on the net will also help out, but that should get you going for now :-)
"menu principal was not decleared in this scope"- how to fix it?
"menu principal was not decleared in this scope" ----------how to fix it?
I keep getting a exit status 1 message when I upload. Do you know how to fix this?