Site icon Circuit Ideas for You

Bluetooth Controlled Police Siren Sound Circuit with Arduino

Nowadays, Arduino projects are very popular and they controls everything, as they are easy to build and they are useful for learning electronics.

This project demonstrates a Bluetooth-Controlled Police Siren Sound Circuit with Arduino, then the Arduino UNO acts as the main controller, while the Bluetooth module provides wireless control.

Furthermore, 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 Code:

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);
}

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, we power the Arduino, and the Bluetooth module turns ON, then, the mobile phone sends a command, the Bluetooth module receives the signal, and finally it sends the data to the Arduino.

Arduino reads the data and if command is ON then LEDs start blinking, then red and blue LEDs blink alternately and at the same time Arduino generates tone and speaker produces siren sound.

If we send the OFF command, everything stops and thus, the circuit controls the police siren and lights 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

So, we use a standard 220-ohm resistor because it provides a safe current for the 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, as it explains Arduino, Bluetooth and LED control.

Moreover, it helps beginners understand wireless communication and also it shows how sound and light can work together; therefore, Police Siren and Lights using Arduino is a good learning project.

Exit mobile version