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.

Esta historia es de la edición December 2023 de Electronics For You.

Comience su prueba gratuita de Magzter GOLD de 7 días para acceder a miles de historias premium seleccionadas y a más de 9,000 revistas y periódicos.

Esta historia es de la edición December 2023 de Electronics For You.

Comience su prueba gratuita de Magzter GOLD de 7 días para acceder a miles de historias premium seleccionadas y a más de 9,000 revistas y periódicos.

MÁS HISTORIAS DE ELECTRONICS FOR YOUVer todo
STK435 IC-Based STEREO AMPLIFIER
Electronics For You

STK435 IC-Based STEREO AMPLIFIER

This stereo AF amplifier uses the STK435 IC, a highly popular choice due to its simplicity.

time-read
2 minutos  |
November 2024
A SEWER DRAIN SHIELD For Smart Cities
Electronics For You

A SEWER DRAIN SHIELD For Smart Cities

Drainage systems are vital for storm water management but often transport pollutants, especially plastics, to rivers and oceans, harming ecosystems.

time-read
2 minutos  |
November 2024
ESP32 SPEECH FUNCTION: Text To Speech
Electronics For You

ESP32 SPEECH FUNCTION: Text To Speech

Speech capability in technology primarily has two dimensions: text to speech (TTS) and speech to text (STT). This device focuses on TTS.

time-read
2 minutos  |
November 2024
World's Smallest Programable INDUSPHONE DESIGN
Electronics For You

World's Smallest Programable INDUSPHONE DESIGN

This is the second part of designing the world’s smallest phone, where the UI is integrated with the basic functions of the phone.

time-read
2 minutos  |
November 2024
FLAME-SENSING FIRE ALARM Using An Arduino Nano
Electronics For You

FLAME-SENSING FIRE ALARM Using An Arduino Nano

Fire safety alarms are crucial in both residential and industrial environments.

time-read
2 minutos  |
November 2024
loT-Based Distribution Transformer CONDITION MONITORING SYSTEM
Electronics For You

loT-Based Distribution Transformer CONDITION MONITORING SYSTEM

The proposed IoT-based distribution transformer condition monitoring system enables real-time monitoring of distribution transformers, identifying such deviations as overload conditions and overheating.

time-read
3 minutos  |
November 2024
Wi-Fi 6 AND Wi-Fi 7 Powering The Next Wave of Smart Connectivity
Electronics For You

Wi-Fi 6 AND Wi-Fi 7 Powering The Next Wave of Smart Connectivity

Wi-Fi 6 leads with faster data rates and reduced latency while upcoming Wi-Fi 7's backward compatibility will facilitate gradual upgrades from Wi-Fi 6, easing transitions. However, advanced features like multi-link operation (MLO) and ultra-low latency may command a premium, making Wi-Fi 7 suited for high-end applications.

time-read
8 minutos  |
November 2024
CHARGE FORWARD: High-Voltage Batteries And MSMEs Can Fuel INDIA'S EV REVOLUTION
Electronics For You

CHARGE FORWARD: High-Voltage Batteries And MSMEs Can Fuel INDIA'S EV REVOLUTION

A nuanced explanation of low- and high-voltage EV batteries by Dr Gokhale, Vice President for Battery Technology at JSW Energy, illuminates their advancements and influence. The essential role of MSMEs and academia in developing a strong EV ecosystem emerges, marking their significance for India's push towards self-reliance in this innovative field.

time-read
5 minutos  |
November 2024
"MILES TO GO Before I Sleep"
Electronics For You

"MILES TO GO Before I Sleep"

A teacher illuminates the path to success through the light of knowledge, yet some teachers extend that light to society through their contributions and research. Known as the architect of the modern M3 electronic voting machine (EVM) and the voter verifiable paper audit trail (VVPAT) that transformed India's democratic process, Prof. (Dr) Rajat Moona's journey began in the modest town of Bareilly. Here is his story, as recounted to and written by EFY's Yashasvini Razdan.

time-read
10+ minutos  |
November 2024
STARTUPS & INNOVATORS
Electronics For You

STARTUPS & INNOVATORS

1 One Charger To Charge All Your Devices | 2 Harnessing AI Technology For Efficient Pest Management | 3 Wireless Light-Based Communication With Velmenni's Technology

time-read
8 minutos  |
November 2024