Cov txheej txheem:

Txuas Txuas Kev Taw Qhia: 6 Kauj Ruam
Txuas Txuas Kev Taw Qhia: 6 Kauj Ruam

Video: Txuas Txuas Kev Taw Qhia: 6 Kauj Ruam

Video: Txuas Txuas Kev Taw Qhia: 6 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Txuas Txuas Kev Taw Qhia
Txuas Txuas Kev Taw Qhia

Txoj haujlwm kev kawm no, txuas txuas txoj hlua tes, tau paub los ntawm plaub tus tub ntxhais kawm los ntawm tsev kawm ntawv engineering Polytech Paris-UPMC: Sébastien Potet, Pauline Pham, Kevin Antunes thiab Boris Bras.

Peb tes num yog dab tsi?

Nyob rau ib semester, peb yuav tsum tsim cov hlua tes txuas uas yuav siv los ntawm tus khiav. Nws txoj kev sib tw yuav raug taw qhia los ntawm ntau lub ntsiab lus uas nws yuav cim npe, thiab qhov no yuav tso cai rau sau nws cov chav kawm. Cov ntaub ntawv no yuav raug khaws cia ntawm huab nyob ntawm lub sijhawm.

Cov khoom no tuaj yeem muab qhov ntsuas kub, av noo, thiab kev taw qhia. Ntxiv mus, peb muaj peb lub khawm suav nrog ib qho uas xa GPS txoj haujlwm yog tias tus neeg khiav dej num muaj teeb meem (SOS khawm), yog vim li cas peb thiaj xav tau nws lub sijhawm tiag tiag. Qhov thib ob tso cai rau tag thiab zaum kawg los tua txoj hlua tes vim peb xav tau cov khoom lag luam qis.

Peb muaj bugdet ntawm 120 €. Txhawm rau kom paub txog txoj hlua tes taw sib txuas, ua raws li peb qhia!

Kauj Ruam 1: Cov Khoom Xav Tau

Cov Khoom Xav Tau
Cov Khoom Xav Tau
Cov Khoom Xav Tau
Cov Khoom Xav Tau
Cov Khoom Xav Tau
Cov Khoom Xav Tau

Cov npe ntawm cov khoom siv:

- STM32L432KC-Nucleo Ultra Tsawg Zog

- SigFox module TD1208

- RFID nyeem ntawv 125 kHz

- Kub/av noo sensor HTU21D

- Accelerometer module 3-axis ADXL345

Compass module 3-axes HMC5883L

- Screen OLED ADA938

- GPS module Grove 31275

- Roj teeb 1.5 V LR6

- Kev tswj nruj ntawm Pololu 3.3V U1V11F3

- Qee cov nyees khawm tswj

Kauj Ruam 2: Tshooj Lus Qhia

Qhov Kev Kawm Txuj Ci
Qhov Kev Kawm Txuj Ci

Ua ntej tshaj plaws, peb tau ua haujlwm txhua qhov khoom siv nrog mbed tus tsim tawm site. Txog qhov ntawd, peb tau siv lub microcontroler STM32L476RG-Nucleo uas yog siv tsawg.

Lub vijtsam, ntsuas kub/av noo, thiab lub ntsuas hluav taws xob ua haujlwm hauv I²C kev sib txuas lus. Tus nyeem ntawv RFID thiab tus ntsuas kev ua haujlwm ua haujlwm hauv kev sib txuas lus. Rau txhua feem, koj yuav tsum ntxiv lawv tus kheej lub tsev qiv ntawv.

Txog qhov ntsuas kub/av noo, lub ntsuas cua thiab lub ntsuas cua, koj yuav tsum tau hu lub luag haujlwm ntawm lawv lub tsev qiv ntawv kom tau txais cov ntaub ntawv.

Tus nyeem ntawv RFID ua haujlwm ntawm kev sib txuas lus, koj yuav tsum siv lub luag haujlwm "getc ()" vim tias cov ntawv xa rov qab cov ntaub ntawv hauv char.

Txhua tus lej muaj raws li cov ntawv, tshwj tsis yog cov lej ntawm lub vijtsam OLED.

Kauj Ruam 3: Kev Sib Ntsib Hauv Tshuab

Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab

Tom qab ua haujlwm txhua lub Cheebtsam, peb nqa daim ntawv labdec thiab peb txuas lawv rau ntawm STM32L432KC-Nucleo. Ua raws daim kab xev hauv kab ntawv txuas los sib sau ua ke tag nrho cov khoom, lossis txhua tus lej PIN tau ntxaws ntxaws ntawm cov lej sib dhos.

Peb ntxiv peb lub nyees khawm nrog peb 10 Kilo ohms resitances: ib qho xa GPS txoj haujlwm thaum muaj kev phom sij, ib qho los qhib/hloov tawm, thiab ib qho kawg tso cai rau tus neeg sib tw khiav lub ntsiab lus. Peb tau ntxiv lub suab nrov thaum koj nias lub pob SOS.

Cov ntaub ntawv "braceletOrientation" hauv qhov txuas yog peb txoj haujlwm ntawm Fritzing. Nov yog cov ntaub ntawv luv ntawm peb cov khoom siv thiab peb cov hlua ntawm labdec ntxiv rau ntawm PCB. Tsis tas li ntawd, peb tau ntxiv cov cai sib dhos ntawm txhua yam khoom siv.

Kauj Ruam 4: Tau Txais Cov Ntaub Ntawv

Kev Tau Txais Cov Ntaub Ntawv
Kev Tau Txais Cov Ntaub Ntawv
Kev Tau Txais Cov Ntaub Ntawv
Kev Tau Txais Cov Ntaub Ntawv
Kev Tau Txais Cov Ntaub Ntawv
Kev Tau Txais Cov Ntaub Ntawv

Actoboard

Actoboard yog lub cuab yeej siv raws lub dashboard. Nws qhia tag nrho cov ntaub ntawv xa los ntawm Sigfox Module. Nws yuav tom qab ntawd xa ntawm URL cov ntaub ntawv no rau nodered thiaj li yuav raug tso rau hauv lub database.

Xa cov ntaub ntawv:

Txhawm rau xa cov ntaub ntawv ntawm koj tus lej, ua ntej koj yuav tsum tshaj tawm tus lej PIN (Tx, Rx) ntawm tus qauv Sigfox (koj tuaj yeem pom nws hauv peb tus lej). Tom qab ntawd, ua tsaug rau cov lus txib no: "sigfox.printf (" AT $ SF =%02X%02X%02X%02X%02X%02X%02X / r / n ", lat_deg, long_deg, lat_10s, long_10s, lat_100s, long_100s);", qhov piv txwv no xa cov ntaub ntawv ntawm GPS mus rau Actoboard.

Tau txais cov ntaub ntawv:

Tom qab koj teeb tsa koj cov ntaub ntawv cov ntaub ntawv cuam tshuam nrog koj Sigfox module, koj yuav tsum teeb tsa koj cov ntaub ntawv hom ntawv kom tau txais cov ntaub ntawv los ntawm koj cov cai. Rau tib qho piv txwv ua ntej (GPS) koj yuav tsum teeb cov ntaub ntawv hom ntawv zoo li ntawd: "lat_deg:: uint: 8 long_deg:: uint: 8 lat_10s:: uint: 8 long_10s:: uint: 8 lat_100s:: uint: 8 ntev_100s:: uint: 8 ".

Ceev faj nrog hom thiab tus naj npawb ntawm cov khoom, koj yuav tsum muaj qhov ntev tib yam nkaus. Yog li kuv rov hais qhia koj kom pov koj cov ntaub ntawv hauv koj cov lej zoo li: "lat_deg = (int8_t) lat_deg;".

Yuav tsum ceev faj nrog tus lej, hauv qhov piv txwv no peb tsuas yog xa cov ntaub ntawv nrog 2 tus lej max. Tab sis yog tias koj xav hloov cov ntaub ntawv loj dua li "%04X" koj yuav paub tias Actoboard tab tom yuav thim tus lej. Piv txwv li yog tias koj xa 0x3040, Actoboard yuav nkag siab 0x4030. Yog li koj yuav tsum thim tus lej ua ntej xa cov ntaub ntawv hom ntawv uas tshaj 2 tus lej.

Kho kom raug Dashboard:

Txhawm rau hloov kho koj cov ntaub ntawv hauv Dashboard ntawm Actoboard, koj tsuas yog yuav tsum tau ntxiv tus widget. Muaj cov npe ntawm cov khoom siv, koj yuav tsum xaiv tus uas sib raug zoo tshaj plaws rau koj lub cev. Thiab tom qab koj tsuas yog yuav tsum xaiv cov ntaub ntawv twg yuav mus rau qhov twg tus widget.

Hloov mus rau nodered:

Txhawm rau hloov tag nrho cov ntaub ntawv koj tau txais ntawm Actoboard rau nodered ntawm URL, koj tsuas yog yuav tsum tau sau rau hauv "xa mus url" lub thawv hauv koj qhov chaw nrog koj qhov project nodered URL. Piv txwv li, peb tau sau lub thawv nrog "https://noderedprojet.mybluemix.net/projet".

