Cov txheej txheem:

Raspberry Pi DIY Remote Intruder Detector System Nrog Telegram: 7 Cov Kauj Ruam
Raspberry Pi DIY Remote Intruder Detector System Nrog Telegram: 7 Cov Kauj Ruam

Video: Raspberry Pi DIY Remote Intruder Detector System Nrog Telegram: 7 Cov Kauj Ruam

Video: Raspberry Pi DIY Remote Intruder Detector System Nrog Telegram: 7 Cov Kauj Ruam
Video: DIY Home Automation Intruder Alarm System! || Home Assistant + Raspberry Pi + ESP8266 2024, Hlis ntuj nqeg
Anonim
Raspberry Pi DIY Remote Intruder Detector System Nrog Telegram
Raspberry Pi DIY Remote Intruder Detector System Nrog Telegram

Hauv txoj haujlwm no koj yuav tsim lub cuab yeej tshawb nrhiav nkag mus uas yuav tshuaj xyuas yog tias muaj leej twg nyob hauv koj lub tsev / chav thaum koj tawm mus siv lub PIR sensor, yog PIR sensor pom ib tus neeg nws yuav siv (teeb duab) ntawm neeg nkag. Cov duab yuav raug xa mus rau koj tus lej xov tooj bot channel txhua qhov chaw koj nyob. Koj tseem tuaj yeem ntxiv qee qhov "ua kom ntshai" cov tswv yim, zoo li ua rau lub tswb nrov lossis cov suab kaw ua ntej.

Khoom siv

Raspberry Pi

Daim npav SD

Raspberry Pi fais fab mov

PIR sensor yog

Pi Lub Koob Yees Duab

Hais lus (yeem)

Generic mobile lub koob yees duab lens (yeem)

Kauj Ruam 1: Kho Koj Tus Raspberry Pi

Koj yuav tsum teeb tsa koj li Raspberry Pi ntaus ntawv nrog qhov kawg Rasberry Pi OS version nrog cov pob txheem. Nco ntsoov kom tau Python3 Telepot thiab PiCamera modules siv pip3 lossis apt.

$ sudo apt-tau hloov tshiab

$ sudo apt-tau nruab python3-picamera

$ sudo pip3 nruab telepot

Kauj ruam 2: Nruab PiCam

Nruab PiCam
Nruab PiCam
Nruab PiCam
Nruab PiCam

Txuas koj lub picam rau koj Rasbperry Pi siv CSI txuas.

Koj kuj yuav tsum tau txheeb xyuas yog tias koj muaj lub picamera tau qhib rau ntawm Raspberry Pi cov ntawv thov teeb tsa.

Kauj Ruam 3: Nruab PIR Sensor (Passive InfraRed Presence Sensor)

Nruab PIR Sensor (Passive InfraRed Presence Sensor)
Nruab PIR Sensor (Passive InfraRed Presence Sensor)

Txuas lub PIR sensor rau koj li Raspberry Pi

Kauj Ruam 4: Teeb Koj Telegram Bot

Tau txais tus lej xov tooj thiab tham tus lej los ntawm telegram BotFather bot:

core.telegram.org/bots

Kauj Ruam 5: Nruab thiab teeb Tus Hais Lus (xaiv tau)

Nruab thiab teeb Tus Hais Lus (xaiv tau)
Nruab thiab teeb Tus Hais Lus (xaiv tau)

Nruab ib tus neeg hais lus ib txwm rau koj Raspberry Pi siv lub suab tso. Nco ntsoov teeb tsa lub suab los ntawm 3.5mm lub mloog pob ntseg nkaus thiab tsis yog HDMI tso tawm.

Nruab qhov software espeak los ua ke suab los ntawm cov ntawv

$ sudo apt-tau nruab espeak

Kauj Ruam 6: Teeb tsa Python Script thiab Siv Yooj Yim

Rub tawm tsab ntawv los ntawm git repo thiab teeb tsa:

-Telegram tus lej thiab tham id los ntawm BotFather

- PIR tus pin siv ntawm koj cov teeb tsa teeb

Cov lus qhia siv yooj yim los khiav lub kaw lus nkag mus rau tus neeg nkag mus:

-Kho cov ntawv nrog koj cov ntaub ntawv tshwj xeeb

-Pib tsab ntawv

-Qhib lub telegram bot uas koj tau tsim ua ntej thiab tswj tsab ntawv siv cov lus txib ua hauv

Hais kom ua:

pab kom pir: yog tias PIR sensor tau qhib, thaum PIR tau tshwm sim, tsab ntawv yuav thaij duab thiab xa nws mus rau koj lub channel bot

lov tes taw pir: yog PIR sensor tsis taus, tsis txhob thaij duab ib leeg (thaum koj nyob hauv tsev, PIR sensor yuav tsum xiam kom tsis txhob muaj dej nyab)

qhia: thaij duab lub sijhawm tiag tiag thiab xa mus rau telegram bot channel

hais TEXT: nyeem kab ntawv TEXT los ntawm tus hais lus

Kauj ruam 7: Ua tsaug! Koj Tau Txais

Tam sim no koj muaj koj tus kheej cov cuab yeej tshawb nrhiav nkag !!

Pom zoo: