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.
Allerede abonnent ? Logg på
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.
Allerede abonnent? Logg på
TRULY INNOVATIVE ELECTRONICS -INNOVATION UPDATES
Amongst numerous press releases of new products received by us, these are the ones we found worthy of the title Truly Innovative Electronics
Elastomer enhancing smart wearable performance
A high-tech, flexible wearable device made from the innovative elastomer material
Nanotechnology based noninvasive cancer diagnostics
Nanoflake sensors built from indium oxide with platinum and nickel detect changes in isoprene
Space communication with silent amplifiers
In the new communication system from researchers at Chalmers University of Technology, in Sweden, a weak optical signal (red) from the spacecraft's transmitter can be amplified noisefree when it encounters two so-called pump waves (blue and green) of different frequencies in a receiver on Earth.
Advancements in TOPCon solar cells
The structure and performance of tandem devices with highly passivated TOPCon bottom cells
Quantum leap in magnetism refines superconductors
Rice University physicists have uncovered key magnetic and electronic properties in kagome magnets, structures resembling basket-weaving patterns.
Sensor targets food antioxidants
A research team from Hunan City University and Xiangtan University in China has developed a sensor for detecting TBHQ, a food antioxidant used in oils and fats, addressing health concerns at high concentrations.
Data sensing with repurposed RFID tags
UC San Diego researchers have advanced passive data collection with a breakthrough in battery-free sensing.
Seal-inspired sensors to safeguard offshore wind farms
Schematic structure of the seal whisker-inspired flow sensors
Artificial nose identifies scents accurately
Artificial nose identifies scents accurately