Hey guys, welcome back, In the previous post, I told you how an IR sensor works, how to make a line follower using an IR sensor and to make a Simple DIY Burglar Alarm using an IR sensor and a Buzzer without using any micro controller or complicated coding.

PIR Burglar Alarm

In this Post, I will show you how to make a Simple PIR Burglar Alarm using Digispark.

PIR Burglar Alarm using Digispark Components Needed

To set this up, All you need is

  • PIR sensor
  • Digispark
  • Buzzer
  • Header Pins
  • 9-12 Volt Power Adapter

DIY Burglar Alarm Tutorial


Digispark is a new light weight micro-controller development board. Digispark comes with 6 GPIO pins, I2C and SPI serial communication and a USB interface.

Arduino Burglar Alarm

It also has 3 PWM pins which can be used to control l293d motor drivers or servo motors. we can use arduino IDE to program digispark but the way we upload the program is a little bit different than usual arduino.

Learn more about Digispark and how to set it up with Arduino IDE from here.

What is a PIR Sensor?

A PIR sensor is a tiny circuit that can detect human being moving around infront of it with in a range of range is between 4 Meter and 13 Meter.

PIR Sensor for Burglar Alarm
PIR Sensor

PIR sensors are small, compact, and need minimal effort to set up with any project. They also have a wide lens range, and are very easy to interface with.

PIR Sensor Pinout

There are mainly 3 pins to PIR Sensor –

  • VCC – Where we connect 5 V Power Supply
  • Out – Output Voltage (5V when it detects human IR Signature)
  • GND – Where we connect -ve Terminal

Online PCB Manufacturer – JLCPCB

JLCPCB is one of the best Online PCB manufacturing company from where you can order PCBs online without any hassle. The company works 24 hours a day, 7 days a week nonstop. With their high tech machinery and automated work stream, they can manufacture huge quantities of high-class PCBs within hours.

Online PCB Manufacturing Process Step By Step
Automated PCB Manufacturing Process

JLCPCB can develop PCBs of various complexity. They develop Simple and cheap PCBs with Single layer board for hobbyists and enthusiasts as well as complex multi layer board for high standard industrial applications. JLC works with large product manufacturers and may be the PCB of devices you are using such as laptop or mobile phones were made at this factory.

DIY Burglar Alarm

So Now you know how an IR sensor works. We will start building our Burglar alarm.

This project is very simple. You wont need more than 1 minute to set this up. This is how we set up the entire circuit.

Connections – Burglar Alarm Circuit

The Circuit

This is a simple circuit comprising of a PIR Sensor. The input power is connected to a 7805 regulator. 7805 is a 5V regulator which will convert an input voltage of 7- 32V to a steady 5V DC supply. So, you can connect an input voltage of anywhere between 7V to 32 to this circuit. For my bot, I prefer a 11.1V Lipo Battery. There are indicator LEDs across various points for easy troubleshooting.  

To get Started, First Go to EasyEDA website and create a free account. Go to “Editor” and create a new project. For now, JLCPCB have 689 Basic components and 30k+ Extended components at your disposal. See the complete list of components here.

Make sure you add the components from this list while drawing the schematics in EasyEDA. You can even search for the components and check its availability. Now you can get your layout done using inbuilt tools in EasyEDA.

You can now download the Gerber file and use it to manufacture your PCB from JLCPCB. Gerber File contains information about your PCB such as PCB layout information, Layer information, spacing information, tracks to name a few. BOM File or Bill Of Material contains the list of all components in the Layout. CPL file(Component Placement List / Pick & Place File (PNP) file), it is used by automated SMT Assembly machines to determine where each part should be located on the board....

Read more »