Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Raspberry Pi thiab Arduino teeb tsa
- Kauj ruam 2: Teeb lub thawv
- Kauj Ruam 3: Pib Txog Qhov Peephole Virtual
- Kauj ruam 4:
Video: Virtual Peephole: 4 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Muaj kwv yees li 770 lab lub koob yees duab keb soj ntsuam thoob ntiaj teb. Qee tus ntawm lawv tseem muaj lawv tus password tsis raug, ua rau lawv nkag tau yooj yim, los ntawm txhua tus neeg uas muaj kev siv internet.
Qhov peephole virtual no yog lub cuab yeej los saib qee lub koob yees duab uas tsis muaj kev ruaj ntseg. Txhua lub sijhawm qhib qhov peephole, muaj lub koob yees duab sib txawv.
Khoom siv
- 1 Arduino Micro Cov
- 1 Photo resistor
- 1 Raspberry Pi 3 Qauv B.
- 1 Raspberry Pi Screen
- 1 Ntoo Ntoo
- 1 Qhov Rooj Qhov Muag
- Laum
- Ntsia Hlau
Kauj Ruam 1: Raspberry Pi thiab Arduino teeb tsa
Qhov peephole virtual yog ua los ntawm 2 qhov sib txawv: Raspberry Pi (nrog lub vijtsam me me) thiab Arduino Micro. Raspberry Pi txuas nrog internet thiab nthuav tawm lub vev xaib, uas qhia pom ib lub koob yees duab tsis pub siv. Nws muaj lub teeb pom kev sab hauv lub qhov peephole, txhawm rau txheeb xyuas yog tias nws qhib lossis kaw. Thaum twg qhov peephole raug kaw, lub teeb liab xa mus rau Raspberry Pi (ntawm Arduino Micro), thiab lub vev xaib hloov mus rau lwm lub koob yees duab pub. Cov koob yees duab cov ntaub ntawv kuv siv rau txoj haujlwm no tau muab tshem tawm los ntawm Insecam, lub vev xaib uas sau npe ntau dua 73, 000 lub koob yees duab tsis muaj kev ruaj ntseg.
Lub vev xaib los tso saib
Txog kuv qhov peephole virtual, Kuv tau tsim lub vev xaib nrog cov ntaub ntawv kuv khaws los ntawm kev tsis nyab xeeb. Koj tuaj yeem tsim koj tus kheej lub vev xaib tau zoo, tab sis qhov no tsis yog qhov ua tau ntawm qhov tsis tuaj yeem ua. Yog tias koj tsis xav zoo li tsim koj tus kheej lub vev xaib, koj tuaj yeem siv qhov txuas no (nws hloov pauv webcam txhua lub sijhawm qhov chaw bar raug nias; tom qab ntawv peb yuav ua tus yuam sij ntawd los ntawm arduino), lossis pom qhov chaws.
Teeb tsa Raspberry pi
- Xyuas kom koj Raspberry Pi ua haujlwm thiab teeb tsa (saib phau ntawv qhia no yog tias koj tshiab rau raspberry pi)
- Nqa lub vijtsam LCD mus rau Raspberry Pi
- Kom raspberry pi qhib lub vev xaib thaum pib
Teeb tsa Arduino
Nco ntsoov: txhawm rau ua txoj haujlwm no, koj pawg thawj coj Arduino yuav tsum txhawb nqa lub tsev qiv ntawv keyboard Raws li tau hais hauv lub tsev qiv ntawv nplooj ntawv:
Cov qauv txhawb nqa yog 32u4 thiab SAMD raws cov laug cam (Leonardo, Esplora, Zero, Due thiab MKR Family)
- Nqa koj lub teeb sensor mus rau Arduino
- Tshaj tawm cov cai ntawm Arduino. Txoj cai yuav xub ntsuas ntsuas rau 5 vib nas this (thaum lub sijhawm min thiab tus nqi siab tshaj plaws ntawm tus kws yees duab yuav tau sau npe), thiab tom qab ntawd xa "qhov chaw" teeb liab tseem ceeb thaum twg lub teeb pom kev qis dua hauv qab qhov muag (lub ntsiab lus lub qhov peephole raug kaw).
yav tom ntejMillis = 0
// vim tias lub teeb ib txwm sib txawv, peb yuav ntsuas tus yees duab ntawm txhua lub khau raj. ntev calibrationtime = 5000; ntev startMillis = 0; // tus nqi siab tshaj plaws rau kev ntsuas analog yog 1024 int sensorMin = 1024; int sensorMax = 0; int nruab nrab = 0; int pib = 5; bool lastState = tseeb; bool isClosed = tseeb; teeb tsa tsis muaj dab tsi () {Serial.begin (9600); // qhib qhov chaw nres nkoj txuas Keyboard.begin (); // pib lub keyboard tsev qiv ntawv startMillis = millis (); // pib lub txee} void loop () {// ruaj khov nyeem ntawv hauv thawj 5 vib nas this // tom qab ntawd, txheeb xyuas qhov sib txawv ntawm qhov ruaj khov. unsigned ntev currentMillis = millis (); // teeb tsa millis raws li lub sijhawm tam sim no int sensorValue = analogRead (A0); // nyeem lub sensor yog (currentMillis-startMillis <calibrationtime) {// tsuav peb nyob hauv lub sijhawm ntsuas ntsuas // thaum lub sijhawm ntsuas no, qhib thiab kaw lub peephole kom ntsuas nws. int elapsedtime = currentMillis - startMillis; Serial.println (sijhawm dhau los); Serial.println (sensorMin); Serial.println (sensorMax); yog (sensorValue sensorMax) {sensorMax = sensorValue; nruab nrab = (sensorMin + sensorMax)/2; } ncua (100); // ncua} ntxiv {// yog tias qhov ntsuas tau ua tiav yog (sensorValue> nruab nrab + qhov pib) {// kuaj xyuas yog tias qhov peephole qhib lossis kaw isClosed = cuav; yog (lastState! = isClosed) {}} else {isClosed = true; yog (lastState! = isClosed) {Keyboard.print (""); // xa lub cim tseem ceeb yog lub peephole qhib}} lastState = isClosed; ncua (100); }}
Kauj ruam 2: Teeb lub thawv
- Laum ib lub qhov rooj ntawm lub qhov rooj, kom haum rau cov duab (qhov no yuav kuaj xyuas yog tias koj lub peephole tau qhib lossis kaw thiab tom qab ntawd ua rau lub webcam hloov pauv).
- Laum ib lub qhov rau hauv lub thawv kom koj tuaj yeem haum qhov rooj qhov rooj
- Nyob rau hauv pem hauv ntej ntawm lub qhov muag qhov rooj, ruaj ntseg raspberry pi nrog lub vijtsam (Kuv siv velcro)
-
Hlau arduino:
- Hlau tus photosensor mus rau arduino
- Muab USB cable nruab nrab ntawm Rpi thiab Arduino. Arduino yuav ua zoo li cov keyboard thiab xa cov cim tseem ceeb rau raspberry pi.
Kauj Ruam 3: Pib Txog Qhov Peephole Virtual
Thaum koj tau muab txhua yam tso rau hauv lub thawv, tam sim no koj tau npaj los khiav koj lub peephole virtual.
- Muab qhov peephole virtual tso rau ntawm phab ntsa
- Txuas Rapsberry pi rau lub zog
- Tam sim no koj yuav muaj 5 vib nas this los ntsuas cov duab nyob hauv lub qhov muag qhov rooj, los ntawm kev qhib thiab kaw nws ntau zaus.
Lub peephole virtual yuav tsum tam sim no ua haujlwm!
Txaus siab rau!
Kauj ruam 4:
Khiav Tawm Hauv Kev Sib Tw Raspberry Pi 2020
Pom zoo:
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: 7 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: Nyob zoo txhua tus! Cov lus qhia no tau yug los ntawm lub laptop faib ua ib nrab, yuav los ntawm ib tus phooj ywg. Thawj qhov kev sim ntawm txoj haujlwm no yog kuv Lego Digital Photo Frame, txawm li cas los xij, yog ib tus neeg mob siab rau Siri thiab Google Tam sim no, Kuv txiav txim siab coj nws mus rau qhov tshiab
Tus Saib Xyuas V1.0 --- Txhim Kho Qhov Rooj Peephole Lub Koob Yees Duab Nrog Arduino (Kev Tshawb Fawb Kev Tshawb Fawb & Hluav Taws Xob Nta): 5 Kauj Ruam
Tus Saib Xyuas V1.0 ||| Txhim Kho Qhov Rooj Peephole Lub Koob Yees Duab Nrog Arduino (Kev Tshawb Fawb Tsab Ntawv Teev Tseg & Nta Hluav Taws Xob Nta): Kuv tau xaj lub koob yees duab peephole tab sis thaum kuv siv nws, pom tau tias tsis muaj qhov pib ua haujlwm (qhib los ntawm kev ntsuas pom). Tom qab ntawd kuv pib tshawb xyuas nws ua haujlwm li cas. Txhawm rau kaw cov vis dis aus, koj yuav tsum 1- khaws lub zog khawm yuav luag 2 vib nas this