Cov txheej txheem:
- Kauj Ruam 1: Cia Peb Saib Cov Txheej Txheem
- Kauj Ruam 2: Teeb Rau Raspberry Pi 1 (Chaw Ua Haujlwm)
- Kauj Ruam 3: Teeb Rau Raspberry Pi 2 (Qhov Rooj)
- Kauj Ruam 4: Teeb Telegram Bot
- Kauj ruam 5: Teeb DynamoDB
- Kauj Ruam 6: Teeb AWS S3 Bucket
- Kauj Ruam 7: Teeb tsa AWS SNS
- Kauj Ruam 8: Tsim Txoj Cai
- Kauj Ruam 9: Tsim Web Interface
- Kauj ruam 10: Cov ntawv tseem ceeb
Video: Raspberry Pi - Chaw Ua Haujlwm Ntse: 10 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Daim ntawv thov hais txog dab tsi?
OfficeHelperBOT yog daim ntawv thov tsom mus rau qhov chaw ua haujlwm ntse. 2 Raspberry Pi 3 Qauv B yuav teeb tsa rau qhov no.
Raspberry Pi 1 yuav yog lub tshuab tseem ceeb uas yuav suav nrog txhua qhov txiaj ntsig los ntawm cov ntsuas, tshaj tawm cov ntaub ntawv ntawm MQTT, khaws cov ntaub ntawv rau hauv huab database uas peb siv DynamoDB thiab khiav lub web portal server.
Raspberry Pi 2 yuav raug siv ntawm lub qhov rooj. Nws yuav xav kom tus neeg ua haujlwm txheeb xyuas lawv tus kheej ua ntej lawv raug tso cai nkag mus rau hauv chaw ua haujlwm. Muaj ob txoj hauv kev los ua qhov no uas yog los ntawm tus lej lej lej thiab QR code pov thawj. Hauv cov xwm txheej uas kev txheeb xyuas yuav raug siv tsis raug, peb yuav thaij duab ntawm leej twg uas tsis tau ua pov thawj tsis tiav thiab khaws tus neeg daim duab mus rau AWS S3 Bucket.
Lub vev xaib yuav tuaj yeem saib DHT, lub teeb, lub suab pom cov duab thiab yees duab ntawm lub chaw haujlwm. Lub vev xaib tseem tuaj yeem tuaj yeem tswj lub teeb chaw ua haujlwm thiab tseem saib lub kwj deg ntawm CCTV ntawm lub chaw haujlwm.
Tseem yuav muaj Telegram bot uas tso cai tswj rau lub teeb LED hauv chaw ua haujlwm, txheeb xyuas tus nqi ntawm lub ntsuas qhov ntsuas xws li ntsuas kub thiab tseem tso cai rau cov neeg ua haujlwm kom tau txais lawv daim QR code duab yog tias lawv tshwm sim poob lawv cov duab QR lossis tsis nco qab lawv tus pin los ntawm kev thov thiab tau txais lawv daim QR code duab los ntawm AWS S3 Bucket.
Kauj Ruam 1: Cia Peb Saib Cov Txheej Txheem
System Architecture Diagram
Yuav ua li cas cov tshuab yuav sib tham nrog ib leeg
Cov Khoom Kho Kom Zoo
Saib seb ob lub Raspberry Pi yuav zoo li cas thaum kawg
Qhov Web Portal
Saib lub vev xaib uas tau siv Python ntawm Flask
Telegram Bot
Nrhiav Bot peb tsim
Livestream
Siv 1 ntawm PiCam ua lub CCTV thiab tshaj tawm cov yeeb yaj kiab nyob
Yuav Tsum Tau Kho Vajtse
- 2 x Raspberry Pi
- 2 x GPIO Board
- 1 x LDR
- 1 x DHT11
- 1x Tsab ntawv tsa suab Sensor
- 4x LED ua
- 7 x nub
- 2x zoj
- 2x LCD Zaub
- 1 x Webcam
Kauj Ruam 2: Teeb Rau Raspberry Pi 1 (Chaw Ua Haujlwm)
- Tsim daim nplaub tshev khaws koj li html hu ua qauv
- Tsim daim nplaub tshev los khaws koj cov ntaub ntawv css/javascript hu ua zoo li qub
- Tsim daim nplaub tshev khaws koj lub koob yees duab cov ntaub ntawv hu ua lub koob yees duab nrog 3 daim nplaub tshev capture_photos, motion_photos, motion_videos
mkdir ~/ca2
mkdir ~/ca2/qauv
mkdir ~/ca2/zoo li qub
mkdir ~/ca2/zoo li qub/lub koob yees duab
mkdir ~/ca2/zoo li qub/lub koob yees duab/capture_photos
mkdir ~/ca2/zoo li qub/lub koob yees duab/motion_photos
mkdir ~/ca2/zoo li qub/yees/motion_Videos
Kauj Ruam 3: Teeb Rau Raspberry Pi 2 (Qhov Rooj)
- Tsim daim nplaub tshev los khaws koj cov ntaub ntawv hu ua qhov rooj
- Tsim daim nplaub tshev khaws koj li QR Code cov duab hu ua qr_code
mkdir ~/qhov rooj
mkdir ~/qhov rooj/qr_code
Kauj Ruam 4: Teeb Telegram Bot
- Qhib Telegram
- Nrhiav "BotFather"
- Hom "/pib"
- Hom "/newbot"
- Ua raws li cov lus qhia, lub npe rau bot, lub npe siv rau bot, sau rau bot kev txheeb xyuas tus lej cim
Kauj ruam 5: Teeb DynamoDB
- Sign up for AWS
- Nrhiav DynamoDB hauv AWS Kev Pabcuam
- Nyem "Tsim cov lus"
- Sau lub npe lub npe
- Teem muab faib qhov tseem ceeb ua 'id' (Txoj hlua) thiab Ntxiv Ntxiv Qhov Tseem Ceeb ua 'datetime' (String)
- Ua rau 4 lub rooj, dht, teeb, duab, neeg ua haujlwm
Saib ua ntej ntawm 4 Cov Ntxhuav
Kauj Ruam 6: Teeb AWS S3 Bucket
- Search AWS S3
- Nyem rau ntawm "Tsim thoob"
- Ua raws li cov cai teev npe lub thoob
- Ua raws cov screenshots
- Tsim Thoob
Kuv yuav ua li cas thiaj li upload rau hauv S3 thoob?
Peb tsis muaj tus thawj tswj hwm lub portal yog li peb yuav ua tus kheej ntshuam QR Code duab los ntawm AWS nraaj tus neeg siv-interface. Ua raws cov screenshots los tsim lub thoob. Cov ntawv luv ntawm cov cai yog cov laj thawj xav tau txhawm rau rub cov duab mus rau S3 Thoob
Kauj Ruam 7: Teeb tsa AWS SNS
- Search AWS SNS
- Ua raws li Topic Tag
- Tsim cov ncauj lus tshiab
- Teem lub npe lub npe thiab tso saib lub npe
- Kho txoj cai kom txhua tus tshaj tawm
- Sau npe yuav mus rau lub ncauj lus uas tau tsim
- Teem email hauv kab lus kawg kom tau txais email thaum tus nqi nce mus txog tus nqi tshwj xeeb
Kauj Ruam 8: Tsim Txoj Cai
- Nyem rau ntawm "Tsim txoj cai"
- Sau lub npe thiab piav qhia luv luv
- Xaiv qhov tseeb SQL version xa tag nrho MQTT lus
- Txoj cai cav siv lub ntsiab lus lim los txiav txim cov cai twg kom ua thaum MQTT cov lus tau txais
- Nyem rau ntawm "Add action"
- Xaiv xa cov lus ntawm SNS thawb ceeb toom
Kauj Ruam 9: Tsim Web Interface
Tsim cov ntaub ntawv html tshiab hu ua
- taub hau
- tus ID nkag mus
- cav
- ua dht
- lub teeb
- duab
- tsab ntawv tsa suab
- coj
Luam thiab muab tshuaj txhuam los ntawm Google Drive cov ntaub ntawv mus rau qhov sib xws html.
drive.google.com/file/d/1zd-x21G7P5JeZyPGZp1mdUJsfjoclYJ_/view?usp=sharing
Kauj ruam 10: Cov ntawv tseem ceeb
Muaj 3 tsab ntawv tseem ceeb
- server.py - Tsim Web Portal
- working.py - Logic rau Raspberry Pi 1 (Chaw Haujlwm)
- door.py Logic rau Raspberry Pi 2 (Qhov Rooj)
Peb tsuas yog siv tag nrho 3 tus lej kom tau txais qhov txiaj ntsig peb xav tau
Peb tuaj yeem tau txais nws los ntawm Google tsav hauv qab Main.zip
drive.google.com/open?id=1xZRjqvFi7Ntna9_KzLzhroyEs8Wryp7g
Pom zoo:
Ntse Tswb Tswb: Ntse Tswb Tswb Ua Nrog Raspberry Pi: 10 Kauj Ruam (nrog Duab)
Ntse Tswb Tswb: Ntse Tswb Tswb Ua Nrog Raspberry Pi: Koj puas tau xav tau lub moos ntse? Yog tias yog, qhov no yog kev daws teeb meem rau koj! Thaum lub tswb nrov tawm, yuav muaj lub suab (buzzer) thiab 2 lub teeb yuav
Lub Hnab Ntse Hnab Ntse Ntse Computer: 4 Kauj Ruam (nrog Duab)
Lub Hnab Ntse Hnab Ntse Ntse Computer: Qhov no yog "hnab looj tes ntse" nas lub computer uas tuaj yeem siv nrog ib lub PC, Mac, lossis Linux computer. Nws tau tsim los siv Binho Nova ntau tus txheej txheem USB host adapter, uas tso cai rau koj txuas cov ntsuas thiab lwm yam khoom siv rau koj lub khoos phis tawj thiab tom qab ntawd txuas ntxiv
Tus Thawj Saib Xyuas Haujlwm - Tsev Haujlwm Ua Haujlwm Hauv Tsev: 5 Kauj Ruam (nrog Duab)
Tus Thawj Saib Xyuas Haujlwm - Tsev Tswj Xyuas Haujlwm Hauv Tsev: Kuv xav sim daws qhov teeb meem tshwm sim tiag tiag hauv peb tsev neeg (thiab, kuv xav txog, ntawm ntau lwm tus neeg nyeem), uas yog yuav faib li cas, txhawb siab, thiab muab nqi zog rau kuv cov menyuam rau kev pab tawm nrog ua haujlwm hauv tsev. Txog tam sim no, peb tau khaws cov ntawv laminated
Tsis Siv Neeg Ntse Cog Ntoo - (DIY, 3D Luam Tawm, Arduino, Kev Tso Dej Rau Tus Kheej, Txoj Haujlwm): 23 Kauj Ruam (nrog Duab)
Tsis Siv Neeg Smart Cog Lauj - (DIY, 3D Luam, Arduino, Ua Dej Rau Tus Kheej, Project): Nyob Zoo, Qee zaum thaum peb tawm ntawm tsev mus ob peb hnub lossis tsis khoom tib lub tsev cog ntoo (tsis ncaj ncees) raug kev txom nyem vim tias lawv tsis tau ywg dej thaum lawv xav tau. Nov yog kuv qhov kev daws teeb meem. Nws yog Smart Plant Pot uas suav nrog: Cov dej hauv lub pas dej. Ib txwm
Lub Tsev Ua Lub Txias Txias Nrog Ntse Tswj Ua Haujlwm (Lub Freezer Txias): 11 Kauj Ruam (nrog Duab)
Lub Tsev Ua Tub Yees Nrog Lub Ntse Tswj Kev Ua Haujlwm (Deep Freezer): Nyob Zoo Cov Phooj Ywg Qhov no yog Tshooj 2 ntawm DIY lub tub yees raws li peltier module, hauv ntu no peb siv 2 peltier module hloov 1, peb kuj siv lub ntsuas cua sov kom teeb tsa qhov xav tau kom sov me ntsis zog