Kauj Ruam 5: Cov Ntaub Ntawv Pib

Cov Ntaub Ntawv
Cov Ntaub Ntawv
Cov Ntaub Ntawv
Cov Ntaub Ntawv
Cov Ntaub Ntawv
Cov Ntaub Ntawv
Cov Ntaub Ntawv
Cov Ntaub Ntawv

Bluemix

  • Nodered:
  • Tau txais cov ntaub ntawv daim ntawv Actoboard

Txhawm rau kom tau txais cov ntaub ntawv daim ntawv Actoboard, koj yuav tsum ntxiv "websocket" cov tswv yim uas koj yuav tsum teeb tsa txoj hauv kev los ntawm "POST" thiab qhia koj qhov URL (piv txwv hauv daim duab).

Hloov cov ntaub ntawv

Koj yuav tsum tau rho tawm cov ntaub ntawv koj xav ntxiv hauv koj cov ntaub ntawv khaws cia (huab) thiab teeb tsa lawv. rau qhov ntawd, koj yuav tsum ntxiv ib pawg "ua haujlwm". Saib daim duab hauv kab ntawv txuas kom nkag siab yuav ua li cas.

Koj tuaj yeem ntxiv yam geomtry ntawm daim duab qhia chaw, piv txwv li, peb tau txais lub luag haujlwm uas ntxiv cov ntsiab lus nrog GPS ua haujlwm ntawm daim duab qhia chaw thiab txuas lawv. Peb siv txoj haujlwm no los tsim kev sib tw thiab tom qab, peb hloov lwm txoj haujlwm uas yuav tsim cov duab ntau puag ncig lub ntsiab lus yog tias koj txheeb xyuas RFID TAG.

Xa mus rau huab

Tom qab kev teeb tsa koj cov ntaub ntawv, koj yuav tsum xa lawv mus rau koj li CloudBank DataBase. Txog qhov ntawd, koj yuav tsum ntxiv "huab" qhov chaw khaws khoom thiab hais qhia qhov chaw zoo li lub npe ntawm koj li DataBase, kev ua haujlwm "ntxig" saib peb piv txwv hauv kev txuas.

Tsis txhob hnov qab "Deploy" koj cov nodered rau koj lub cev ua haujlwm.

Huab

Hauv koj cov ntaub ntawv keeb kwm huab, tam sim no koj tuaj yeem pom txhua cov ntaub ntawv koj tau xa nrog sigfox thiab kev ua qauv hauv cov liab. Koj tuaj yeem xaiv cov ntaub ntawv twg koj xav pom zoo li "hnub tim, ntaus ntawv, TAG RFID, GPS".

Thiab koj tuaj yeem pom cov khoom geomtry uas koj tau tsim hauv kev ua haujlwm tsis zoo hauv cov ntawv qhia zaub mov "gps Geospatial Indexes"

Kauj Ruam 6: Qhia tawm

Txhawm rau suav, peb muaj plaub qhov cuam tshuam tib neeg-Tshuab tswj los ntawm plaub lub laub-khawm.

Qhov kev sib tham yooj yim qhia qhov kub thiab txias, daim npav tus lej, tus lej chronometer thiab kev qhia sib nqus.

Ntawm ib qho ntawm lub laub khawm ua, koj yuav pom lub ntsej muag sib cuam tshuam tiag. Ib lub voj voos yuav kos rau ntawm qhov screen nrog cov lus qhia tau zoo.

Ntawm lwm qhov kev thawb khawm, koj yuav xa lus SOS uas nws xa koj qhov chaw mus rau cov ntaub ntawv pib. Ntxiv mus koj yuav hnov lus SOS hauv cov lej yuam kev.

Ib qho ntxiv, ntawm qhov kawg laub khawm ua koj yuav sawv ntawm RFID lossis. Tom qab ntawd koj muaj tsib vib nas this los cim koj qhov hla hla. Tom qab ntawd koj yuav hnov lub suab nrov. Qhov kev nqis tes ua no nce lub txee ntawm cov zaub thiab xa daim ntawv nrog lub sijhawm ntawm peb cov ntaub ntawv hauv paus. Thaum kawg, txhua daim ntawv yuav kos lub tsheb ntawm daim duab qhia chaw.

Kev ua haujlwm ntawm peb lub moos yog kwv yees li 4h30 (txog 660mA/h). Nws nyob ntawm tus lej cim cim.

Txhawm rau xaus tom qab kev sib tw, koj yuav pom txhua qhov kev nqis tes ua ntawm peb cov ntaub ntawv pib bluemix.

Pom zoo: