Cov txheej txheem:
- Kauj Ruam 1: Txheeb Xyuas Khoom Kho Vajtse
- Kauj ruam 2: Nkag mus rau AWS
- Kauj Ruam 3: Kev teeb tsa rau Raspberry Pi
- Kauj Ruam 4: Ntse Chav Tswj Cov Cai
- Kauj Ruam 5: Kawm Txuj Ci
Video: Ntse Chav Tswj: 5 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Hauv txoj haujlwm no, peb lub hom phiaj kawm paub siv AWS thiab MQTT hauv peb kev teeb tsa. Ua nyob hauv lub ntiaj teb thev naus laus zis, yuav zoo npaum li cas thiaj tuaj yeem tswj hwm koj chav nrog koj lub khoos phis tawj nkaus xwb! Xav txog koj tus kheej maj rau lub sijhawm kom ua tiav koj cov phiaj xwm, taug kev hla qhov qhib rau koj lub teeb tsuas yog siv sijhawm dhau!
Lub portal no yuav:
- Tso cai rau koj rub/rub cov duab (S3 Thoob)
- Txheeb xyuas qhov tseem ceeb (DynamoDB)
- Qhib/tua coj
- Txheeb xyuas qhov kub thiab txias (phpmyadmin)
Los ntawm cov tub ntxhais kawm mus rau cov laus, nws yog qhov sib cuam tshuam yooj yim uas siv tau yooj yim thiab nkag siab!
Kauj Ruam 1: Txheeb Xyuas Khoom Kho Vajtse
Cia peb tshuaj xyuas cov khoom siv kho vajtse xav tau rau qhov kev qhia no.
- Assorted Jumper Cables
- DHT11 Kub thiab Vaum Sensor x1
- 10k ohms resistor x2
- NPE 3008 x1
- Lub Teeb Ntsuas Tus Kheej (LDR) x1
- LED teeb x1
- 330 ohms resistor x1
- Picamera x 1
Kauj ruam 2: Nkag mus rau AWS
- Nkag mus rau
- Luam tus Access Key ID thiab Secret Access Key rau teeb tsa lub hom phiaj tom qab.
- Nyem "Qhib Console"
Sau koj li Raspberry Pi ua "Yam"
- Search AWS IoT
- Hauv qab kab lus qhia sab laug, nyem "Tswj" thiab xaiv "Yam"
- Sau ib lub npe rau koj Yam thiab tsim daim ntawv pov thawj.
- Txuag 4 cov ntaub ntawv tsim tawm thaum tsim daim ntawv pov thawj.
- Tsim txoj cai thiab txuas txoj cai rau koj Yam.
DynamoDB
- Nrhiav DynamoDB
- Tsim lub rooj rau Teeb
S3 Thoob
- Nrhiav S3
- Tsim lub thoob rau upload cov duab
Kauj Ruam 3: Kev teeb tsa rau Raspberry Pi
Ua ntej koj pib siv cov lej, teeb tsa cov no hauv koj li Raspberry Pi.
Qhib lub dav hlau qhov rai
- AWSIoTPythonSDK: sudo pip nruab AWSIoTPythonSDK
- awscli: sudo pip nruab awscli
- Boto: sudo pip nruab boto
- Boto3: sudo pip nruab boto3
- Flask: sudo pip install flask
- mqtt: sudo pip nruab mqtt
- paho: sudo pip nruab paho
Khiav hauv koj lub qhov rai qhov rai:
aws configure
thiab qhov tseem ceeb hauv tus yuam sij nkag thiab tus yuam sij nkag tau yooj yim ntawm koj lub console.
Kauj Ruam 4: Ntse Chav Tswj Cov Cai
- InsertIntoDB.py: Qhov no yuav ntxig qhov kub thiab av noo rau hauv database
- aws_pubsub.py: Qhov no yuav sau npe yuav cov ncauj lus xws li ntsuas/lub teeb thiab lub koob yees duab kom tau txais lub teeb pom kev thiab cov duab.
- server.py: Qhov no yuav tso cai rau LED qhib thiab tua. Kub thiab av noo tseem yuav rov qab los thiab tso tawm ntawm nplooj ntawv html. Lub teeb pom kev cia hauv dynamoDB yuav rov qab los.
Kauj Ruam 5: Kawm Txuj Ci
Ua qhov tshiab rau Python, peb ntsib ntau qhov nyuaj thiab teeb meem thaum tus txheej txheem ntawm kev kawm qhov IoT module no. Txawm li cas los xij, nrog kev qhia ntawm peb cov kws qhia ntawv thiab cov phooj ywg, peb tau tswj hwm thiab kawm tau. Los ntawm txoj haujlwm no, peb tau kawm qhov tseem ceeb ntawm IoT cov cuab yeej hauv ntiaj teb tam sim no, thiab peb tseem tau txais kev paub zoo dua ntawm kev siv AWS.
Pom zoo:
Chav Huab Cua Hauv Chav Siv Arduino & BME280: 4 Cov Kauj Ruam
Chav Chaw Cua Huab Cua Siv Arduino & BME280: Yav tas los kuv tau qhia lub chaw nres tsheb huab cua yooj yim uas nthuav tawm Qhov Kub thiab Vaum ntawm thaj chaw. Qhov teeb meem nrog nws yog tias nws yuav siv sijhawm hloov kho thiab cov ntaub ntawv tsis raug. Hauv qhov kev qhia no peb yuav ua tus saib xyuas huab cua sab hauv tsev
Yuav Ua Li Cas DIY Ntse Cov Menyuam Qhov Muag Nrog SONOFF Ntse Hloov?: 14 Cov Kauj Ruam
Yuav Ua Li Cas DIY Ntse Cov Menyuam Qhov Muag Nrog SONOFF Ntse Hloov?: Siv Interlock Mode hauv SONOFF ntse hloov los tig koj cov menyuam qhov muag tsis pom kev/qhov muag tsis pom mus rau qhov ntse Koj puas yuav feem ntau ntawm koj pom zoo qhov no yog txoj haujlwm uas koj rub cov menyuam qhov muag/qhov muag tsis pom thaum sawv ntxov thiab rub nws thaum yav tsaus ntuj? Txawm li cas los xij, kuv
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
Ntse Suab Nkauj hauv Chav Dej thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: 7 Kauj Ruam
Ntse Suab Nkauj hauv chav pw thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: Niaj hnub no peb xav muab ob qho piv txwv txog yuav ua li cas koj tuaj yeem siv Raspberry Pi nrog peb Max2Play software rau hauv tsev automation: hauv chav dej thiab chav pw . Ob txoj haujlwm zoo ib yam nyob hauv cov suab paj nruag siab ncaj los ntawm ntau qhov chaw tuaj yeem rub tawm los
WiFi Pab Kom Kub Kub Tswj Ntse Ntse: 4 Cov Kauj Ruam
WiFi Pab Kom Kub Kub Tswj Ntse Ntse Plug: Hauv phau ntawv qhia no peb yuav saib seb yuav tsim WiFi li cas ntsuas kub ntsuas nrog siv ESP8266 yooj yim rau kev nqa hnyav thiab DHT11 ntsuas kub/av noo. Peb tseem yuav siv lub rooj tsav xwm uas kuv tau tsim thiab kuv