Cov txheej txheem:

Los nag Kev Ceeb Toom: 4 Kauj Ruam
Los nag Kev Ceeb Toom: 4 Kauj Ruam

Video: Los nag Kev Ceeb Toom: 4 Kauj Ruam

Video: Los nag Kev Ceeb Toom: 4 Kauj Ruam
Video: Tseem Ev Lub Kawm - Koos Loos 2024, Kaum ib hlis
Anonim
Los nag ceeb toom System
Los nag ceeb toom System
Los nag ceeb toom System
Los nag ceeb toom System

Qhov no yog Kev Ceeb Toom Los nag, lub tswb thiab LED yuav qhib thiab ceeb toom rau tus neeg siv tias nws yuav los nag sai sai, cov neeg tuaj saib lub hom phiaj rau daim ntawv thov no yog rau cov neeg uas tso lawv cov khaub ncaws kom qhuav hauv tsev paub yog li tuaj yeem khaws lawv cov khaub ncaws yam tsis tau ntub lawv ua ntej. (Yog cov av noo> 70 buzzer yuav nrov nrov, yog lub teeb pom kev <300 LED teeb)

Daim ntawv thov no siv lub vev xaib sib koom ua ke siv IBM's liab liab uas tso cai rau tus neeg siv los tswj lub xeev lub sijhawm tiag tiag ntawm Buzzer & LED, thiab saib lub sijhawm tiag tiag lub xeev ntawm DHT11 & LDR sensor thiab tseem keeb kwm yav dhau los ntawm DHT11 & LDR sensor.

Peb tab tom siv DynamoDB los khaws peb LDR lub teeb pom kev thiab tseem peb DHT11 cov av noo thiab qhov kub thiab txias. Daim ntawv thov no siv AWS IoT tus pabcuam kev pabcuam uas ua rau peb daim ntawv thov xa thiab tau txais cov lus.

Kauj Ruam 1: Cov Khoom & Kev Npaj

Cheebtsam Siv:

1 x Raspberry Pi. (16GB microSD)

1 x DHT11.

1 x Lub Teeb Ntsuas Tus Kheej (LDR).

1 x Analog-to-Digital Converter (MCP3008 ADC)

1 x 220 ohms resistor.

3 x 10k ohms resistor.

1 x Buzzer.

1 x LED.

1 x Khawm.

Yuav siv Node-RED nrog MQTT broker ntawm koj li Raspberry Pi los ua tus lej thov

Yuav tsum muaj IBM account thiab AWS account

Kauj ruam 2: Teeb Kho Vajtse

Teeb Kho Vajtse
Teeb Kho Vajtse
Teeb Kho Vajtse
Teeb Kho Vajtse

Ua raws cov kauj ruam txhawm rau teeb tsa koj lub khoos phis tawj hauv daim ntawv qhia zaub mov. Koj tuaj yeem ua raws daim duab fritzing.

1. Teeb LDR ua ntej

2. Teeb DHT11

3. Teeb Khawm

4. Teeb Buzzer

5. Teeb LED

Kauj Ruam 3: Teeb IBM thiab AWS

Daim ntawv thov no xav kom koj muaj tus as khauj AWS, tus account qhia paub tseem tuaj yeem siv tau.

For AWS

Lub taub hau rau koj lub AWS console thiab mus rau AWS IoT kev pabcuam (IoT Core) thiab ua raws cov theem no (hla qib 1, 6 & 11 yog tias koj tsis xav khaws cov ntaub ntawv hauv DynamoDB):

1. Lub taub hau mus rau DynamoDB los tsim 3 cov ntxhuav nrog xaiv qhov tseem ceeb timestamp thiab tus yuam sij thawj (teeb, kub, av noo)

2. Tsim ib yam nkaus xwb

3. Tsim Daim Ntawv Pov Thawj Ruaj Ntseg (Rub tawm txhua daim ntawv pov thawj xav tau tom qab)

4. Tsim Txoj Cai Ruaj Ntseg

5. Txuas Txoj Cai Ruaj Ntseg thiab Yam Khoom rau koj Daim Ntawv Pov Thawj Ruaj Ntseg

6. Tsim Cov Cai kom ntxaws cov lus rau DynamoDB cov ntxhuav raws li Cov Ntsiab Lus sensor/lub teeb, lub ntsuas cua/av noo, ntsuas/ntsuas kub. (Koj yuav tsum tsim lub luag haujlwm AWS thiab txoj cai txhawm rau nkag mus rau lub hauv paus)

7. Mus rau koj tus Raspberry Pi, tsim ib daim nplaub tshev tso rau txhua daim ntawv pov thawj AWS daim ntawv pov thawj hauv nws thiab tsim cov ntaub ntawv nab npawb, luam thiab muab qhov no tso rau hauv cov ntaub ntawv nab.

drive.google.com/open?id=1vqiqLjGRohbLfxU_…

Rau IBM

8. Teeb IBM Watson IoT app (https://console.bluemix.net/catalog/starters/internet-of-things-platform-starter). Nco tseg qhov url ntawm koj lub vev xaib.

9. Teeb tsa Gateway Device thiab Hom Ntaus Ntawv (Txheeb xyuas qhov cim cim tseeb, ntaus cim thiab ntaus tom qab koj tsim qhov no)

10. Nruab IBM Node-RED hauv raspberry pi

11. Install aws dynamodb node in IBM Node-RED (node-red-contrib-aws)

Kauj Ruam 4: Teeb Node-RED hauv Koj Raspberry Pi thiab IBM Node-RED

Teeb Node-RED hauv Koj Raspberry Pi thiab IBM Node-RED
Teeb Node-RED hauv Koj Raspberry Pi thiab IBM Node-RED
Teeb Node-RED hauv Koj Raspberry Pi thiab IBM Node-RED
Teeb Node-RED hauv Koj Raspberry Pi thiab IBM Node-RED
Teeb Node-RED hauv Koj Raspberry Pi thiab IBM Node-RED
Teeb Node-RED hauv Koj Raspberry Pi thiab IBM Node-RED
Teeb Node-RED hauv Koj Raspberry Pi thiab IBM Node-RED
Teeb Node-RED hauv Koj Raspberry Pi thiab IBM Node-RED

Hauv koj tus kheej Raspberry Pi's Node-RED ntshuam daim ntawv no:

Koj yuav tsum hloov MQTT, Watson IoT Node thiab DynamoDB ntawm koj tus kheej daim ntawv pov thawj

drive.google.com/open?id=1-AA3_oxGgUdoNI1G…

Hauv koj li IBM Node-RED ntshuam daim ntawv no: https://drive.google.com/open? Id = 1-AA3_oxGgUdoNI1G …

Koj tuaj yeem xa tawm thiab lub dashboard rau IBM yuav tsum zoo li cov duab pom

Pom zoo: