Site icon Circuit Ideas for You

Bluetooth Controlled Police Siren Sound Circuit with Arduino

Nowadays, Arduino projects are very popular and they controls everything.

They are easy to build and they are useful for learning electronics.

This project is about Bluetooth Controlled Police Siren Sound Circuit with Arduino.

Arduino UNO is the main controller and Bluetooth module is used for wireless control.

With Bluetooth we can control lights and siren from mobile.

So, this project is useful for beginners and it is also good for demonstration and learning purpose.

Arduino Coding:

char data;

int red1 = 8;
int red2 = 9;
int blue1 = 10;
int blue2 = 11;
int speaker = 6;

void setup()
{
  pinMode(red1, OUTPUT);
  pinMode(red2, OUTPUT);
  pinMode(blue1, OUTPUT);
  pinMode(blue2, OUTPUT);
  pinMode(speaker, OUTPUT);

  Serial.begin(9600);
}

void loop()
{
  if (Serial.available())
  {
    data = Serial.read();
  }

  if (data == '1')
  {
    policeEffect();
  }
  else if (data == '0')
  {
    stopAll();
  }
}

void policeEffect()
{
  digitalWrite(red1, HIGH);
  digitalWrite(red2, HIGH);
  digitalWrite(blue1, LOW);
  digitalWrite(blue2, LOW);
  tone(speaker, 800);
  delay(200);

  digitalWrite(red1, LOW);
  digitalWrite(red2, LOW);
  digitalWrite(blue1, HIGH);
  digitalWrite(blue2, HIGH);
  tone(speaker, 1200);
  delay(200);
}

void stopAll()
{
  digitalWrite(red1, LOW);
  digitalWrite(red2, LOW);
  digitalWrite(blue1, LOW);
  digitalWrite(blue2, LOW);
  noTone(speaker);
}

Code Explanation:

Circuit Working:

Bluetooth Controlled Police Siren Sound Circuit Diagram with Arduino

Parts List:

ComponentsQuantity
Resistor 220Ω 1/4 watt4
Arduino UNO1
Speaker 0.25 watt 8Ω1
LED 5mm 20mA red color2
LED 5mm 20mA blue color2
Bluetooth Module HC-05 Serial1
Android Device1

First at start power is given to Arduino and then Bluetooth module turns ON.

After that mobile phone sends command and Bluetooth receives the signal and then it sends data to Arduino.

Arduino reads the data and if command is ON then LEDs start blinking.

Red and blue LEDs blink alternately and at the same time Arduino generates tone and speaker produces siren sound.

If OFF command is sent then everything stops and thus, police siren and lights are controlled wirelessly.

Formula with Calculation:

Formula for LED Resistor Calculation:

Supply Voltage = 5V
LED Forward Voltage = 2V
LED Current = 20mA (0.02A)

Resistor Value = (Supply Voltage – LED Voltage) / LED Current

Resistor Value = (5 – 2) / 0.02
Resistor Value = 3 / 0.02
Resistor Value = 150 ohm

Standard value resistor is used is 220 ohm which is safe for LED.

How to Build:

To build a Bluetooth Controlled Police Siren Sound Circuit with Arduino follow the below steps:

Note:

Download the Android application from play store:

Connection:

Conclusion:

To conclude, this project for Bluetooth Controlled Police Siren Sound Circuit with Arduino is simple and useful.

It explains Arduino, Bluetooth and LED control.

Moreover, it helps beginners understand wireless communication.

Also it shows how sound and light can work together.

Therefore, Police Siren and Lights using Arduino is a good learning project.

References:

Police Siren Alarm  

Exit mobile version