loading

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!

<p>Here is my modified code for the time bomb there is one skretch for control the battery status in NOT CHECKED and I don't now if does it work.</p><p>There is a modified code for work whith 4x3 keypad.</p><p>USAGE: </p><p>2 UP, 4 RIGHT, 8 DOWN, 3 LEFT, * CANCEL, # CONFIRM.</p><p>I have complete traslate the program to change the frase just modificated the skreck named alang for better work you have to change the position of cursor of the LCD screen. </p><p>PS sorry for my bad english</p>
<p>This is the best version I made for international players for me is the best and build plug and play if you want to traslate in your language just to cancel the italian phrases in your language and and it's all.</p>
<p>why when i try to send to arduino gave an error &quot; 'menuPrincipal' was not declared in this scope&quot;<br>you can help me?</p>
<p>same problem here menuPrincipal not declared. I'm new to the arduino platform electronics is no problem but I need to solve the menu problem please help</p>
Thank you! I will update mine soon to. I added some more stuff.
<p>looks great!</p><p>If i connect everything and upload the sketch and try to use a button for the menu the LCD display gets weird and shows random?! characters.</p><p>Any idea to fix this?! thanks!</p>
<p>Hi Zaudio, the same thing happen to me, I had to flash the code to the arduino a couple of times and that was it, I did check the cables 1st and it was working ok, but after a while it started to show random characters... after the flashing it stop...</p>
Just try again, and check your wiring. Probably did something wrong<br>
<p>already tried, even with only the LCD keypad shield and keypad it goes crazy</p>
<p>Also tried the other one you made (<a href="https://www.instructables.com/files/orig/F2T/R7RJ/IN9678P4/F2TR7RJIN9678P4.zip" rel="nofollow">Time bomb TRASALATE.zip</a>)</p>
<p>We can work together on this project to. Your in italy right? you can help me with some parts that i need from italy.</p>
Yes what do you need ?
<p>Sorry for the late reaction, I need the gun case i used for my project they are perfect, they come from italy. They are being sold with bruni alarm pistols, those pistols are being made in italy and the cases are made by negrini. But I only need the cases.</p>
<p>What do you need specifically</p>
<p>Replicas will do to. No problem. Best blank with no logo. or brand name.</p>
<p>Cool thanks</p>
<p>Hello .. Good evening. I have a pump project for AIRFSOT and I looked at your project and I interceded for it, I do not know anything about programming, I downloaded your code and put it to run on Arduino and presented the errors below ... how can I solve this ... ?? ? Can you help me .... ????<br>Thank you ... !!!!!</p><p>time_bomb:196: error: variable or field 'keypadEvent' declared void</p><p> void keypadEvent(KeypadEvent key){</p><p> ^</p><p>time_bomb:196: error: 'KeypadEvent' was not declared in this scope</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\bomba_0_0.ino: In function 'void menuPrincipal()':</p><p>bomba_0_0:5: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW); </p><p> ^</p><p>bomba_0_0:6: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW); </p><p> ^</p><p>bomba_0_0:9: error: 'saStatus' was not declared in this scope</p><p> saStatus=false;</p><p> ^</p><p>bomba_0_0:10: error: 'sdStatus' was not declared in this scope</p><p> sdStatus=false;</p><p> ^</p><p>bomba_0_0:11: error: 'doStatus' was not declared in this scope</p><p> doStatus=false;</p><p> ^</p><p>bomba_0_0:16: error: 'lcd' was not declared in this scope</p><p> lcd.print(menu1[i]);</p><p> ^</p><p>bomba_0_0:16: error: 'menu1' was not declared in this scope</p><p> lcd.print(menu1[i]);</p><p> ^</p><p>bomba_0_0:21: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:21: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:22: error: 'BT_UP' was not declared in this scope</p><p> if(var == BT_UP &amp;&amp; i&gt;0){</p><p> ^</p><p>bomba_0_0:23: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:30: error: 'BT_DOWN' was not declared in this scope</p><p> if(var == BT_DOWN &amp;&amp; i&lt;2){</p><p> ^</p><p>bomba_0_0:31: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:39: error: 'BT_SEL' was not declared in this scope</p><p> if(var == BT_SEL){</p><p> ^</p><p>bomba_0_0:40: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\bomba_0_0.ino: In function 'void config()':</p><p>bomba_0_0:74: error: 'lcd' was not declared in this scope</p><p> lcd.clear();</p><p> ^</p><p>bomba_0_0:79: error: 'menu2' was not declared in this scope</p><p> lcd.print(menu2[i]);</p><p> ^</p><p>bomba_0_0:83: error: 'var' was not declared in this scope</p><p> var=keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:83: error: 'keypad' was not declared in this scope</p><p> var=keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:84: error: 'BT_UP' was not declared in this scope</p><p> if(var == BT_UP &amp;&amp; i&gt;0){</p><p> ^</p><p>bomba_0_0:85: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:93: error: 'BT_DOWN' was not declared in this scope</p><p> if(var == BT_DOWN &amp;&amp; i&lt;3){</p><p> ^</p><p>bomba_0_0:94: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:101: error: 'BT_CANCEL' was not declared in this scope</p><p> if(var == BT_CANCEL){</p><p> ^</p><p>bomba_0_0:102: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:105: error: 'BT_SEL' was not declared in this scope</p><p> if(var == BT_SEL){</p><p> ^</p><p>bomba_0_0:106: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:121: error: 'RELAYPIN' was not declared in this scope</p><p> digitalWrite(RELAYPIN, HIGH); // turn the LED on (HIGH is the voltage level)</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\bomba_0_0.ino: In function 'void configQuickGame()':</p><p>bomba_0_0:139: error: 'sdStatus' was not declared in this scope</p><p> if(sdStatus || doStatus || saStatus){</p><p> ^</p><p>bomba_0_0:139: error: 'doStatus' was not declared in this scope</p><p> if(sdStatus || doStatus || saStatus){</p><p> ^</p><p>bomba_0_0:139: error: 'saStatus' was not declared in this scope</p><p> if(sdStatus || doStatus || saStatus){</p><p> ^</p><p>bomba_0_0:142: error: 'lcd' was not declared in this scope</p><p> lcd.print(GAME_TIME);</p><p> ^</p><p>bomba_0_0:142: error: 'GAME_TIME' was not declared in this scope</p><p> lcd.print(GAME_TIME);</p><p> ^</p><p>bomba_0_0:160: error: 'time' was not declared in this scope</p><p> time[i] = varu;</p><p> ^</p><p>bomba_0_0:165: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:178: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:178: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:181: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:182: error: 'GAMEMINUTES' was not declared in this scope</p><p> GAMEMINUTES= ((time[0]*600)+(time[1]*60)+(time[2]*10)+(time[3]));</p><p> ^</p><p>bomba_0_0:182: error: 'time' was not declared in this scope</p><p> GAMEMINUTES= ((time[0]*600)+(time[1]*60)+(time[2]*10)+(time[3]));</p><p> ^</p><p>bomba_0_0:187: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:191: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:195: error: 'sdStatus' was not declared in this scope</p><p> if(sdStatus || saStatus){</p><p> ^</p><p>bomba_0_0:195: error: 'saStatus' was not declared in this scope</p><p> if(sdStatus || saStatus){</p><p> ^</p><p>bomba_0_0:199: error: 'lcd' was not declared in this scope</p><p> lcd.print(BOMB_TIME);</p><p> ^</p><p>bomba_0_0:199: error: 'BOMB_TIME' was not declared in this scope</p><p> lcd.print(BOMB_TIME);</p><p> ^</p><p>bomba_0_0:202: error: 'ZERO_MINUTES' was not declared in this scope</p><p> lcd.print(ZERO_MINUTES);</p><p> ^</p><p>bomba_0_0:210: error: 'time' was not declared in this scope</p><p> time[i] = varu;</p><p> ^</p><p>bomba_0_0:212: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:224: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:224: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:227: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:228: error: 'BOMBMINUTES' was not declared in this scope</p><p> BOMBMINUTES= ((time[0]*10)+(time[1]));</p><p> ^</p><p>bomba_0_0:228: error: 'time' was not declared in this scope</p><p> BOMBMINUTES= ((time[0]*10)+(time[1]));</p><p> ^</p><p>bomba_0_0:233: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:237: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:242: error: 'sdStatus' was not declared in this scope</p><p> if(sdStatus || doStatus || saStatus){</p><p> ^</p><p>bomba_0_0:242: error: 'doStatus' was not declared in this scope</p><p> if(sdStatus || doStatus || saStatus){</p><p> ^</p><p>bomba_0_0:242: error: 'saStatus' was not declared in this scope</p><p> if(sdStatus || doStatus || saStatus){</p><p> ^</p><p>bomba_0_0:246: error: 'lcd' was not declared in this scope</p><p> lcd.print(ARM_TIME);</p><p> ^</p><p>bomba_0_0:246: error: 'ARM_TIME' was not declared in this scope</p><p> lcd.print(ARM_TIME);</p><p> ^</p><p>bomba_0_0:249: error: 'ZERO_SECS' was not declared in this scope</p><p> lcd.print(ZERO_SECS);</p><p> ^</p><p>bomba_0_0:257: error: 'time' was not declared in this scope</p><p> time[i] = varu;</p><p> ^</p><p>bomba_0_0:259: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:272: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:272: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:275: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:276: error: 'ACTIVATESECONDS' was not declared in this scope</p><p> ACTIVATESECONDS= ((time[0]*10)+(time[1]));</p><p> ^</p><p>bomba_0_0:276: error: 'time' was not declared in this scope</p><p> ACTIVATESECONDS= ((time[0]*10)+(time[1]));</p><p> ^</p><p>bomba_0_0:281: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:285: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:289: error: 'sdStatus' was not declared in this scope</p><p> if(sdStatus || saStatus || doStatus){</p><p> ^</p><p>bomba_0_0:289: error: 'saStatus' was not declared in this scope</p><p> if(sdStatus || saStatus || doStatus){</p><p> ^</p><p>bomba_0_0:289: error: 'doStatus' was not declared in this scope</p><p> if(sdStatus || saStatus || doStatus){</p><p> ^</p><p>bomba_0_0:291: error: 'lcd' was not declared in this scope</p><p> lcd.print(ENABLE_SOUND);</p><p> ^</p><p>bomba_0_0:291: error: 'ENABLE_SOUND' was not declared in this scope</p><p> lcd.print(ENABLE_SOUND);</p><p> ^</p><p>bomba_0_0:293: error: 'YES_OR_NOT' was not declared in this scope</p><p> lcd.print(YES_OR_NOT);</p><p> ^</p><p>bomba_0_0:297: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:297: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:299: error: 'soundEnable' was not declared in this scope</p><p> soundEnable=true;</p><p> ^</p><p>bomba_0_0:300: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:305: error: 'soundEnable' was not declared in this scope</p><p> soundEnable=false;</p><p> ^</p><p>bomba_0_0:306: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:313: error: 'sdStatus' was not declared in this scope</p><p> if(sdStatus || saStatus){</p><p> ^</p><p>bomba_0_0:313: error: 'saStatus' was not declared in this scope</p><p> if(sdStatus || saStatus){</p><p> ^</p><p>bomba_0_0:315: error: 'lcd' was not declared in this scope</p><p> lcd.print(ENABLE_RELAYPIN);</p><p> ^</p><p>bomba_0_0:315: error: 'ENABLE_RELAYPIN' was not declared in this scope</p><p> lcd.print(ENABLE_RELAYPIN);</p><p> ^</p><p>bomba_0_0:317: error: 'YES_OR_NOT' was not declared in this scope</p><p> lcd.print(YES_OR_NOT);</p><p> ^</p><p>bomba_0_0:320: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:320: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:322: error: 'relayEnable' was not declared in this scope</p><p> relayEnable=true;</p><p> ^</p><p>bomba_0_0:323: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:327: error: 'relayEnable' was not declared in this scope</p><p> relayEnable=false;</p><p> ^</p><p>bomba_0_0:328: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:334: error: 'sdStatus' was not declared in this scope</p><p> if(sdStatus || saStatus){</p><p> ^</p><p>bomba_0_0:334: error: 'saStatus' was not declared in this scope</p><p> if(sdStatus || saStatus){</p><p> ^</p><p>bomba_0_0:336: error: 'lcd' was not declared in this scope</p><p> lcd.print(ENABLE_CODE);</p><p> ^</p><p>bomba_0_0:336: error: 'ENABLE_CODE' was not declared in this scope</p><p> lcd.print(ENABLE_CODE);</p><p> ^</p><p>bomba_0_0:338: error: 'YES_OR_NOT' was not declared in this scope</p><p> lcd.print(YES_OR_NOT);</p><p> ^</p><p>bomba_0_0:342: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:342: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>bomba_0_0:344: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:346: error: 'passwordEnable' was not declared in this scope</p><p> passwordEnable = true;</p><p> ^</p><p>bomba_0_0:350: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>bomba_0_0:351: error: 'passwordEnable' was not declared in this scope</p><p> passwordEnable = false;</p><p> ^</p><p>bomba_0_0:355: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\domination.ino: In function 'void domination()':</p><p>domination:4: error: 'GAMEMINUTES' was not declared in this scope</p><p> int minutos = GAMEMINUTES-1;</p><p> ^</p><p>domination:10: error: 'team' was not declared in this scope</p><p> team=0;</p><p> ^</p><p>domination:11: error: 'iZoneTime' was not declared in this scope</p><p> iZoneTime=0;</p><p> ^</p><p>domination:13: error: 'redTime' was not declared in this scope</p><p> redTime=0;</p><p> ^</p><p>domination:14: error: 'greenTime' was not declared in this scope</p><p> greenTime=0;</p><p> ^</p><p>domination:22: error: 'endGame' was not declared in this scope</p><p> if(endGame){</p><p> ^</p><p>domination:26: error: 'keypad' was not declared in this scope</p><p> keypad.getKey();</p><p> ^</p><p>domination:29: error: 'timeCalcVar' was not declared in this scope</p><p> timeCalcVar=(millis()- iTime)%1000;</p><p> ^</p><p>domination:32: error: 'GREENLED' was not declared in this scope</p><p> if(team==1)digitalWrite(GREENLED, HIGH); </p><p> ^</p><p>domination:33: error: 'REDLED' was not declared in this scope</p><p> if(team==2)digitalWrite(REDLED, HIGH); </p><p> ^</p><p>domination:37: error: 'GREENLED' was not declared in this scope</p><p> if(team==1)digitalWrite(GREENLED, LOW); </p><p> ^</p><p>domination:38: error: 'REDLED' was not declared in this scope</p><p> if(team==2)digitalWrite(REDLED, LOW);</p><p> ^</p><p>domination:41: error: 'soundEnable' was not declared in this scope</p><p> if(timeCalcVar &gt;= 0 &amp;&amp; timeCalcVar &lt;= 40 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:41: error: 'tonepin' was not declared in this scope</p><p> if(timeCalcVar &gt;= 0 &amp;&amp; timeCalcVar &lt;= 40 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:41: error: 'activeTone' was not declared in this scope</p><p> if(timeCalcVar &gt;= 0 &amp;&amp; timeCalcVar &lt;= 40 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:43: error: 'soundEnable' was not declared in this scope</p><p> if(timeCalcVar &gt;= 245 &amp;&amp; timeCalcVar &lt;= 255 &amp;&amp; minutos-aTime/60000&lt;2 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:43: error: 'tonepin' was not declared in this scope</p><p> if(timeCalcVar &gt;= 245 &amp;&amp; timeCalcVar &lt;= 255 &amp;&amp; minutos-aTime/60000&lt;2 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:43: error: 'activeTone' was not declared in this scope</p><p> if(timeCalcVar &gt;= 245 &amp;&amp; timeCalcVar &lt;= 255 &amp;&amp; minutos-aTime/60000&lt;2 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:44: error: 'soundEnable' was not declared in this scope</p><p> if(timeCalcVar &gt;= 495 &amp;&amp; timeCalcVar &lt;= 510 &amp;&amp; minutos-aTime/60000&lt;4 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:44: error: 'tonepin' was not declared in this scope</p><p> if(timeCalcVar &gt;= 495 &amp;&amp; timeCalcVar &lt;= 510 &amp;&amp; minutos-aTime/60000&lt;4 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:44: error: 'activeTone' was not declared in this scope</p><p> if(timeCalcVar &gt;= 495 &amp;&amp; timeCalcVar &lt;= 510 &amp;&amp; minutos-aTime/60000&lt;4 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:45: error: 'soundEnable' was not declared in this scope</p><p> if(timeCalcVar &gt;= 745 &amp;&amp; timeCalcVar &lt;= 760 &amp;&amp; minutos-aTime/60000&lt;2 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:45: error: 'tonepin' was not declared in this scope</p><p> if(timeCalcVar &gt;= 745 &amp;&amp; timeCalcVar &lt;= 760 &amp;&amp; minutos-aTime/60000&lt;2 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:45: error: 'activeTone' was not declared in this scope</p><p> if(timeCalcVar &gt;= 745 &amp;&amp; timeCalcVar &lt;= 760 &amp;&amp; minutos-aTime/60000&lt;2 &amp;&amp; soundEnable)tone(tonepin,activeTone,largoTono);</p><p> ^</p><p>domination:55: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(3,0);</p><p> ^</p><p>domination:62: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(2,0);</p><p> ^</p><p>domination:82: error: 'defusing' was not declared in this scope</p><p> while((defusing || cancelando) &amp;&amp; team &gt; 0)</p><p> ^</p><p>domination:82: error: 'cancelando' was not declared in this scope</p><p> while((defusing || cancelando) &amp;&amp; team &gt; 0)</p><p> ^</p><p>domination:85: error: 'lcd' was not declared in this scope</p><p> if(team&gt;0)lcd.print(&quot;NEUTRALIZING...&quot;);</p><p> ^</p><p>domination:86: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(0,1);</p><p> ^</p><p>domination:94: error: 'endGame' was not declared in this scope</p><p> endGame = true;</p><p> ^</p><p>domination:102: error: 'soundEnable' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone1,200);</p><p> ^</p><p>domination:102: error: 'tonepin' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone1,200);</p><p> ^</p><p>domination:102: error: 'alarmTone1' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone1,200);</p><p> ^</p><p>domination:106: error: 'soundEnable' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone2,200);</p><p> ^</p><p>domination:106: error: 'tonepin' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone2,200);</p><p> ^</p><p>domination:106: error: 'alarmTone2' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone2,200);</p><p> ^</p><p>domination:107: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>domination:111: error: 'ACTIVATESECONDS' was not declared in this scope</p><p> percent = (seconds)/(ACTIVATESECONDS*10);</p><p> ^</p><p>domination:136: error: 'defusing' was not declared in this scope</p><p> while(defusing &amp;&amp; team == 0 )</p><p> ^</p><p>domination:139: error: 'lcd' was not declared in this scope</p><p> if(team==0)lcd.print(&quot; CAPTURING ZONE&quot;);</p><p> ^</p><p>domination:140: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(0,1);</p><p> ^</p><p>domination:149: error: 'endGame' was not declared in this scope</p><p> endGame = true;</p><p> ^</p><p>domination:155: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, HIGH); </p><p> ^</p><p>domination:156: error: 'soundEnable' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone1,200);</p><p> ^</p><p>domination:156: error: 'tonepin' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone1,200);</p><p> ^</p><p>domination:156: error: 'alarmTone1' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone1,200);</p><p> ^</p><p>domination:160: error: 'soundEnable' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone2,200);</p><p> ^</p><p>domination:160: error: 'tonepin' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone2,200);</p><p> ^</p><p>domination:160: error: 'alarmTone2' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone2,200);</p><p> ^</p><p>domination:161: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>domination:165: error: 'ACTIVATESECONDS' was not declared in this scope</p><p> percent = (seconds)/(ACTIVATESECONDS*10);</p><p> ^</p><p>domination:170: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>domination:178: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>domination:182: error: 'cancelando' was not declared in this scope</p><p> while(cancelando &amp;&amp; team == 0 )</p><p> ^</p><p>domination:185: error: 'lcd' was not declared in this scope</p><p> if(team==0)lcd.print(&quot; CAPTURING ZONE&quot;);</p><p> ^</p><p>domination:186: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(0,1);</p><p> ^</p><p>domination:195: error: 'endGame' was not declared in this scope</p><p> endGame = true;</p><p> ^</p><p>domination:201: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, HIGH); </p><p> ^</p><p>domination:202: error: 'soundEnable' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone1,200);</p><p> ^</p><p>domination:202: error: 'tonepin' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone1,200);</p><p> ^</p><p>domination:202: error: 'alarmTone1' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone1,200);</p><p> ^</p><p>domination:206: error: 'soundEnable' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone2,200);</p><p> ^</p><p>domination:206: error: 'tonepin' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone2,200);</p><p> ^</p><p>domination:206: error: 'alarmTone2' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,alarmTone2,200);</p><p> ^</p><p>domination:207: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>domination:211: error: 'ACTIVATESECONDS' was not declared in this scope</p><p> percent = (seconds)/(ACTIVATESECONDS*10);</p><p> ^</p><p>domination:216: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>domination:224: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW); </p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\domination.ino: In function 'void gameOver()':</p><p>domination:231: error: 'team' was not declared in this scope</p><p> if(team==1)greenTime+=millis()-iZoneTime;</p><p> ^</p><p>domination:231: error: 'greenTime' was not declared in this scope</p><p> if(team==1)greenTime+=millis()-iZoneTime;</p><p> ^</p><p>domination:231: error: 'iZoneTime' was not declared in this scope</p><p> if(team==1)greenTime+=millis()-iZoneTime;</p><p> ^</p><p>domination:232: error: 'team' was not declared in this scope</p><p> if(team==2)redTime+=millis()-iZoneTime;</p><p> ^</p><p>domination:232: error: 'redTime' was not declared in this scope</p><p> if(team==2)redTime+=millis()-iZoneTime;</p><p> ^</p><p>domination:232: error: 'iZoneTime' was not declared in this scope</p><p> if(team==2)redTime+=millis()-iZoneTime;</p><p> ^</p><p>domination:233: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>domination:234: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>domination:235: error: 'defusing' was not declared in this scope</p><p> while(!defusing){</p><p> ^</p><p>domination:236: error: 'keypad' was not declared in this scope</p><p> keypad.getKey();</p><p> ^</p><p>domination:241: error: 'lcd' was not declared in this scope</p><p> lcd.clear();</p><p> ^</p><p>domination:247: error: 'greenTime' was not declared in this scope</p><p> if(greenTime&gt;redTime){</p><p> ^</p><p>domination:247: error: 'redTime' was not declared in this scope</p><p> if(greenTime&gt;redTime){</p><p> ^</p><p>domination:266: error: 'redTime' was not declared in this scope</p><p> printTimeDom(redTime,false);</p><p> ^</p><p>domination:276: error: 'greenTime' was not declared in this scope</p><p> printTimeDom(greenTime,false);</p><p> ^</p><p>domination:286: error: 'lcd' was not declared in this scope</p><p> lcd.print(&quot;Play Again?&quot;);</p><p> ^</p><p>domination:291: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>domination:291: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>domination:293: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>domination:299: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\key.ino: In function 'boolean comparePassword()':</p><p>key:5: error: 'codeInput' was not declared in this scope</p><p> if(codeInput[i]!=password[i])return false;</p><p> ^</p><p>key:5: error: 'password' was not declared in this scope</p><p> if(codeInput[i]!=password[i])return false;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\key.ino: In function 'void setCode()':</p><p>key:13: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(0, 1);</p><p> ^</p><p>key:16: error: 'var' was not declared in this scope</p><p> var= getNumber();</p><p> ^</p><p>key:18: error: 'codeInput' was not declared in this scope</p><p> codeInput[i] = var;</p><p> ^</p><p>key:29: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\key.ino: In function 'void setCodeTime()':</p><p>key:37: error: 'timeCalcVar' was not declared in this scope</p><p> timeCalcVar=millis();</p><p> ^</p><p>key:41: error: 'ACTIVATESECONDS' was not declared in this scope</p><p> if(ACTIVATESECONDS*1000+timeCalcVar-millis()&lt;=100){</p><p> ^</p><p>key:42: error: 'codeInput' was not declared in this scope</p><p> codeInput[i]='x';</p><p> ^</p><p>key:46: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(11,0);</p><p> ^</p><p>key:47: error: 'ACTIVATESECONDS' was not declared in this scope</p><p> printTimeDom(ACTIVATESECONDS*1000+timeCalcVar-millis(),false);</p><p> ^</p><p>key:49: error: 'var' was not declared in this scope</p><p> var= getNumber();</p><p> ^</p><p>key:51: error: 'codeInput' was not declared in this scope</p><p> codeInput[i] = var;</p><p> ^</p><p>key:62: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\key.ino: In function 'void setPass()':</p><p>key:69: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(0, 1);</p><p> ^</p><p>key:73: error: 'var' was not declared in this scope</p><p> var= getNumber();</p><p> ^</p><p>key:75: error: 'password' was not declared in this scope</p><p> password[i] = var;</p><p> ^</p><p>key:85: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\key.ino: In function 'void setNewPass()':</p><p>key:95: error: 'lcd' was not declared in this scope</p><p> lcd.clear();</p><p> ^</p><p>key:118: error: 'soundEnable' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,errorTone,200);</p><p> ^</p><p>key:118: error: 'tonepin' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,errorTone,200);</p><p> ^</p><p>key:118: error: 'errorTone' was not declared in this scope</p><p> if(soundEnable)tone(tonepin,errorTone,200);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\key.ino: In function 'char getNumber()':</p><p>key:130: error: 'var' was not declared in this scope</p><p> var = keypad.getKey();</p><p> ^</p><p>key:130: error: 'keypad' was not declared in this scope</p><p> var = keypad.getKey();</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\key.ino: In function 'byte getRealNumber()':</p><p>key:164: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>key:164: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino: At global scope:</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:1:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* menu1[]={&quot;Search&amp;Destroy&quot;,&quot;Sabotage&quot;,&quot;Domination&quot;, &quot;Configuration&quot; };</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:1:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:1:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:1:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:2:79: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* menu2[]={&quot;Game Config&quot;,&quot;Sound Config&quot;, &quot;Relay Test&quot;, &quot;Auto Test&quot; }; </p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:2:79: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:2:79: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:2:79: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:3:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* GAME_TIME=&quot;Game Time:&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:4:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* BOMB_TIME=&quot;Bomb Time:&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:5:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* ZERO_MINUTES=&quot;00 minutes&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:6:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* ARM_TIME=&quot;Arm Time:&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:7:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* ZERO_SECS=&quot;00 seconds&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:8:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* ENABLE_SOUND=&quot;Enable Sound?&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:9:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* YES_OR_NOT=&quot;A : Yes B : No&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:10:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* ENABLE_RELAYPIN=&quot;Enable Relay?&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:11:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* ENABLE_CODE=&quot;Enable Code Arm?&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:12:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* GAME_TIME_TOP=&quot;GAME TIME&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:13:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* ARMING_BOMB = &quot;ARMING BOMB&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:14:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* ENTER_CODE = &quot;Enter Code&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:15:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* CODE_ERROR = &quot;Code Error!&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:16:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* BOMB_ARMED = &quot;BOMB ARMED&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:17:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* DETONATION_IN = &quot;DETONATION IN&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:18:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* DISARMING = &quot;DISARMING BOMB&quot; ;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:19:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* DISARM = &quot;DISARMING&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:20:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* GAME_OVER = &quot; GAME OVER! &quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:21:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* DEFENDERS_WIN = &quot; DEFENDERS WIN &quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\lang.ino:22:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p><p> char* SABOTAGE_FAIL= &quot;SABOTAGE FAIL!&quot;;</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\sabotage.ino: In function 'void sabotage()':</p><p>sabotage:2: error: 'endGame' was not declared in this scope</p><p> endGame = false;</p><p> ^</p><p>sabotage:3: error: 'refresh' was not declared in this scope</p><p> refresh = true;</p><p> ^</p><p>sabotage:5: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>sabotage:6: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>sabotage:8: error: 'GAMEMINUTES' was not declared in this scope</p><p> int minutos = GAMEMINUTES - 1;</p><p> ^</p><p>sabotage:11: error: 'start' was not declared in this scope</p><p> if (start) {</p><p> ^</p><p>sabotage:12: error: 'iTime' was not declared in this scope</p><p> iTime = millis(); // initialTime of the game, use this because sabotage mode goes can return to sabotage()</p><p> ^</p><p>sabotage:25: error: 'timeCalcVar' was not declared in this scope</p><p> timeCalcVar = (millis() - iTime) % 1000;</p><p> ^</p><p>sabotage:25: error: 'iTime' was not declared in this scope</p><p> timeCalcVar = (millis() - iTime) % 1000;</p><p> ^</p><p>sabotage:29: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(3, 0);</p><p> ^</p><p>sabotage:44: error: 'keypad' was not declared in this scope</p><p> if ('d' == keypad.getKey() &amp;&amp; passwordEnable) {</p><p> ^</p><p>sabotage:44: error: 'passwordEnable' was not declared in this scope</p><p> if ('d' == keypad.getKey() &amp;&amp; passwordEnable) {</p><p> ^</p><p>sabotage:63: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>sabotage:63: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>sabotage:63: error: 'errorTone' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>sabotage:69: error: 'defusing' was not declared in this scope</p><p> while (defusing &amp;&amp; !passwordEnable)</p><p> ^</p><p>sabotage:69: error: 'passwordEnable' was not declared in this scope</p><p> while (defusing &amp;&amp; !passwordEnable)</p><p> ^</p><p>sabotage:71: error: 'keypad' was not declared in this scope</p><p> keypad.getKey();</p><p> ^</p><p>sabotage:92: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>sabotage:92: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>sabotage:92: error: 'alarmTone1' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>sabotage:96: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>sabotage:96: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>sabotage:96: error: 'alarmTone2' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>sabotage:100: error: 'ACTIVATESECONDS' was not declared in this scope</p><p> percent = (seconds) / (ACTIVATESECONDS * 10);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\sabotage.ino: In function 'void destroySabotage()':</p><p>sabotage:116: error: 'endGame' was not declared in this scope</p><p> endGame = false;</p><p> ^</p><p>sabotage:117: error: 'lcd' was not declared in this scope</p><p> lcd.clear();</p><p> ^</p><p>sabotage:121: error: 'BOMBMINUTES' was not declared in this scope</p><p> int minutos = BOMBMINUTES - 1;</p><p> ^</p><p>sabotage:136: error: 'timeCalcVar' was not declared in this scope</p><p> timeCalcVar = (millis() - iTime) % 1000;</p><p> ^</p><p>sabotage:139: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, HIGH);</p><p> ^</p><p>sabotage:140: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:140: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:140: error: 'activeTone' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:143: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>sabotage:149: error: 'soundEnable' was not declared in this scope</p><p> if (timeCalcVar &gt;= 245 &amp;&amp; timeCalcVar &lt;= 255 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:149: error: 'tonepin' was not declared in this scope</p><p> if (timeCalcVar &gt;= 245 &amp;&amp; timeCalcVar &lt;= 255 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:149: error: 'activeTone' was not declared in this scope</p><p> if (timeCalcVar &gt;= 245 &amp;&amp; timeCalcVar &lt;= 255 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:150: error: 'soundEnable' was not declared in this scope</p><p> if (timeCalcVar &gt;= 495 &amp;&amp; timeCalcVar &lt;= 510 &amp;&amp; minutos - aTime / 60000 &lt; 4 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:150: error: 'tonepin' was not declared in this scope</p><p> if (timeCalcVar &gt;= 495 &amp;&amp; timeCalcVar &lt;= 510 &amp;&amp; minutos - aTime / 60000 &lt; 4 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:150: error: 'activeTone' was not declared in this scope</p><p> if (timeCalcVar &gt;= 495 &amp;&amp; timeCalcVar &lt;= 510 &amp;&amp; minutos - aTime / 60000 &lt; 4 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:151: error: 'soundEnable' was not declared in this scope</p><p> if (timeCalcVar &gt;= 745 &amp;&amp; timeCalcVar &lt;= 760 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:151: error: 'tonepin' was not declared in this scope</p><p> if (timeCalcVar &gt;= 745 &amp;&amp; timeCalcVar &lt;= 760 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:151: error: 'activeTone' was not declared in this scope</p><p> if (timeCalcVar &gt;= 745 &amp;&amp; timeCalcVar &lt;= 760 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>sabotage:174: error: 'keypad' was not declared in this scope</p><p> if ('d' == keypad.getKey() &amp;&amp; passwordEnable) {</p><p> ^</p><p>sabotage:174: error: 'passwordEnable' was not declared in this scope</p><p> if ('d' == keypad.getKey() &amp;&amp; passwordEnable) {</p><p> ^</p><p>sabotage:177: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>sabotage:178: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, HIGH);</p><p> ^</p><p>sabotage:196: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>sabotage:196: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>sabotage:196: error: 'errorTone' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>sabotage:201: error: 'defusing' was not declared in this scope</p><p> if (defusing &amp;&amp; !passwordEnable) // disarming bomb</p><p> ^</p><p>sabotage:201: error: 'passwordEnable' was not declared in this scope</p><p> if (defusing &amp;&amp; !passwordEnable) // disarming bomb</p><p> ^</p><p>sabotage:204: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>sabotage:212: error: 'keypad' was not declared in this scope</p><p> keypad.getKey();</p><p> ^</p><p>sabotage:222: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, HIGH);</p><p> ^</p><p>sabotage:223: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>sabotage:223: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>sabotage:223: error: 'alarmTone1' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>sabotage:227: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>sabotage:227: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>sabotage:227: error: 'alarmTone2' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>sabotage:228: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>sabotage:231: error: 'ACTIVATESECONDS' was not declared in this scope</p><p> percent = seconds / (ACTIVATESECONDS * 10);</p><p> ^</p><p>sabotage:244: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\searchdestroy.ino: In function 'void search()':</p><p>searchdestroy:2: error: 'refresh' was not declared in this scope</p><p> refresh = true;</p><p> ^</p><p>searchdestroy:4: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>searchdestroy:5: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>searchdestroy:7: error: 'GAMEMINUTES' was not declared in this scope</p><p> int minutos = GAMEMINUTES - 1;</p><p> ^</p><p>searchdestroy:16: error: 'endGame' was not declared in this scope</p><p> if (endGame) {</p><p> ^</p><p>searchdestroy:21: error: 'timeCalcVar' was not declared in this scope</p><p> timeCalcVar = (millis() - iTime) % 1000;</p><p> ^</p><p>searchdestroy:25: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(3, 0);</p><p> ^</p><p>searchdestroy:40: error: 'keypad' was not declared in this scope</p><p> if ('d' == keypad.getKey() &amp;&amp; passwordEnable) {</p><p> ^</p><p>searchdestroy:40: error: 'passwordEnable' was not declared in this scope</p><p> if ('d' == keypad.getKey() &amp;&amp; passwordEnable) {</p><p> ^</p><p>searchdestroy:57: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>searchdestroy:57: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>searchdestroy:57: error: 'errorTone' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>searchdestroy:62: error: 'defusing' was not declared in this scope</p><p> while (defusing &amp;&amp; !passwordEnable)</p><p> ^</p><p>searchdestroy:62: error: 'passwordEnable' was not declared in this scope</p><p> while (defusing &amp;&amp; !passwordEnable)</p><p> ^</p><p>searchdestroy:73: error: 'keypad' was not declared in this scope</p><p> keypad.getKey();</p><p> ^</p><p>searchdestroy:74: error: 'ACTIVATESECONDS' was not declared in this scope</p><p> percent = (millis() - xTime) / (ACTIVATESECONDS * 10);</p><p> ^</p><p>searchdestroy:81: error: 'endGame' was not declared in this scope</p><p> endGame = true;</p><p> ^</p><p>searchdestroy:88: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>searchdestroy:88: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>searchdestroy:88: error: 'alarmTone1' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>searchdestroy:92: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>searchdestroy:92: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>searchdestroy:92: error: 'alarmTone2' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\searchdestroy.ino: In function 'void destroy()':</p><p>searchdestroy:112: error: 'lcd' was not declared in this scope</p><p> lcd.clear();</p><p> ^</p><p>searchdestroy:116: error: 'BOMBMINUTES' was not declared in this scope</p><p> int minutos = BOMBMINUTES - 1;</p><p> ^</p><p>searchdestroy:125: error: 'endGame' was not declared in this scope</p><p> if (endGame) {</p><p> ^</p><p>searchdestroy:131: error: 'timeCalcVar' was not declared in this scope</p><p> timeCalcVar = (millis() - iTime) % 1000;</p><p> ^</p><p>searchdestroy:134: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, HIGH);</p><p> ^</p><p>searchdestroy:135: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:135: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:135: error: 'activeTone' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:138: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>searchdestroy:143: error: 'soundEnable' was not declared in this scope</p><p> if (timeCalcVar &gt;= 245 &amp;&amp; timeCalcVar &lt;= 255 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:143: error: 'tonepin' was not declared in this scope</p><p> if (timeCalcVar &gt;= 245 &amp;&amp; timeCalcVar &lt;= 255 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:143: error: 'activeTone' was not declared in this scope</p><p> if (timeCalcVar &gt;= 245 &amp;&amp; timeCalcVar &lt;= 255 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:144: error: 'soundEnable' was not declared in this scope</p><p> if (timeCalcVar &gt;= 495 &amp;&amp; timeCalcVar &lt;= 510 &amp;&amp; minutos - aTime / 60000 &lt; 4 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:144: error: 'tonepin' was not declared in this scope</p><p> if (timeCalcVar &gt;= 495 &amp;&amp; timeCalcVar &lt;= 510 &amp;&amp; minutos - aTime / 60000 &lt; 4 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:144: error: 'activeTone' was not declared in this scope</p><p> if (timeCalcVar &gt;= 495 &amp;&amp; timeCalcVar &lt;= 510 &amp;&amp; minutos - aTime / 60000 &lt; 4 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:145: error: 'soundEnable' was not declared in this scope</p><p> if (timeCalcVar &gt;= 745 &amp;&amp; timeCalcVar &lt;= 760 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:145: error: 'tonepin' was not declared in this scope</p><p> if (timeCalcVar &gt;= 745 &amp;&amp; timeCalcVar &lt;= 760 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:145: error: 'activeTone' was not declared in this scope</p><p> if (timeCalcVar &gt;= 745 &amp;&amp; timeCalcVar &lt;= 760 &amp;&amp; minutos - aTime / 60000 &lt; 2 &amp;&amp; soundEnable)tone(tonepin, activeTone, largoTono);</p><p> ^</p><p>searchdestroy:169: error: 'keypad' was not declared in this scope</p><p> if ('d' == keypad.getKey() &amp;&amp; passwordEnable) {</p><p> ^</p><p>searchdestroy:169: error: 'passwordEnable' was not declared in this scope</p><p> if ('d' == keypad.getKey() &amp;&amp; passwordEnable) {</p><p> ^</p><p>searchdestroy:190: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>searchdestroy:190: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>searchdestroy:190: error: 'errorTone' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, errorTone, 200);</p><p> ^</p><p>searchdestroy:195: error: 'defusing' was not declared in this scope</p><p> if (defusing &amp;&amp; !passwordEnable) // disarming bomb</p><p> ^</p><p>searchdestroy:195: error: 'passwordEnable' was not declared in this scope</p><p> if (defusing &amp;&amp; !passwordEnable) // disarming bomb</p><p> ^</p><p>searchdestroy:198: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW);</p><p> ^</p><p>searchdestroy:206: error: 'keypad' was not declared in this scope</p><p> keypad.getKey();</p><p> ^</p><p>searchdestroy:210: error: 'endGame' was not declared in this scope</p><p> endGame = true;</p><p> ^</p><p>searchdestroy:215: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, HIGH);</p><p> ^</p><p>searchdestroy:216: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>searchdestroy:216: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>searchdestroy:216: error: 'alarmTone1' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone1, 200);</p><p> ^</p><p>searchdestroy:220: error: 'soundEnable' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>searchdestroy:220: error: 'tonepin' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>searchdestroy:220: error: 'alarmTone2' was not declared in this scope</p><p> if (soundEnable)tone(tonepin, alarmTone2, 200);</p><p> ^</p><p>searchdestroy:221: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>searchdestroy:224: error: 'ACTIVATESECONDS' was not declared in this scope</p><p> percent = seconds / (ACTIVATESECONDS * 10);</p><p> ^</p><p>searchdestroy:231: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\splash.ino: In function 'void explodeSplash()':</p><p>splash:2: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW); </p><p> ^</p><p>splash:3: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW); </p><p> ^</p><p>splash:6: error: 'endGame' was not declared in this scope</p><p> endGame = false;</p><p> ^</p><p>splash:7: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(1,0);</p><p> ^</p><p>splash:13: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,i);</p><p> ^</p><p>splash:16: error: 'tonepin' was not declared in this scope</p><p> noTone(tonepin);</p><p> ^</p><p>splash:17: error: 'relayEnable' was not declared in this scope</p><p> if(relayEnable){</p><p> ^</p><p>splash:29: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>splash:29: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>splash:33: error: 'sdStatus' was not declared in this scope</p><p> if(sdStatus){</p><p> ^</p><p>splash:37: error: 'saStatus' was not declared in this scope</p><p> if(saStatus){</p><p> ^</p><p>splash:40: error: 'start' was not declared in this scope</p><p> start=true; //to set iTime to actual millis() :D</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\splash.ino: In function 'void failSplash()':</p><p>splash:53: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW); </p><p> ^</p><p>splash:54: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW); </p><p> ^</p><p>splash:57: error: 'endGame' was not declared in this scope</p><p> endGame = false;</p><p> ^</p><p>splash:58: error: 'lcd' was not declared in this scope</p><p> lcd.setCursor(1,0);</p><p> ^</p><p>splash:64: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,i);</p><p> ^</p><p>splash:67: error: 'tonepin' was not declared in this scope</p><p> noTone(tonepin);</p><p> ^</p><p>splash:68: error: 'relayEnable' was not declared in this scope</p><p> if(relayEnable){</p><p> ^</p><p>splash:80: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>splash:80: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>splash:84: error: 'sdStatus' was not declared in this scope</p><p> if(sdStatus){</p><p> ^</p><p>splash:88: error: 'saStatus' was not declared in this scope</p><p> if(saStatus){</p><p> ^</p><p>splash:91: error: 'start' was not declared in this scope</p><p> start=true; //to set iTime to actual millis() :D</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\splash.ino: In function 'void disarmedSplash()':</p><p>splash:104: error: 'endGame' was not declared in this scope</p><p> endGame = false;</p><p> ^</p><p>splash:105: error: 'REDLED' was not declared in this scope</p><p> digitalWrite(REDLED, LOW); </p><p> ^</p><p>splash:106: error: 'GREENLED' was not declared in this scope</p><p> digitalWrite(GREENLED, LOW);</p><p> ^</p><p>splash:107: error: 'sdStatus' was not declared in this scope</p><p> if(sdStatus || saStatus){</p><p> ^</p><p>splash:107: error: 'saStatus' was not declared in this scope</p><p> if(sdStatus || saStatus){</p><p> ^</p><p>splash:108: error: 'lcd' was not declared in this scope</p><p> lcd.clear();</p><p> ^</p><p>splash:118: error: 'lcd' was not declared in this scope</p><p> lcd.clear();</p><p> ^</p><p>splash:126: error: 'var' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>splash:126: error: 'keypad' was not declared in this scope</p><p> var = keypad.waitForKey();</p><p> ^</p><p>splash:128: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>splash:130: error: 'sdStatus' was not declared in this scope</p><p> if(sdStatus){</p><p> ^</p><p>splash:134: error: 'saStatus' was not declared in this scope</p><p> if(saStatus){</p><p> ^</p><p>splash:137: error: 'start' was not declared in this scope</p><p> start=true; //to set iTime to actual millis() :D</p><p> ^</p><p>splash:142: error: 'tonepin' was not declared in this scope</p><p> tone(tonepin,2400,30);</p><p> ^</p><p>C:\Users\glauc\Desktop\Arduino\Bomba teste\bomba_0_0\time_bomb.ino: In function 'void setup()':</p><p>time_bomb:108: error: 'keypadEvent' was not declared in this scope</p><p> keypad.addEventListener(keypadEvent);</p><p> ^</p><p>exit status 1<br>variable or field 'keypadEvent' declared void</p>
<p>Hello. I can not understand why it does not work on arduino pro mini? On arduino uno everything works well. On the LCD screen, it is found to serch&amp;destroy, but keyboard input is not possible. I've tried everything to fix it, but it does not work out. Please write to my email address nanofaradc@list.ru</p>
<p>Артем,используй обычную плату Ардуино. Все прекрасно работает( правда у меня 2 кнопки подключеные к клавиатуре не работают ).Все остальные режимы показывают отличные результаты.</p>
<p>Я то ведь хотел компактным сделать, заказал 3 ардуинки про мини, думал сделаю все норм будет, в итоге не фига не работает. Главное на ЖК дисплее все норм высвечивается, а управление с клавиатуры не работает((( https://www.youtube.com/watch?v=zk9jqAJWMQs&amp;t=1s</p>
<p>Hi guys</p><p>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.</p><p>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. </p><p>There are no digits or symbols on the lcd. I can adjust backlight brightness, but still no symbols. </p><p>Hope some can help me. Maybe go over it with me over Teamviewer? </p><p>My email is: lofte87@gmail.com</p><p>Have a nice day and a nice easter</p><p>Best regards </p><p>Morten from Norway</p>
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&amp;Destroy :/ <br>Reason is that I can but a siren on when the game ends. <br>Pleeeeease help anyone<br>
Can one at the fake bomb on the function that you can defuse them with different wires?<br>And could one make the whole also programmable, which the wire defuses the bomb or for example the timer run faster?
<p>Help with the problem</p><p>Time_BOMB_Airsoft_GAME:197: error: 'menuPrincipal' was not declared in this scope</p><p>exit status 1</p><p>'menuPrincipal' was not declared in this scope</p>
<p>https://www.youtube.com/watch?v=I8_UMfjKdw0</p>
<p>Hi, I know this is an old post but have am having a problem uploading the code keep getting the message </p><p>&quot; 'menuprincipal' was not declaired in this scope &quot; </p><p>Hope you can help as really look forward to making this. </p><p>Thank you </p>
<p>hi, i have the same problem.</p><p>you know how we can do it without &quot;menu principal&quot;?</p>
<p>haveing problem this is what i get when trying to upload</p><p> Arduino: 1.6.12 (Windows 10), Board: &quot;Arduino/Genuino Uno&quot;</p><p>C:\Users\Airso\AppData\Local\Temp\Temp1_FYW1PMWILGVF3ZU (5).zip\Time_BOMB_Airsoft_GAME\Time_BOMB_Airsoft_GAME.ino:2:20: fatal error: Keypad.h: No such file or directory</p><p> #include &lt;Keypad.h&gt;</p><p> ^</p><p>compilation terminated.</p><p>exit status 1</p>
<p>The Keypad.h file can be found in the original creator's Github: </p><p><a href="https://github.com/yinbot/Airsoft-BombPro/tree/master/libraries/Keypad" rel="nofollow">https://github.com/yinbot/Airsoft-BombPro/tree/mas...</a></p><p>Hope that helps!</p>
Hi, liked your project, I decided to put together a sketch beg perfectly display all shows, but DOES NOT OPERATE Keypad 4x4 connects all as in the picture, using arduino pro mini, then decided to try to arfuino nano, nothing has changed, kdaviatura not work at all, I tried different keypad.h library does not help anything, just tried a second keyboard (I have two) zero result, also tried to connect the resistance 10kom please help, what could be wrong?
Hi, liked your project, I decided to put together a sketch beg perfectly display all shows, but DOES NOT OPERATE Keypad 4x4 connects all as in the picture, using arduino pro mini, then decided to try to arfuino nano, nothing has changed, kdaviatura not work at all, I tried different keypad.h library does not help anything, just tried a second keyboard (I have two) zero result, also tried to connect the resistance 10kom please help, what could be wrong?
<p>I have made it and it works perfect. but i want to ad a game where both teams had to arm the bomb with a password but have some one did this already??</p>
<p>Hey... Is this 1 channel relay compatible with this project?</p><p>http://www.ebay.com/itm/5V-One-1-Channel-Relay-Module-Board-Shield-PIC-AVR-DSP-ARM-MCU-Arduino-/310566336050?hash=item484f323632</p>
<p>Покажите пожалуйста фотографии. Не могу понять как собирать</p>
<p>Done what the tutorial said, and used other buttons (the arcade type) <br>but when I use them the arduino goes all wrong and the screen switches <br>off and no longer continues with the games sequence, what could be up <br>with it</p>
<p>The diagram has the switch common to an analog input for some reason. That is definitely not right. Connect the switch common to positive.</p><p>I think the problem you are having is when you make the switch you are somehow shorting the power, which suggests you have somethign wrong even with the incorrect diagram!</p>
<p>Thanks, but not sure what you mean??? I did have some issue getting the switches to work to start with.</p><p>Could you explain in a bit more detail what you mean by connect it to the positive??</p>
<p><a href="https://www.arduino.cc/en/Tutorial/Button" rel="nofollow">https://www.arduino.cc/en/Tutorial/Button</a></p><p>that link shows a more common way to use switches. You can see that the switch is connected to 5V and 0V (via the resistor). The circuit as drawn will put whatever is on the AI ontot he input, which is weird. Maybe the code is written to use the AI as a 5V source, but it is a weird way to do it.</p>
<p>Добрый день. Смотрю на схему и видео и не могу понять как подключать все правильно. Если есть возможность, то скиньте пожалуйста подробную схему подключение. </p>
<p>I implemented the disarmament of the bomb through wires. I'd like to know how i can to halve the time when a wires is cut.</p><p>In another wire i'd like to triple the speed of the countdown.</p><p>if (digitalRead(wirePin) != HIGH) {</p><p>?????</p><p>}<br></p><p>if (digitalRead(wirePin2) != HIGH) {</p><p>?????</p><p>}</p>
<p>Hi! Maybe someone can help me. I have this old device that i would like to use as an enclosure for my bomb. Is it possible to use the buttons on the arduino? How?<br><br>Thank You</p>
<p>Yes is possible i think, You need to find a datasheet for this keypad.</p>
<p>Please ignore the speaker issue, just got another speaker and it work, my bad, somehow the original speaker died on me...</p>
​sir can you help me?<br><br>the airsoft bomb is not working properly' it only shows &quot;&quot;bluecore tech airsoft bomb&quot;&quot; in the LCD...<br><br>thanks'
<p>hi please HELP me the program says &quot; 'menuprincipal' was not declaired in this scope &quot; <br><br>????</p>
hello, what battery powers the project? Thank you for answer<br> I am sorry for my english too
Mine works with a 9v battery. But with a little electrical knowledge you can add any battery.
<p>Hello friends!<br>I'm build- a scheme like this. I would like to insert the code menu, the option to disarm cutting the wire. I inciante programming, if someone could help me. Thank you.</p><p>I'm sorry for my English, I'm brazilian!</p>
<p>пожалуйста помогите</p>
<p>hi, the program does not workor ratherkeyboard does not work, recheckedeverything several times</p>

About This Instructable

7,045views

25favorites

License:

Bio: 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 ... More »
More by vandenbrande:Arduino - LCD 20x4 Water LEVEL MONITOR HC SR04 Arduino - NRF24L01 2.4Ghz Wireless Relay Switch RGB led STRIP control Arduino Android BLUETOOTH - SMD5050  
Add instructable to: