Arduino Panic Alarm app BLUETOOTH android

Arduino Panic Alarm app

Hello world! Today and yesterday i made a Arduino Panic Alarm app, I wanted to make a voice app to turn on and off a alarm with arduino, but the result became this panic alarm app, hopefully useful to save some people.
You can setup 5 numbers of family, friends or other important numbers, this app is very handy for disabled people in trouble who live alone, sick people, people with serious panic attacks, or girls that are in danger etc. etc. check the video to see how it works, You don’t have to setup the numbers everytime of course because it saves to the apps database, Its very easy to build!

HC-06 android panic alarm, Arduino Panic Alarm app BLUETOOTH android

I am also trying to make it work so you can set and change the voice commands. Now the commands are set in the APPS code. If you want the open source code for the app just ask!

Below are the Arduino Panic Alarm app commands.
alarm on
alarm off (Only works for testing without alarm attached to relay, of course this does not work when the alarm is triggered and making noise.

Schematic:
Voice panic alarm arduino

Just wire it up like the schematic. Make sure you set TXD to RX and RXD to TX.
Also make sure not to have the bluetooth connected when uploading the code!

Parts list:
Arduino uno, Any copy will do. I used the RobotDyn Uno.
HC-06 Bluetooth module.
KY-019 Relay.
Jumper wires set MM/FF/MF
12 volt alarm + adapter.
Couple of sim cards and phones or just friends to test it. (Just Optional)

NOTE: You don’t need the Device. The APPs SMS & Call functions work without it to.

Code:

/*
Arduino Panic Alarm
Author: Danny van den Brande. Arduinosensors.nl. BlueCore Tech.
This code is written for my home voice control app.
The app simply reads the bytes @ case, 1,2,3,etc.
You can control 8 relays trough your phone with this.
You can add any device you want to the relays.
 */
int relay1 = 2;
   
  byte serialA;
void setup()
{
  
  Serial.begin(9600); //Check step 2 of my instructable on how to change your HC-06 modules name and baudrate.
  //my HC-06 has a baudrate set of 9600. Your can be different. But you can change it.
  pinMode(relay1, OUTPUT);

}

void loop() {

if (Serial.available() > 0) {serialA = Serial.read();Serial.println(serialA);}
/*
below are the commands in dutch and english. i originaly made it dutch because my phone is dutch just like me :)
 Dutch: Commands for Dutch Android app.
///////////////////////////////////////////////////////
 English: Commands for English Android app.
*/   
      switch (serialA) {
    case 1:
      digitalWrite(relay1, HIGH);//alarm
      break;
    case 2:
      digitalWrite(relay1, LOW);//alarm off
      break;    
    case 3:
      delay(100);//everything on
      digitalWrite(relay1, HIGH);
      delay(100);
    break;
    case 4://everything off
      digitalWrite(relay1, LOW);
     default:

      break;
  }

}
Danny van den Brande

http://www.arduinosensors.nl

Programmer, Game Designer, 3D Designer, Web Designer, Graphic Designer. Jup this website looks crappy.. :) But enjoy the projects! Everything you need is here.

Leave a Reply

Your email address will not be published. Required fields are marked *