Cov txheej txheem:

ET Smart Baby Monitoring System: 10 Kauj Ruam
ET Smart Baby Monitoring System: 10 Kauj Ruam

Video: ET Smart Baby Monitoring System: 10 Kauj Ruam

Video: ET Smart Baby Monitoring System: 10 Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
ET Smart Baby Monitoring System
ET Smart Baby Monitoring System
ET Smart Baby Monitoring System
ET Smart Baby Monitoring System

ET Smart Baby Monitoring System yog lub kaw lus uas muaj lub hom phiaj txhawm rau ntxiv kev yooj yim rau niam txiv lossis tus saib xyuas saib xyuas menyuam. Qhov kev saib xyuas yuav taug qab tus menyuam qhov kub thiab yog tias dhau mus li ib txwm, SMS yuav xa mus rau niam txiv lossis tus saib xyuas lub xov tooj kom ceeb toom rau lawv. Ib qho ntxiv, thaum tus menyuam quaj, lub suab ntsuas yuav pom nws thiab ua suab nrov. Qhov no muaj txiaj ntsig tshwj xeeb thaum hmo ntuj thaum niam txiv lossis tus saib xyuas pw tsaug zog. Lub teeb LED tuaj yeem qhib thiab tua nyob deb ntawm lub vev xaib thiab daim duab ntawm qhov xwm txheej tam sim no kuj tseem tuaj yeem ua nrog nias lub pob ntawm lub vev xaib. Yog li, ET Smart Baby Monitoring System pab taug qab tus menyuam txoj kev noj qab nyob zoo thiab tib lub sijhawm, ua rau muaj kev saib xyuas menyuam mos yooj yim dua.

Rau kev qhia ntxaws ntxaws, saib mus rau hauv daim ntawv pdf muab.

Kauj Ruam 1: Cov Ntsiab Lus ntawm Kauj Ruam los Sib Tham

  • Txheej txheem cej luam ntawm Teeb-up
  • Yuav tsum tau kho vajtse
  • Teeb Meem Saib Xyuas Menyuam Yaus
  • Kuaj Khiav

Kauj Ruam 2: Teeb Kho Vaj Huam Sib Luag Kawg

Teeb Kho Vaj Huam Sib Luag Kawg
Teeb Kho Vaj Huam Sib Luag Kawg
Teeb Kho Vaj Huam Sib Luag Kawg
Teeb Kho Vaj Huam Sib Luag Kawg

Kauj Ruam 3: Yuav Tsum Tau Kho Vajtse

TXH11 (1)

330Ω Cov neeg tiv taus (1)

LED (1) 10kΩ Resistor (1)

Lub suab nrov (1)

PiCam (1)

I2C LCD Screen (1)

Kauj Ruam 4: Teeb tsa Kev Ntsuas Tus Menyuam Ntse (ntu 1)

Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 1)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 1)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 1)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 1)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 1)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 1)

Teeb tsa cov khoom siv Raspberry Pi

Cov duab uas tau qhia yog cov txheej txheem ib kauj ruam ntawm yuav ua li cas kho vajtse teeb tsa zoo li. Tom qab teeb tsa kho vajtse, koj tuaj yeem rub tawm cov lej cim los ntawm qhov txuas hauv qab no.

Qhov chaws txuas txuas: https://github.com/nje0527/IOTAssignment2/tree/master/ assignment2

Kauj Ruam 5: Teeb Kom Ntse Tus Menyuam Saib Xyuas Qhov System (ntu 2)

Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 2)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 2)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 2)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 2)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 2)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 2)

Setup AWS

  1. Ntawm AWS console, nyem rau ntawm Services.
  2. Ntawm koj lub AWS dashboard, ntaus "IoT Core" txhawm rau nkag mus rau IoT Core cov kev pabcuam
  3. Ntawm nplooj ntawv txais tos, nyem rau Pib Pib
  4. Ntawm AWS IOT dashboard, nyem rau Tswj -> Yam
  5. Nyem rau Tsim Ib Leeg Yam
  6. Muab lub npe rau koj Yam, tom qab ntawv nyem Tom ntej hauv qab
  7. Ntawm nplooj ntawv tom ntej, nyem rau ntawm Tsim daim ntawv pov thawj
  8. Yuav muaj plaub qhov txuas rub tawm, rub tawm txhua ntawm lawv
  9. Tsiv koj daim ntawv pov thawj mus rau daim nplaub tshev tshiab thiab hloov npe lawv raws li
  10. Nyem rau Qhib thiab yuav luag tam sim, koj yuav tsum pom "Ua tiav daim ntawv pov thawj ua tiav" thiab Qhib lub pob hloov mus rau "Deactivate"
  11. Nyem rau Txuas nrog txoj cai nyob hauv qab
  12. Nyem rau Tsim txoj cai
  13. Txhais txoj cai lub npe thiab kev tso cai ua ces nyem Tsim
  14. Rov qab mus rau IOT dashboard xaiv Ruaj Ntseg -> Ntawv Pov Thawj ces nyem rau ntawm daim ntawv pov thawj ntawv qhia zaub mov kom txuas txoj cai
  15. Xaiv txoj cai koj nyuam qhuav tsim thiab nyem txuas
  16. Nyem rau daim ntawv pov thawj ntawv qhia zaub mov dua, nyem Txuas yam khoom los txuas koj cov khoom rau koj daim ntawv pov thawj
  17. Ntawm IOT dashboard, rov qab mus rau Tswj -> Yam ces nyem rau ntawm yam uas koj nyuam qhuav tsim
  18. Xaiv Sib cuam tshuam ntawm sab kev taw qhia tom qab ntawv theej thiab muab tshuaj txhuam koj qhov REST API Endpoint rau ntawm daim ntawv sau

