In our last article, we shared information about intrusion detection using a PIR sensor and how to store captured images on Firebase, an open source Google Cloud tool. This time, we have included video storage using the Telegram app. Our proposed setup is illustrated in Fig. 1.
Here, a PIR sensor connected to a Raspberry Pi checks for intruders in a room using a motion sensor. If it detects human movement, it captures frames from the camera and sends them to your Telegram bot. Fig. 1 depicts the author's prototype of the observation zone where slight hand movements activate the Pi camera, recording a 5-second video. The bill of materials for this bot is listed in Table 1.
EFY note. Additionally, you will need a 16GB SD card and a 5V 2A DC power source if you already have a Raspberry Pi.
Connection
Fig. 2 shows the circuit diagram of intruder detection using a Pi camera and video storage with the Telegram bot. It is built around Raspberry Pi 4B+ (MOD1), a PIR motion sensor (S1), Pi Camera, and a few jumper wires.
Installation and setup
We have used Python for programming. Before coding, you need to configure Raspbian OS on the Raspberry Pi and install the necessary Pi camera library files.
To use a Raspberry Pi camera (connected via a ribbon cable), first enable the camera interface in the Raspberry Pi configuration settings.
You can do this through the terminal using the following commands:
$ sudo apt-get install python-picamera
$ sudo apt-get installpython3-picamera
You can also enable the camera interface using the Raspberry Pi configuration menu: Main Menu →Select Preferences Raspberry Pi Configuration. Then, go to the Interfaces tab and enable the camera. Fig. 3 illustrates the Raspberry Pi configuration menu, and Fig. 4 shows the camera enabling configuration.
This story is from the {{IssueName}} edition of {{MagazineName}}.
Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.
Already a subscriber ? Sign In
This story is from the {{IssueName}} edition of {{MagazineName}}.
Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.
Already a subscriber? Sign In
Wearable Automatic ASSISTANCE GLOVE
This proposed prototype works by wearing the glove and either touching a specific finger with the thumb or pressing a special switch.
BLUETOOTH CONTROL Through Mobile
Creating a Bluetooth-controlled device with an Arduino Uno and an HC-05 Bluetooth module enables control of lights or even relays to manage AC appliances wirelessly using an Android smartphone.
Raspberry-Pi Based WAVEFORM GENERATOR
A waveform generator is a commonly used test and measurement instrument in electronics laboratories.
World's Smallest Programable INDUSPHONE DESIGN
Smartphones have become a necessity in daily life.
AUTOMATIC WIPER CONTROL For Three/Four Wheelers
The integration of a 555 timer and L293D motor driver in an automatic wiper control device presents a practical and efficient solution for enhancing driver safety and convenience.
EMS Vs Components Manufacturing: EMPLOYMENT IN ELECTRONICS INDUSTRY OF INDIA
A recent article in a leading business newspaper reported that industry executives, during a government meeting, had suggested that EMS firms create more employment than electronics component manufacturers-for every rupee invested. To verify this claim, a review was conducted with both component manufacturers and EMS firms, as well as several trade associations.
Why Did Rajguru Electronics, A Leading Distributor Of Components And Development Boards, Enter Manufacturing?
After nearly three decades in distribution, Rajguru Electronics pivoted to manufacturing, setting up a unit for its ADIY subsidiary in Bengaluru. EFY's Yashasvini Razdan interviewed CEO Dileep Jain to explore the reasons behind the shift and the company's growth strategy.
"We Are Building FUTURE ENTREPRENEURS With Drone Assembly And Maintenance Training"
AVPL is creating village-level entrepreneurs and jobs through drone technology and agriculture training. In an interview with EFY's Nitisha, Co-founder and Chairman Preet Sandhu discloses how their 70 centres across 12 states offer offline courses in RPC and agricultural spraying.
"Becoming CLEAR"
From a nonchalant teenager to authoring a book on Verilog at 25 and launching successful IPOs for startups on the US stock market, Rajeev Madhavan exemplifies how the right guidance can transform a life. This is the story of one of Silicon Valley's most influential venture capitalists, as narrated to Yashasvini Razdan.
THINKRAW INDIA'S SOLAR SOLUTIONS FOR THE AGRICULTURAL SECTOR
ThinkRaw's blend of technology and tradition is revolutionising agriculture with solar-powered solutions that enhance efficiency and sustainability in farming and aquaculture.