Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom Xav Tau
- Kauj Ruam 2: Tshooj Lus Qhia
- Kauj Ruam 3: Kev Sib Ntsib Hauv Tshuab
- Kauj Ruam 4: Tau Txais Cov Ntaub Ntawv
- Kauj Ruam 5: Cov Ntaub Ntawv Pib
- Kauj Ruam 6: Qhia tawm
Video: Txuas Txuas Kev Taw Qhia: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
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 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
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
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
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
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:
LED Qhov Taw Qhia Qhov Taw Qhia Tus Menyuam: 5 Kauj Ruam (nrog Duab)
LED Qhov Taw Qhia Qhov Taw Qhia Tus dev: Kuv ib txwm coj kuv tus dev Rusio mus taug kev thaum lub hnub poob qis kom nws tuaj yeem ua si yam tsis tau kub heev. Qhov teeb meem yog tias thaum nws tawm ntawm txoj hlua qee zaum nws tau zoo siab heev thiab ua haujlwm ntau dua li nws yuav tsum thiab nrog lub teeb qis thiab lwm tus dev
Yuav Ua Li Cas Thiaj Li Taw Qhia Qhov Taw Qhia: 6 Kauj Ruam
Yuav Ua Li Cas Thiaj Li Qhia Tus Kheej: Lub hom phiaj tseem ceeb ntawm daim ntawv thov no yog txhawm rau ntsuas qhov hnyav ntawm ib yam khoom tom qab ntawd qhia nrog lub tswb nrov thaum muaj qhov hnyav dhau. Cov tswv yim ntawm lub kaw lus los ntawm lub xov tooj ntawm tes. Kev tawm tswv yim yog lub teeb liab sib piv uas tau nthuav dav los ntawm qhov sib txawv
Kev Sib Txuas Txuas Txuas Txuas Siv Bluefruit: 4 Cov Kauj Ruam
Kev Sib Txuas Tsis Sib Txuas Siv Bluefruit: Nov yog cov lus qhia yooj yim los ntawm kauj ruam qhia los hloov koj cov xov hlau nrog bluetooth tsis muaj zog txuas: Nws coj kuv ib pliag los daws qhov no vim tias tsis muaj cov ntaub ntawv hais txog kev ua qhov no nrog bluetooth niaj hnub tsis muaj zog thev naus laus zis raws li Bluefrui
Kev Taw Taw Taw Tswj 5 Gallon Dej Dispenser: 3 Kauj Ruam
Tus Kheej Tus Kheej Tus Kheej 5 Gallon Dej Tso Dej: Hauv qee lub tebchaws zoo li qhov kuv nyob (Qaib ntxhw), peb muaj teeb meem nrog lub twj tso kua mis kom xa dej tawm ntawm lub ntim. Qee lub twj tso kua mis yog qhov nyuaj thiab cov menyuam yaus muaj teeb meem nrog kev muab lub zog xav tau. Yog li kuv xav txog kev siv ko taw
Cov lus qhia rau Ua Plaub Qhov Kev Txuas Txuas Txuas Rau Qhov Chaw Mounted Footrest: 9 Cov Kauj Ruam (nrog Duab)
Cov lus qhia rau Ua Plaub Qhov Kev Txuas Txuas Txuas Rau Lub Hauv Paus Mounted Footrest: Mid-drive fais fab log lub rooj zaum (PWC) tau dhau los ua neeg nyiam nyob rau xyoo tas los no. Txawm li cas los xij, vim qhov kev tso rau pem hauv ntej casters, cov tsoos sab-mounted footrests tau hloov los ntawm ib qho chaw nruab nrab-footrest. Hmoov tsis zoo, center-mou