Kauj Ruam 6: Teeb tsa Kev Ntsuas Tus Menyuam Ntse (ntu 3)

Txhim kho cov tsev qiv ntawv tsim nyog

Cov kauj ruam no muaj cov tsev qiv ntawv tsim nyog yuav tsum tau teeb tsa txhawm rau ua haujlwm cov haujlwm ntawm koj li Raspberry Pi.

1. Nruab Flask nrog cov lus txib hauv qab no

sudo pip nruab flask

2. Nruab AWS lub tsev qiv ntawv Python nrog cov lus txib hauv qab no

sudo pip nruab AWSIoTPythonSDK

3. Nruab qhov AWS Command ‐ Line Interface Client ntawm koj li Raspberry Pi

sudo pip nruab awscli

4. Nruab Boto, Python library rau AWS ntawm koj li Raspberry Pi

sudo pip nruab boto3

5. Nruab rpi-lcd lub tsev qiv ntawv nrog cov lus txib hauv qab no

sudo pip nruab rpi-lcd

6. Nruab Mosquitto broker thiab cov neeg siv khoom ntawm koj Raspberry Pi nrog cov lus txib hauv qab no

sudo apt-tau nruab mosquitto mosquitto-cov neeg siv khoom

7. AWS Python SDK muaj kev vam khom rau paho-mqtt, yog li xyuas kom nws tau teeb tsa ntawm koj li RPI.

sudo pip nruab paho-mqtt

8. Khiav cov lus txib hauv qab no ntawm koj li Raspberry Pi txhawm rau teeb tsa AWS Cov neeg siv kab lus kab ntawm koj li Raspberry Pi

sudo pip nruab awscli-txhim kho-neeg siv

Kauj Ruam 7: Teeb tsa Kev Ntsuas Tus Menyuam Ntse (ntu 4)

SMS

SMS yuav ceeb toom rau niam txiv yog tias qhov kub tau tshaj qhov qub.

DynamoDB thiab S3

DynamoDB khw muag khoom kub thiab nws lub sijhawm. S3 khaws cov duab los ntawm PiCam.

AWS

Peb yuav siv AWS MQTT txhawm rau sau npe thiab tshaj tawm rau qhov ntsuas kub.

Kauj Ruam 8: Teeb tsa Kev Ntsuas Tus Menyuam Ntse (ntu 5)

Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 5)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 5)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 5)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 5)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 5)
Teeb Meem Kev Saib Xyuas Menyuam Yaus (ib feem 5)

Cov npe zoo li qub

img ua

tus.png

lub koob yees duab.png

lb.png

bootstrap.min.css

bootstrap.min.js

qauv

txog.html

dashboard.html

index.html

ledcontrol.html

pic.html

pin.html

aws_pubsub.py

boto_s3_1.py

mqttpublish_temp.py

mqttsubscribe_temp.py

neeg rau zaub mov.py

soundensor.py

Kauj Ruam 9: Teeb tsa Kev Ntsuas Tus Menyuam Ntse (ntu 6)

Kuaj Khiav

Xyuas kom koj nyob hauv cov npe uas server.py nyob.

Txhawm rau sim lub vev xaib, khiav cov lus txib hauv qab no:

sudo python server.py

Txhawm rau sim mqtt code, khiav cov lus txib hauv qab no:

mosquitto (ua tiav ntawm raspberry pi 1)

sudo python mqttpublish_temp.py (ua tiav ntawm raspberry pi 1) sudo python mqttsubscribe_temp.py (ua tiav ntawm raspberry pi 2)

Txhawm rau upload rau DynamoDB, khiav cov lus txib hauv qab no:

sudo python aws_pubsub.py

Txhawm rau khiav lub suab sensor, khiav cov lus txib hauv qab no:

sudo python sound_sensor.py

Cov lej txuas txuas:

Kauj ruam 10: Ua tiav

Ua tsaug rau koj nyeem!

Peb vam tias qhov kev qhia no tau pab rau koj thiab muaj kev lom zem coding!

Pom zoo: