• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Arduino Based Motion Dog Barking Alarm Circuit

Arduino Based Motion Dog Barking Alarm Circuit

Last updated on 13 September 2025 by Admin-Lavi Leave a Comment

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:

  • Pir sensor output connect to pin D2 of Arduino.
  • when there is no motion then Pir is low.
  • when motion detect then Pir is high.
  • Arduino read this signal.
  • if signal is high then Arduino send high to D3 pin.
  • D3 go to base of BC547 transistor through 10k resistor.
  • BC547 switch ON and connect play pin of dog sound module to GND.
  • Through this it starts with dog sound playback.
  • delay(5000) keep sound playing for 5 sec.
  • after 5 sec the Arduino send low to D3, transistor goes OFF and sound stops.
  • If Pir does not detect motion then D3 stays low and sound stay OFF.

Circuit Working:

Arduino Based Motion Dog Barking Alarm Circuit Diagram

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:

  • V is 5V
  • Rload is 8 ohm

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:

  • Gather all the parts as shown in circuit diagram
  • Pir sensor Vcc to Arduino 5V
  • Pir sensor GND pin connect to Arduino GND
  • Pir sensor out pin connect to Arduino D2
  • Dog sound module Vcc pin connect to 5V
  • Dog sound module GND pin connect to Arduino GND
  • Dog sound module play pin connect to BC547 collector pin of Q1 transistor
  • BC547 base pin connect to Arduino D3 through 10k resistor
  • BC547 emitter pin to GND
  • LM386 module input pin connect from dog audio out pin.
  • LM386 module GND pin connect to GND
  • LM386 module Vcc pin connect to 5V
  • Connect one end of 8 ohm speaker with the output connector of the LM386 amplifier module

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?

Filed Under: Alarm Circuits, Arduino Projects, Sensors and Detectors

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Arduino Based Entry Exit Monitoring Circuit

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar




Categories

  • Alarm Circuits (34)
  • Amplifier Circuits (67)
  • Arduino Projects (41)
  • Audio Circuits (95)
  • Automobile Circuits (19)
  • Battery Charger Circuits (48)
  • Free Energy (13)
  • Heater and Temperature Controllers (10)
  • High Voltage (1)
  • Indicator Circuits (39)
  • Inverter Circuits (13)
  • LDR Circuits (15)
  • LED and Lamps (116)
  • Meters and Testers (28)
  • Motor Controllers (18)
  • Oscillator Circuits (34)
  • Power Supply Circuits (92)
  • Remote Control Circuits (6)
  • Security and Protection (25)
  • Sensors and Detectors (88)
  • Solar Circuits (17)
  • Timer Circuits (30)
  • Transistor Circuits (57)
  • Transmitter Circuit (12)
  • Tutorials (5)
  • Water Level Controller (4)

Recent Posts

  • Arduino Based Motion Dog Barking Alarm Circuit
  • Arduino Based Entry Exit Monitoring Circuit
  • Water Quality Test Circuit using Arduino and Turbidity Sensor
  • Arduino with Non Contact Liquid Sensor Circuit
  • Arduino Piano Music Keyboard with Memory Circuit

Recent Comments

  1. Admin-Lavi on Constant Voltage, Constant Current Battery Charger Circuit
  2. Bill on Constant Voltage, Constant Current Battery Charger Circuit
  3. Admin-Lavi on Long Range FM Transmitter Circuit (2km)
  4. Sina on Long Range FM Transmitter Circuit (2km)
  5. Admin-Lavi on Long Range FM Transmitter Circuit (2km)

Copyright © 2025 | New Circuit Ideas