WATCHBOT INTRUDER DETECTION Using Pi Camera And VIDEO STORAGE With Telegram Bot
Electronics For You|December 2023
Vigilance of remote locations on your mobile is an assurance for many individuals across the globe.
DR GEETALI SAHA, PARTH SHAH
WATCHBOT INTRUDER DETECTION Using Pi Camera And VIDEO STORAGE With Telegram Bot

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.

Denne historien er fra December 2023-utgaven av Electronics For You.

Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.

Denne historien er fra December 2023-utgaven av Electronics For You.

Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.

FLERE HISTORIER FRA ELECTRONICS FOR YOUSe alt
ESP32-Powered AUDIO-VISUAL SIREN
Electronics For You

ESP32-Powered AUDIO-VISUAL SIREN

This sound alternator is designed to simulate the effects of a police siren, combining sound and light to create a dynamic audio-visual experience.

time-read
2 mins  |
January 2025
BLDC MOTOR With Web-Based Speed Control Using ESP32
Electronics For You

BLDC MOTOR With Web-Based Speed Control Using ESP32

Integrating wireless control into brushless direct current (BLDC) motor systems opens up exciting possibilities for applications such as remote-controlled cars, robots, and other innovative systems.

time-read
5 mins  |
January 2025
Pi Zero Portable BILINGUAL TRANSLATOR
Electronics For You

Pi Zero Portable BILINGUAL TRANSLATOR

This system is designed as a bilingual translator, leveraging the gTTS library to support multiple Indian languages, including English (en), Bengali (bn), Gujarati (gu), Hindi (hi), Kannada (kn), Malayalam (ml), Marathi (mr), Tamil (ta), Telugu (te), and Urdu (ur).

time-read
5 mins  |
January 2025
Op-Amp-Based VEHICLE THEFT DETECTOR
Electronics For You

Op-Amp-Based VEHICLE THEFT DETECTOR

A simple, low-cost device can effectively alert homeowners or occupants if a parked vehicle is moved or tampered with.

time-read
3 mins  |
January 2025
loT SMART METER With Dashboard
Electronics For You

loT SMART METER With Dashboard

Energy meters in homes track electricity usage, enabling accurate billing by governments and providers.

time-read
2 mins  |
January 2025
Choose The Right Cloud Platform For Implementing loT PROTOCOLS
Electronics For You

Choose The Right Cloud Platform For Implementing loT PROTOCOLS

Working with loT protocols like MQTT, AMQP, and CoAP on cloud platforms is essential for developing scalable and efficient lol applications. The choice of the programming platform will depend on factors like project requirements, existing skills, and target devices. Leveraging the appropriate libraries and cloud services can enable seamless integration of lol devices with cloud-based applications.

time-read
7 mins  |
January 2025
Why TMR SENSORS Lead Next-Generation Design
Electronics For You

Why TMR SENSORS Lead Next-Generation Design

TMR sensors are gaining traction in industries needing precision and power efficiency. What makes them the go-to choice for modern designs?

time-read
7 mins  |
January 2025
DESIGNING PCBs For EMI Management
Electronics For You

DESIGNING PCBs For EMI Management

Electromagnetic interference can derail your PCB’s performance. EMI management is not just a technical necessity but a hallmark of exceptional PCB design.

time-read
4 mins  |
January 2025
CUTTING COSTS, NOT CORNERS: Building Large Scale Applications With Open Source Software
Electronics For You

CUTTING COSTS, NOT CORNERS: Building Large Scale Applications With Open Source Software

Here are some strategies and best practices for leveraging open source to create enterprise-grade web and mobile applications without sacrificing quality or functionality.

time-read
6 mins  |
January 2025
"We Are One Of India's Very Few State Bodies To Manage The Entire Lifecycle Of The Electronics EcosystemFrom Approvals To Subsidies."
Electronics For You

"We Are One Of India's Very Few State Bodies To Manage The Entire Lifecycle Of The Electronics EcosystemFrom Approvals To Subsidies."

What is Gujarat State Electronics Mission GSEM), and how is it attracting major investments in electronics manufacturing, particularly semiconductor manufacturing, to Gujarat? To delve deeper, Electronics For You’s Nijhum Rudra spoke with Manish Gurwani, the head of GSEM. Here is what he revealed...

time-read
3 mins  |
January 2025