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.

هذه القصة مأخوذة من طبعة December 2023 من Electronics For You.

ابدأ النسخة التجريبية المجانية من Magzter GOLD لمدة 7 أيام للوصول إلى آلاف القصص المتميزة المنسقة وأكثر من 8500 مجلة وصحيفة.

هذه القصة مأخوذة من طبعة December 2023 من Electronics For You.

ابدأ النسخة التجريبية المجانية من Magzter GOLD لمدة 7 أيام للوصول إلى آلاف القصص المتميزة المنسقة وأكثر من 8500 مجلة وصحيفة.

المزيد من القصص من ELECTRONICS FOR YOU مشاهدة الكل
Smart WATER SERVING ROBOT
Electronics For You

Smart WATER SERVING ROBOT

With the advent of artificial intelligence, robots find application in various sectors such as industry, homes, bars, restaurants, events, agriculture, and even space.

time-read
3 mins  |
April 2024
Multi-Purpose Wire-Loop SECURITY SYSTEM
Electronics For You

Multi-Purpose Wire-Loop SECURITY SYSTEM

This multi-purpose security system utilises wire loops to secure items. Wire loops can be employed in various ways for security applications such as luggage security, bike security, bicycle security, room security, and door security.

time-read
3 mins  |
April 2024
The Importance Of RADIATION PATTERN OF AN ANTENNA
Electronics For You

The Importance Of RADIATION PATTERN OF AN ANTENNA

Look beyond an antenna’s size and gain; its radiation pattern holds the key to its performance. Understanding this can unlock a whole new perspective on wireless communication

time-read
2 mins  |
April 2024
"Capitalise On 'CHINA PLUS TWO,' Where Products With Higher Value Addition BECOME THE FOCUS"
Electronics For You

"Capitalise On 'CHINA PLUS TWO,' Where Products With Higher Value Addition BECOME THE FOCUS"

EPIC Foundation aims to transform India into an electronics hardware product nation by collaborating with governments, universities, design houses, and startups.

time-read
7 mins  |
April 2024
ADDING LOCATION TRACKING To The Wearable Interface Device
Electronics For You

ADDING LOCATION TRACKING To The Wearable Interface Device

Here’s how you can add location tracking, without GPS, to the project for a smartwatch like HID with keyboard and touchpad, which was published in March issue.

time-read
2 mins  |
April 2024
"NATUREINSPIRED ADAS ALGOS Will Be MUCH BETTER Than Robotic Paradigm Algos"
Electronics For You

"NATUREINSPIRED ADAS ALGOS Will Be MUCH BETTER Than Robotic Paradigm Algos"

Most of the ADASenabled vehicles of today function on algorithms (algos) inspired by robots used in a logistics setup. Can ADAS algos inspired by the human brain and nature be better? In a conversation with EFY's Mukul Yudhveer Singh, Gagandeep Reehal, Co-Founder, CEO & CTO, Minus Zero, illustrates this using the 'sunset mistaken for red light' example, shedding light on where India's Minus Zero is headed!

time-read
4 mins  |
April 2024
NEW EV POLICY: Will It Kill More Than Two Birds With One Stone?
Electronics For You

NEW EV POLICY: Will It Kill More Than Two Birds With One Stone?

With China taking the lead in electric vehicle production and sales in many global markets, can India’s new electric vehicle manufacturing policy encourage champion brands to set up shop in India? Can this policy be the turning point for India’s automobile industry’s bid to go global?

time-read
8 mins  |
April 2024
A Device That Enables SELLING UNUSED INTERNET DATA From Your Mobile Network
Electronics For You

A Device That Enables SELLING UNUSED INTERNET DATA From Your Mobile Network

What if you could sell your remaining mobile data before the end of the month or even daily? Christophe Bureau, a Board Member of DotDot, in a conversation with EFY’s Mukul Yudhveer Singh, sheds light on what the Dot device offers beyond assisting users in selling their unused internet data

time-read
2 mins  |
April 2024
"EV INDUSTRY'S In The Compounding Stage Of BATTERY CELL TECHNOLOGY"
Electronics For You

"EV INDUSTRY'S In The Compounding Stage Of BATTERY CELL TECHNOLOGY"

As sodium-ion battery packs gain attention in India, does this spell a bleak future for lithium-ion batteries? Furthermore, where does hydrogen stand as a fuel cell and combustion fuel? Dr Yashodhan Pramod Gokhale, CTO of Battrix, weighs in

time-read
4 mins  |
April 2024
ASSISTIVE AI: Semiconductor Design, Manufacture, And Workforce
Electronics For You

ASSISTIVE AI: Semiconductor Design, Manufacture, And Workforce

Together, human intelligence and AI create a powerful synergy, highlighting the vital lesson for the semiconductor workforce: adapt to new technologies

time-read
3 mins  |
April 2024