Cov txheej txheem:
- Kauj Ruam 1: Sau cov Cheebtsam
- Kauj ruam 2: Programming Koj Raspberry Pi
- Kauj Ruam 3: Khiav Python Code thiab Troubleshooting
Video: Raspberry Pi Kuaj Lub Koob Yees Duab Nrog Email Ceeb Toom: 3 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Kev nyab xeeb yog kev txhawj xeeb loj niaj hnub no thiab muaj ntau yam thev naus laus zis niaj hnub no los ua kom koj qhov chaw nyab xeeb thiab saib xyuas. Cov koob yees duab CCTV muaj txiaj ntsig zoo los ua kom pom qhov muag ntawm koj lub tsev lossis chaw ua haujlwm. Txawm hais tias tus nqi ntawm cov hom koob yees duab no tau raug txo qis txij li lawv pib tab sis tseem yog IP lub koob yees duab, uas muaj peev xwm xa thiab tau txais hnub tim dhau lub network, yog kim heev. Hauv Cov Lus Qhia no peb tau ua lub koob yees duab me me uas yuav xa email ceeb toom, yog lub koob yees duab pom tias muaj kev txav mus los ntawm lub koob yees duab
Kauj Ruam 1: Sau cov Cheebtsam
1. Raspberry Pi lub koob yees duab / webcam
2. Raspberry Pi 3
3. Motion sensor
Kauj ruam 2: Programming Koj Raspberry Pi
nab hab sej yuav yog qhov kev xaiv zoo rau Program raspberry Pi, yog li peb puas tau …
chaws:
los ntawm picamera ntshuam PiCamera los ntawm lub sijhawm ntshuam pw
ntshuam smtplib
lub sij hawm ntshuam
los ntawm datetime ntshuam datetime
los ntawm email.mime.image ntshuam MIMEImage
los ntawm email.mime.multipart ntshuam MIMEMultipart
ntshuam RPi. GPIO ua lub sijhawm GPIO ntshuam
toaddr = '[email protected]' # tau txais email id
kuv = '[email protected]' # xa email id
Kawm = 'ceeb toom kev nyab xeeb'
GPIO.setmode (GPIO. BCM)
P = PiCamera ()
P.resolution = (320, 240)
P.start_preview ()
GPIO.setup (23, GPIO. IN)
thaum Muaj Tseeb: yog GPIO.input (23):
print ("Tsab ntawv tsa suab …") #lub sijhawm ua kom sov lub koob yees duab
sijhawm.sleep (2)
P.capture ('txav.jpg')
sijhawm.sleep (10)
subject = 'Kev nyab xeeb kev ceeb toom !!'
msg = MIMEMultipart ()
msg ['Subject'] = ntsiab lus
msg ['Los ntawm'] = kuv
msg ['To'] = toaddr
fp = qhib ('txav.jpg', 'rb')
img = MIMEImage (fp.read ())
fp.close ()
msg.attach (img)
neeg rau zaub mov = smtplib. SMTP ('smtp.gmail.com', 587)
server.starttls ()
server.login (user = '[email protected]', password = 'xxxxxxxxx') #tus lej email thiab tus lej zais ntawm cov xa ntawv
server.sendmail (kuv, toaddr, msg.as_string ())
server.quit ()
P.stop_preview ()
Kauj Ruam 3: Khiav Python Code thiab Troubleshooting
txuas PIR sensor pins rau
1. PIR vcc rau rpi-2 (Pin Lub Cev)
2.. PIR gnd to rpi-6 (Pin Pin)
3. PIR tawm mus rau rpi-16 (Tus Pin Lub Cev)
(Lub cev pins suav yuav pib los ntawm 1-40 saib daim duab)
Yog xav paub ntxiv thov saib cov duab
theej cov cai rau ntawm rpi-desktop
ces qhib davhlau ya nyob twg
- cd Duab Desktop/
- sudo nab hab sej codce1.py
qhov ntawd yog nws
daws teeb meem
1. Yog koj pom muaj qhov yuam kev nkag thaum ua haujlwm nab hab se thov rub cov cai los ntawm daim ntawv txuas ntxiv code1.py
2. Yog koj pom lub vijtsam dub / grey hloov chaw tso video hauv Pi
ntaus cov lus txib hauv qab no hauv davhlau ya nyob twg
sudo modprobe bcm2835-v4l2
3. Ua kom koj tau ntxiv cov ntawv pov thawj gmail kom raug, tom qab ntawd khiav cov nab npawb nab npawb
Pom zoo:
$ 5 Lub Koob Yees Duab Lub Koob Yees Duab rau Lub Rooj Sib Tham Video: 4 Cov Kauj Ruam (nrog Duab)
$ 5 Laptop Document Camera for Conferencing Video: Luam tawm 20200811 los ntawm John E. Nelson [email protected] tsis ntev los no tau tshaj tawm qhia qhia kev siv lub khoos phis tawj khoos phis tawj khoos phis tawj ua lub koob yees duab rau kev sib tham video. www.instructables.com/id/A-Sub-10-MetaPrax-Documen
Lub Koob Yees Duab CCTV Nrog NodeMCU + Lub Laus Laptop Lub Koob Yees Duab (Nrog thiab Tsis Siv Blynk): 5 Kauj Ruam
CCTV Lub Koob Yees Duab Nrog NodeMCU + Lub Laus Laptop Lub Koob Yees Duab (Nrog thiab Tsis Siv Blynk): Nyob zoo cov phooj ywg! Hauv cov lus qhia no, Kuv yuav qhia koj li cas kuv siv lub khoos phis tawj qub lub koob yees duab thiab nodeMCU los ua qee yam zoo ib yam li CCTV
Lub taub hau Nrhiav Nrog Wii Lub Koob Yees Duab Lub Koob Yees Duab (Tsov Rog Thunder): 6 Cov Kauj Ruam (nrog Duab)
Txheeb Xyuas Lub Taub Hau Nrog Wii Lub Koob Yees Duab Lub Koob Yees Duab (Tsov Rog Thunder): Nyob zoo txhua tus! Kuv xav qhia rau koj nrog kuv thawj qhov haujlwm tiav Arduino tiav. Kuv tau sim ua ib hom kev ua hauv tsev ntxiv rau kev muaj tiag. Cia kuv piav qhia nws rau koj: Nws yog qhov txheej txheem uas siv lub koob yees duab txhawm rau taug qab koj lub taub hau txav los hloov nws raws li
Lub Koob Yees Duab-Lub Koob Yees Duab Combiner Ua Nrog Lego: 12 Cov Kauj Ruam (nrog Duab)
Camera-Microscope Combiner Made With Lego: Nyob zoo txhua tus, Hnub no kuv yuav qhia yuav ua li cas thiaj ua lub koob yees duab rau lub tshuab tsom iav (ua nrog Lego qhov chaw) uas peb tuaj yeem ntes cov ntsiab lus ntawm tsom iav yooj yim dua. Cia peb pib
Hmo Hmo Pom Lub Zeem Muag Digital Lub Koob Yees Duab/lub koob yees duab: 17 Cov Kauj Ruam (nrog Duab)
Infrared Hmo Hmo Pom Lub Koob Yees Duab/Lub Koob Yees Duab: Cov lus qhia no piav qhia yuav hloov pauv li cas Kev Pom Kev Pom Kev Pom Hmo Hmo Hmo Hmo Hmo Hmo Hmo Hmo Hmo Tsis Pom Kev (uas yog tshaj tawm tsis raug los siv "" lub ntsej muag pom kev hmo ntuj tiag tiag thev naus laus zis ") mus rau qhov tseeb pom pom hmo ntuj pom lub koob yees duab. Qhov no zoo ib yam li IR webca