Site icon Circuit Ideas for You

Arduino Based Motion Dog Barking Alarm Circuit

This Arduino Based Motion Dog Barking Alarm Circuit make dog sound when motion detects.

it uses Arduino Nano, Pir sensor, Dog Sound Module, BC547 transistor, IC LM386 Amplifier Module and 8Ω Speaker.

Pir senses human or animal move.

Arduino play dog bark sound to scare intruder.

This is simple and low cost security system.

Circuit Coding:

int pirPin = 2;    // PIR sensor connected to D2
int trigPin = 3;   // BC547 base connected from D3

void setup() {
  pinMode(pirPin, INPUT);
  pinMode(trigPin, OUTPUT);
  digitalWrite(trigPin, LOW);
}

void loop() {
  int motion = digitalRead(pirPin);
  
  if (motion == HIGH) {
    digitalWrite(trigPin, HIGH);   // trigger transistor ON
    delay(5000);                   // play sound for 5 sec
    digitalWrite(trigPin, LOW);    // stop sound
  } 
  else {
    digitalWrite(trigPin, LOW);    // keep off when no motion
  }
}

Code Explanation:

Circuit Working:

Parts List:

ComponentValueQuantity
Resistors10k 1/4 watt1
SemiconductorsArduino Nano1
PIR Motion Sensor1
Dog Barking Sound Module1
IC LM386 Amplifier Module1
Speaker 8Ω from 0.25W to 2W1

Pir sensor watches the area.

when someone moves then Pir sensor output goes high.

Arduino read this from D2.

Arduino send high signal from D3 to Q1 BC547 transistor base.

BC547 switches ON and connects dog sound module to play pin to ground.

Dog sound module play dog bark sound.

Sound goes to LM386 amplifier module.

LM386 amplify sound and sends to speaker.

Speaker make loud bark noise.

After some time sound stops and circuit waits again.

Arduino is powered from USB or 5V pin.

Formulas and Calculations:

Following are the basic formula for Motion Dog Barking Alarm Circuit:

output power approx = (V^2) / (2 * Rload)

for 5V and 8ohm speaker power = (25)/(16) = 1.56W max theoretical

delay time in code = delay(ms) value

example:

P = (5^2)/(2*8) = 25/16 = 1.56 watt approx

How to Build:

To build a Arduino Based Motion Dog Barking Alarm Circuit follow the below steps for connections:

Conclusion:

This project for Arduino Based Motion Dog Barking Alarm Circuit help to scare thief using fake dog bark.

It is a simple low cost alarm.

The circuit can be placed at door or garden.

It is an easy to build circuit for beginner.

References:

What sensor is used to detect a dog barking? Is it purchasable, and can it be integrated with Arduino?

Exit mobile version