Cov txheej txheem:

Photon Air Sensor - Saib Xyuas PM Qib: 3 Kauj Ruam
Photon Air Sensor - Saib Xyuas PM Qib: 3 Kauj Ruam

Video: Photon Air Sensor - Saib Xyuas PM Qib: 3 Kauj Ruam

Video: Photon Air Sensor - Saib Xyuas PM Qib: 3 Kauj Ruam
Video: Particle Photon AR Temperature Sensor on Hot Mug Showcase | Augmented Reality Apps | IoT 2024, Kaum ib hlis
Anonim
Photon Air Sensor - Saib Xyuas Qib PM
Photon Air Sensor - Saib Xyuas Qib PM

Kuv hloov kho kuv lub qub photon cua sensor kom siv lub Plantower PMS5003 huab cua tshiab. Nws hloov tshiab sai dua, ruaj khov dua, thiab muab nyeem rau PM1, PM2.5, PM 10. Kuv kuj suav nrog qhov ntsuas kub thiab av noo nrog DHT22. Koj tsis tas yuav suav nrog yog tias qhov ntawd tsis txaus siab rau koj. Kuv sim suav nrog ntau txoj hauv kev hauv cov cai. Ntau qhov kev tshaj tawm, kev ua haujlwm pw tsaug zog, cov ntawv tso tawm. Nws suav nrog lub teeb coj kom koj tuaj yeem qhia PM2.5 qib ib nrais muag.

Kauj Ruam 1: Daim Kab Xaim

Daim duab thaiv
Daim duab thaiv

Koj yuav xav tau DHT 22 qhov ntsuas kub thiab av noo. Yog tias koj tsis muaj lossis tsis xav siv ib qho koj tuaj yeem tso nws tawm thiab lub ntsuas cua yuav tsum ua haujlwm zoo. DHT22 xav tau 10k resistor. Koj kuj tseem yuav xav tau RGB ib qho anode LED rau lub teeb pom kev. Ib yam li DHT22 yog tias koj tsis txaus siab kom muaj lub teeb pom kev zoo koj tuaj yeem tso nws tawm.

Rau cov tub ntxhais ntawm lub ntsuas cua koj yuav xav tau Particle Photon thiab cog ntoo PMS5003 huab cua ntsuas. Kuv yuav sim thiab nrhiav lub sensor uas los nrog cov hlua txuas txuas.

Kauj ruam 2: Code

Cov cai tau luam tawm ntawm

github.com/HammillB/plantower

Txoj cai suav nrog kev tshaj tawm rau Ubidots, dweet, thiab cov ntsiab lus me me. Nws tseem suav nrog cov cai kom tso lub ntsuas kom pw ntawm kev nyeem ntawv yog tias koj tsuas yog xav nyeem txhua ob peb feeb.

Kauj ruam 3: Nyeem ntawv

Qhov taw qhia lub teeb hloov xim raws li PM2.5 nyeem ntawv. Ntsuab yog qhov zoo. Koj tuaj yeem nyeem cov cai kom pom cov xim sib txawv.

Pom zoo: