Cov txheej txheem:

AirCitizen - Saib Xyuas Huab Cua Zoo: 11 Kauj Ruam (nrog Duab)
AirCitizen - Saib Xyuas Huab Cua Zoo: 11 Kauj Ruam (nrog Duab)

Video: AirCitizen - Saib Xyuas Huab Cua Zoo: 11 Kauj Ruam (nrog Duab)

Video: AirCitizen - Saib Xyuas Huab Cua Zoo: 11 Kauj Ruam (nrog Duab)
Video: AirCitizen 2024, Kaum ib hlis
Anonim
AirCitizen - Saib Xyuas Huab Cua Zoo
AirCitizen - Saib Xyuas Huab Cua Zoo

Nyob zoo sawv daws

Hnub no, peb yuav qhia koj li cas tsim dua peb txoj haujlwm: AirCitizen los ntawm Pab Pawg AirCitizenPolytech!

--

Tuaj los ntawm 'OpenAir / Koj lub cua zoo li cas?' Cov haujlwm, AirCitizen txoj haujlwm muaj lub hom phiaj los pab cov pej xeem los tshuaj xyuas qhov zoo ntawm lawv ib puag ncig tam sim thiab tshwj xeeb yog huab cua uas lawv ua pa, los ntawm muab lawv los ntawm:

Tsim

Paub txog "Fablabs" (lub chaw tsim khoom siv digital) cov chaw nqa khoom ntawm kev ntsuas ib puag ncig suav nrog ntau yam ntsuas tus nqi qis (piv txwv li ntsuas kub, av noo, siab, NOx roj, ozone lossis hais txog PM10 thiab PM2.5).

Ntsuas

Ua hauv qhov ntsuas ntsuas txhawm rau hais txog qhov txawv txav ntawm qhov sib txawv ntawm ib puag ncig ib puag ncig: ntawm ib sab, thaum lub sijhawm taug kev nrog kev txhawb nqa ntawm cov kws paub txog huab cua-climatologists thiab, ntawm qhov tod tes, hauv ntau qhov chaw uas nthuav tawm ntau haiv neeg ib puag ncig.

Qhia tawm

Pab txhawb kev txhim kho kev paub los ntawm kev faib cov kev ntsuas no hauv ib puag ncig cov ntaub ntawv thiab yog li ua kom muaj kev qhia online ntawm huab cua muaj kuab paug.

--

Lub tswv yim yog los tsim lub chaw nres tsheb uas muaj tus kheej uas tuaj yeem sau cov ntaub ntawv ib puag ncig thiab xa lawv nrog SigFox network mus rau lub dashboard.

Yog li ntawm ib sab, peb yuav qhia koj yuav tsim cov khoom kho vajtse li cas thiab ntawm qhov tod tes yuav ua li cas thiaj ua tau cov software.

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Nov yog cov khoom siv uas peb txiav txim siab siv los tsim lub chaw nres tsheb:

-STM32 NUCLEO -F303K8 -> Yog xav paub ntxiv

-HPMA115S0 -XXX (Cov paib pom PM2.5 & PM10) -> Xav paub ntau ntxiv

- SHT11 lossis SHT10 lossis STH15 lossis DHT11 (Kub & Txheeb Ze Vaum) -> Yog xav paub ntxiv

- MICS2714 (NO2 sensor, Nitrogen dioxide sensor) -> Xav paub ntau ntxiv

- Hnub ci vaj huam sib luag x2 (2W) -> Yog xav paub ntau ntxiv

- Roj teeb LiPo 3, 7 V 1050 mAh -> Xav paub ntau ntxiv

- Tus Tswj LiPo Rider Pro (106990008) -> Xav paub ntau ntxiv

- BreakOut SigFox BRKWS01 + 1 daim ntawv tso cai -> Xav paub ntau ntxiv

- 7 tus tiv thaiv (86, 6; 820; 1K; 1K; 4, 7K; 10K; 20K)

- 1 lub tshuab hluav taws xob (100nF)

- 1 transistor (2N222).

! ! ! Koj yuav tsum tshem SB16 thiab SB18 ntawm stm32 nucleo board los tiv thaiv kev cuam tshuam ntawm HPMA thiab SHT11!

Yeej, qhov no yog li cas koj yuav tsum txuas cov khoom siv:

  1. Weld, nyob rau hauv parallel, lub hnub ci vaj huam sib luag.
  2. Txuas lawv rau LiPo Rider Pro thiab txuas lub roj teeb rau LiPo Rider Pro.
  3. Zoo li daim duab saum toj no, txuas txhua lub ntsiab rau STM32. Txuas tsuas yog ib qho ntsuas kub thiab av noo tsis yog 2! Tsis txhob hnov qab resistors, capacitor thiab transistor.
  4. Thaum kawg, txuas STM32 rau LiPo Rider Pro nrog usb cable.

Cov kauj ruam tom ntej yog lwm txoj hauv kev rau kab no.

Kauj Ruam 2: Kho vajtse - PCB

Kho vajtse - PCB
Kho vajtse - PCB

Peb txiav txim siab siv Autodesk Dav dawb hau los tsim cov ntawv luam tawm Circuit Board (PCB).

Koj tuaj yeem xaiv txuas mus rau DHT lossis SHT, peb tau xaiv los tsim ob tus ntiv tes rau ob lub ntsuas no txhawm rau txhawm rau hloov lub ntsuas yog xav tau.

Hauv qhov txuas, koj tuaj yeem rub cov ntaub ntawv Eagle conception kom koj tuaj yeem yooj yim ua nws ntawm koj tus kheej.

Peb siv 5V tus pin ntawm stm32 los muab cov cuab yeej siv. Hauv qhov teeb tsa no, tsuas yog stm32 core tau siv.

Yog li peb tuaj yeem siv hom pw tsaug zog zoo ntawm MCU muab kev pw tsaug zog tsawg. Hauv qhov xwm txheej tos, tag nrho kev pw tsaug zog tam sim no poob qis dua XXµA.

Kauj Ruam 3: Txoj Cai LPWAN: Sigfox Kev Sib Txuas Lus

Txoj Cai LPWAN: Kev Sib Txuas Sigfox
Txoj Cai LPWAN: Kev Sib Txuas Sigfox

Sigfox yog LPWAN cov txheej txheem tsim los ntawm tuam txhab xov tooj cua Fabkis - SIGFOX

Nws ua rau cov cuab yeej siv deb los txuas nrog siv cov tshuab nqaim nqaim (UNB) thev naus laus zis. Feem ntau ntawm cov no yuav xav tau tsuas yog siv bandwidth tsawg los hloov cov ntaub ntawv me me. Cov tes hauj lwm tsuas yog tuaj yeem ua haujlwm kwv yees li 12 bytes ib kab lus thiab tib lub sijhawm tsis pub ntau tshaj 140 cov lus hauv ib lub cuab yeej ib hnub.

Rau ntau ntawm IOT daim ntawv thov, cov xov tooj ntawm tes ib txwm muaj teeb meem dhau los tso cai rau lub zog ua haujlwm qis heev thiab raug nqi ntau kom ua tau rau ntau tus nqi qis me me … SIGFOX network thiab thev naus laus zis yog tsom mus rau tus nqi qis rau tshuab daim ntawv thov thaj chaw uas xav tau kev pab dav dav.

Rau AirCitizen, hom ntawv ntawm cov ntaub ntawv pom tau yooj yim thiab cov ntaub ntawv raug siv Sigfox rau kev txhais cov ntaub ntawv pom los ntawm cov ntsuas mus rau peb lub platform IOT - ThingSpeak.

Peb yuav qhia kev siv Sigfox hauv cov kauj ruam hauv qab no.

Kauj ruam 4: Khoos phis tawj software

Software Kho
Software Kho
Software Kho
Software Kho

Ua raws li qhov ua tiav ntawm peb lub Circuit Court, cia peb txav mus rau kev txhim kho ntawm peb STM32 F303K8 microcontroller.

Txhawm rau kom yooj yim dua, koj tuaj yeem xaiv rau program hauv Arduino.

Kauj Ruam 1: Yog tias koj tseem tsis tau teeb tsa Arduino IDE, rub tawm thiab teeb tsa nws los ntawm qhov txuas no. Xyuas kom koj xaiv koj lub operating system raug.

Qhov txuas: Rub tawm Arduino

Kauj Ruam 2: Tom Qab Txhim Kho Arduino IDE qhib thiab rub cov pob khoom xav tau rau STM32 pawg thawj coj. Qhov no tuaj yeem ua tiav los ntawm xaiv Cov Ntawv -> Nyiam.

Kauj Ruam 3: Nyem rau ntawm Preferences yuav qhib rau hauv qab no qhia cov lus sib tham. Hauv qhov Boards Manager URL ntxiv lub thawv ntawv muab lo rau hauv qab no txuas:

github.com/stm32duino/BoardManagerFiles/ra…

thiab nias OK.

Kauj ruam 4: Tam sim no mus rau Tool -> Boards -> Board Manager. Qhov no yuav qhib Lub Rooj Tswjhwm Saib lub rooj sib tham, tshawb rau "STM32 Cores" thiab teeb tsa pob uas tshwm (STMicrolectronics pob).

Kauj Ruam 5: Tom qab pob khoom, kev teeb tsa tiav. Mus rau Cov Cuab Yeej thiab nqes mus nrhiav "Nucleo-32 series". Tom qab ntawd xyuas kom tseeb tias qhov sib txawv yog "Nucleo F303K8" thiab hloov txoj kev xa mus rau "STLink".

Kauj Ruam 6: Tam sim no, txuas koj lub rooj tsav xwm rau lub khoos phis tawj thiab txheeb xyuas qhov twg COM chaw nres nkoj lub rooj sib tham txuas nrog siv tus thawj tswj ntaus ntawv. Tom qab ntawd, xaiv tib tus lej chaw nyob hauv Cov Cuab Yeej-> Chaw Nres Nkoj.

Tam sim no koj tau npaj los npaj koj li STM32 F303K8 nrog Arduino!

Kauj Ruam 5: Program Koj STM32

Thaum kev teeb tsa tiav, koj yuav tsum tau teeb tsa koj lub micro tswj kom sau thiab xa cov ntaub ntawv.

Kauj Ruam 1: Txheeb xyuas qhov cuam tshuam ntawm I/O thiab ntsuas lub sijhawm nyob hauv "Txhais" ib feem ntawm txoj cai.

Kauj Ruam 2: Tshaj tawm cov cai saum toj no rau stm32, qhib cov ntawv txuas thiab rov pib dua lub cuab yeej. "AT" hais kom ua yuav tsum tshwm ntawm qhov screen, yog tsis yog, kos I/O tshaj tawm.

Koj tuaj yeem muaj lub tswv yim ntawm qhov tseeb ntawm koj cov ntaub ntawv los ntawm kev sab laj cov txheej txheem kev cai lij choj Fab Kis hauv qhov txuas.

Cia peb txav mus rau qhov teeb tsa ntawm lub dashboard.

Kauj Ruam 6: ThingSpeak - 1

ThingSpeak - 1
ThingSpeak - 1
ThingSpeak - 1
ThingSpeak - 1

Ua ntej teeb tsa yuav ua li cas hloov pauv cov ntaub ntawv los ntawm peb lub chaw nres tsheb mus rau ThingSpeak lub platform koj yuav tsum tsim tus ThingSpeak tus account.

Sau npe: ThingSpeak Lub Vev Xaib

Kauj ruam 1: Tam sim no nyem rau ntawm "Tshiab Channel". Qhov no yuav qhib ib daim ntawv. Sau lub npe thiab cov lus piav qhia (yog xav tau).

Tsim 5 daim teb:

  • Teb 1: pm2, 5
  • Teb 2: pm10
  • Teb 3: kub
  • Teb 4: av noo
  • Teb 5: NO2

Cov npe no yuav tsis yog lub npe ntawm peb kab kos.

Yog koj xav tau ib qho piv txwv, Saib daim duab saum toj no.

Koj tsis tas yuav ua tiav cov teb ntxiv tab sis nws tuaj yeem nthuav yog tias koj nkag mus rau qhov chaw.

Scroll cia thiab "Txuag Channel".

Kauj Ruam 2: AirCitizen Chaw Nres Tsheb Channel.

Tam sim no, koj tuaj yeem pom nplooj ntawv nrog 5 kab kos. Los ntawm txhaj rau ntawm tus cwj mem cim koj tuaj yeem hloov cov khoom ntawm daim duab.

Qhov tshwm sim yog daim duab thib ob saum toj no.

Nyob rau theem no, cov duab no yog tus kheej. Koj yuav tuaj yeem tshaj tawm lawv rau pej xeem thaum cov ntaub ntawv tau txais.

Kauj Ruam 3: Tom qab teeb tsa koj cov duab. Mus rau "API Keys" tab. Saib API qhov kev thov ib feem thiab ntau dua qhov tseeb ua ntej, "Hloov kho Channel pub". Nco ntsoov API KEY.

Koj yuav muaj qee yam zoo li no:

Tau txais

Tam sim no koj tuaj yeem mus rau tshooj tom ntej.

Kauj Ruam 7: Kev Sib Txuas Ntawm Sigfox Module thiab ThingSpeak Platform

Kev Sib Txuas Lus Ntawm Sigfox Module thiab ThingSpeak Platform
Kev Sib Txuas Lus Ntawm Sigfox Module thiab ThingSpeak Platform
Kev Sib Txuas Lus Ntawm Sigfox Module thiab ThingSpeak Platform
Kev Sib Txuas Lus Ntawm Sigfox Module thiab ThingSpeak Platform

Txog koj cov ntaub ntawv, nco ntsoov tias txhua daim npav Sigfox muaj tus lej tshwj xeeb sau rau ntawm daim npav thiab tus lej PAC.

Txhawm rau tau txais cov ntaub ntawv ntawm ThingSpeak, koj yuav tsum xa lawv mus.

Cov ntaub ntawv mus los ntawm chaw nres tsheb mus rau Sigfox backend thiab yuav raug xa mus rau ThingSpeak server.

Saib thawj daim duab saum toj no rau kev piav qhia.

Kauj Ruam 1: Peb yuav tsis piav qhia yuav sau npe li cas hauv Sigfox vim muaj ntau yam qhia hauv internet.

Mus rau ntawm Sigfox Backend.

Nyem rau ntawm "Ntaus Ntaus", tom qab ntawd nyem rau kab ntawm koj cov khoom siv thiab xaiv "Kho".

Tam sim no, mus rau hauv ntu "Callbacks" thiab nyem rau ntawm "Tshiab", "Custom Callback".

Kauj ruam 2:

Koj yuav tsum nyob ntawm nplooj ntawv teeb tsa:

Hom: DATA thiab UPLINK

Channel: URL

Xa theej tawm: tsis muaj

Kev teeb tsa tus kheej them nyiaj: teeb tsa cov ntaub ntawv qhov chaw thiab txiav txim siab cov ntaub ntawv. Koj yuav tsum sau zoo li:

VarName:: Hom: NumberOfBits

Hauv qhov no, peb muaj 5 qhov tseem ceeb hu ua pm25, pm10, qhov kub thiab txias, thiab NO2.

pm 25:: int: 16 pm10:: int: 16 kub:: int: 8 humidity:: uint: 8 NO2:: uint: 8

Tus qauv url: Nov yog cov syntax. Siv tus lej pom yav dhau los API thiab ntxig nws tom qab "api_key ="

api.thingspeak.com/update?api_key=XXXXXXXXXXXXXX&&1

Siv Txoj Cai HTTP: Tau Txais

Xa SNI: ON

Headers: Tsis muaj

Nyem tam sim no ntawm "Ok".

Koj hu rov qab rau ThingSpeak API tam sim no tau teeb tsa! (Kev sawv cev ntawm daim duab thib ob saum toj no).

Kauj ruam 8: ThingSpeak - 2

ThingSpeak - 2
ThingSpeak - 2

Tam sim no, koj tuaj yeem xaiv ntau dua hauv kev hloov kho qhov tsawg kawg thiab qhov siab tshaj plaws ntawm cov kab.

Yog tias tsim nyog, nyem rau ntawm tus cwj mem logo ntawm sab xis saum toj ntawm kab ntawv.

Raug qhov tseem ceeb:

PM 2, 5 & PM 10 = ug/m^3

Kub = ° C

Vaum = %

Nitrogen Dioxide = ppm

Koj yuav tsum muaj qee yam zoo li ob daim duab saum toj no.

Koj kuj tseem tuaj yeem ntxiv qee lwm cov cuab yeej xws li "Zaub Zaub" lossis "Gauge".

Thaum kawg, kom ua rau koj cov channel rau pej xeem, mus rau ntawm "Sib Koom" tab thiab xaiv "Qhia cov channel saib nrog txhua tus".

Kauj Ruam 9: Ntxiv - ThingTweet thiab React

Bonus - ThingTweet thiab React
Bonus - ThingTweet thiab React
Bonus - ThingTweet thiab React
Bonus - ThingTweet thiab React
Bonus - ThingTweet thiab React
Bonus - ThingTweet thiab React

Yeem: Tweet yog tias tau ntsib qhov xwm txheej!

Kauj ruam 1: Tsim tus account twitter lossis siv koj tus kheej tus lej twitter.

Sau Npe - Twitter

Kauj ruam 2: Hauv Thingspeak, mus rau hauv "Apps" ces nyem rau "ThingTweet".

Txuas koj tus lej twitter los ntawm txhaj rau "Txuas Twitter Account".

Kauj ruam 3: Tam sim no, rov qab rau hauv "Apps" ces nyem rau "React".

Tsim qhov React tshiab los ntawm txhaj rau "New React".

Piv txwv li:

React Name: Kub tshaj 15 ° C

Hom Mob: Numeric

Zaus Zaus: O n cov ntaub ntawv ntxig

Mob, yog channel:

Teb: 3 (kub)

Kos npe: ntau dua

Tus nqi: 15

Kev Ua: ThingTweet

Tom qab ntawd tweet: Oh! Qhov kub siab tshaj 15 ° C

siv tus lej Twitter:

Kev Xaiv: Khiav ua txhua lub sijhawm tau ntsib

Tom qab ntawv nyem rau "Save React".

Tam sim no koj yuav tweet yog tias qhov xwm txheej tau ntsib thiab ntau lwm yam xwm txheej tuaj yeem teeb tsa zoo li nyob ntawm qib PM10.

Kauj ruam 10: Nws yog koj li tam sim no

Thaum kawg, koj tam sim no muaj tag nrho cov ntsiab lus los tsim dua koj tus kheej Chaw AirCitizen!

Video: Koj tuaj yeem saib daim vis dis aus uas peb nthuav qhia peb txoj haujlwm.

Peb Lub Sijhawm Hais Lus: AirCitizenPolytech Chaw Nres Tsheb

--

Ua tsaug rau koj saib!

Pab neeg AirCitizen Polytech

Kauj Ruam 11: Kev Siv & Phau Ntawv Teev Npe

https://www.sigfox.com/en

Pom zoo: