![WATCHBOT INTRUDER DETECTION Using Pi Camera And VIDEO STORAGE With Telegram Bot](https://cdn.magzter.com/Electronics For You/1701324152/articles/jyidcM9Ao1701346222879/WATCHBOT-INTRUDER-DETECTION-USING-PI-CAMERA-AND-VIDEO-STORAGE-WITH-TELEGRAM-BOT.jpg)
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 مجلة وصحيفة.
بالفعل مشترك? تسجيل الدخول
![Smart WATER SERVING ROBOT](https://reseuro.magzter.com/100x125/articles/146/1656744/Ubd7tMTJo1712324056511/SMART-WATER-SERVING-ROBOT.jpg)
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.
![Multi-Purpose Wire-Loop SECURITY SYSTEM](https://reseuro.magzter.com/100x125/articles/146/1656744/MzjJfpENq1712323784200/MULTIPURPOSE-WIRELOOP-SECURITY-SYSTEM.jpg)
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.
![The Importance Of RADIATION PATTERN OF AN ANTENNA](https://reseuro.magzter.com/100x125/articles/146/1656744/lvG-dUJag1712323531529/THE-IMPORTANCE-OF-RADIATION-PATTERN-OF-AN-ANTENNA.jpg)
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
!["Capitalise On 'CHINA PLUS TWO,' Where Products With Higher Value Addition BECOME THE FOCUS"](https://reseuro.magzter.com/100x125/articles/146/1656744/QCPmWsed-1712322929416/CAPITALISE-ON-CHINA-PLUS-TWO-WHERE-PRODUCTS-WITH-HIGHER-VALUE-ADDITION-BECOME-THE-FOCUS.jpg)
"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.
![ADDING LOCATION TRACKING To The Wearable Interface Device](https://reseuro.magzter.com/100x125/articles/146/1656744/TJTFZHD2z1712322379189/ADDING-LOCATION-TRACKING-TO-THE-WEARABLE-INTERFACE-DEVICE.jpg)
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.
!["NATUREINSPIRED ADAS ALGOS Will Be MUCH BETTER Than Robotic Paradigm Algos"](https://reseuro.magzter.com/100x125/articles/146/1656744/-C1pSMGAP1712321499674/NATUREINSPIRED-ADAS-ALGOS-WILL-BE-MUCH-BETTER-THAN-ROBOTIC-PARADIGM-ALGOS.jpg)
"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!
![NEW EV POLICY: Will It Kill More Than Two Birds With One Stone?](https://reseuro.magzter.com/100x125/articles/146/1656744/EjWqXBHRR1712320537365/NEW-EV-POLICY-WILL-IT-KILL-MORE-THAN-TWO-BIRDS-WITH-ONE-STONE.jpg)
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?
![A Device That Enables SELLING UNUSED INTERNET DATA From Your Mobile Network](https://reseuro.magzter.com/100x125/articles/146/1656744/YSqiiUYW01712320243451/A-DEVICE-THAT-ENABLES-SELLING-UNUSED-INTERNET-DATA-FROM-YOUR-MOBILE-NETWORK.jpg)
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
!["EV INDUSTRY'S In The Compounding Stage Of BATTERY CELL TECHNOLOGY"](https://reseuro.magzter.com/100x125/articles/146/1656744/iNS7tf_bu1712320011569/EV-INDUSTRYS-IN-THE-COMPOUNDING-STAGE-OF-BATTERY-CELL-TECHNOLOGY.jpg)
"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
![ASSISTIVE AI: Semiconductor Design, Manufacture, And Workforce](https://reseuro.magzter.com/100x125/articles/146/1656744/nQSIhS9RV1712319618029/ASSISTIVE-AI-SEMICONDUCTOR-DESIGN-MANUFACTURE-AND-WORKFORCE.jpg)
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