Cov txheej txheem:

JumpTie: 8 Kauj Ruam
JumpTie: 8 Kauj Ruam

Video: JumpTie: 8 Kauj Ruam

Video: JumpTie: 8 Kauj Ruam
Video: Thaum Ua Yawg Nrauj Txomnyem Tshaj Muaj Poj Niam. 7/8/22 2024, Kaum ib hlis
Anonim
JumpTie
JumpTie

Cov cuab yeej no ntsuas koj dhia! Koj tuaj yeem pom muaj pes tsawg dhia koj tuaj yeem ua nyob rau lub sijhawm.

Hauv webapplication txhua qhov koj dhia dhia tau tshwm thiab koj tuaj yeem pom koj qhov kev nce qib!

Txoj haujlwm tau ua los ntawm tsev kawm ntawv txoj haujlwm. Tam sim no kuv tab tom kawm Kev Tshaj Tawm Tshiab thiab Kev Sib Txuas Lus ntawm Howest Kortrijk, Belgium.

Kauj Ruam 1: Sau cov Khoom

Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom

Ua ntej peb yuav tsum sau qee cov khoom siv kho vajtse.

Peb xav tau:

- Raspberry Pi 3B

- Raspberry Pi Zero W.

- Powerbank rau Zero W.

- Gyroscope (LSM9DS1): kev ntsuas

Nqi thiab khw hauv online rau cov khoom no yog qhov kawg ntawm kev qhia.

Kauj Ruam 2: Siv lub Gyro rau Zero W

Solder Gyro rau Zero W
Solder Gyro rau Zero W
Solder Gyro rau Zero W
Solder Gyro rau Zero W

Ua tib zoo ntsuas lub Gyroscope rau RPi Zero W. Yog tias koj tsis tau ua qhov no ua ntej kuv pom zoo kom nug ib tus neeg uas muaj qee qhov kev paub dhau los ntawm kev siv tshuaj txhuam.

Dubbelcheck lossis tripplecheck yog tias koj ua kom raug 3.3V thiab GND!

Tsis ua qhov no kom raug yuav rhuav tshem koj lub Gyroscope lossis koj RPi Zero W

Kauj Ruam 3: Kho Koj Li RPi

Configure Koj RPi's
Configure Koj RPi's

Kho ob qho ntawm koj li RPi.

Qee cov lus qhia lossis txuas txuas muaj txiaj ntsig los teeb tsa RPi 3B:

www.raspberrypi.org/help/noobs-setup/2/

caffinc.github.io/2016/12/raspberry-pi-3-h…

Qee cov lus qhia lossis txuas txuas muaj txiaj ntsig los teeb tsa RPi Zero W:

github.com/initialstate/pi-zero-w-motion-s…

learn.sparkfun.com/tutorials/getting-start…

Yog ua tiav, nco ntsoov hloov kho lawv thiab teeb tsa cov pob hauv qab no:

Nab hab sej 3

- Mysql-neeg rau zaub mov

- Mysql-tus neeg siv khoom

- …

Peb kuj xav tau Mosquitto MQTT. Siv cov lus qhia hauv qab no rau nruab Mosquitto:

www.instructables.com/id/Installing-MQTT-B…

Tswv yim: siv Jessie duab, tsis Ncab!

Kauj ruam 4: MySql Database

MySql Database
MySql Database

Tam sim no peb yuav tsum kos daim duab ERD rau peb cov ntaub ntawv. Kuv siv MySql rau txoj haujlwm no.

Koj tuaj yeem tsim koj tus kheej cov ntaub ntawv, theej kuv lossis tsuas yog rub kuv cov ntawv thiab khiav nws.

Peb yuav siv peb RPi 3B ua peb Lub Chaw Nruab Nrab los ua haujlwm peb li Database thiab Webserver.

Tswv yim: Siv FileZilla los theej cov ntawv ntawm RPi 3B.

Kauj Ruam 5: Ua tiav Zero W

Txhawm rau ua Gyroscope ua haujlwm peb yuav tsum ua raws phau ntawv qhia no:

ozzmaker.com/berryimu-quick-start-guide/

Peb siv lub tsev qiv ntawv BerryIMU ua ke nrog qee cov ntawv sau ua ntej los nyeem Gyros qhov tseem ceeb.

Kuv yuav siv tsab ntawv "berryIMU-measure-G.py". Tab sis kuv tau ntxiv qee cov cai kom paub txog kev dhia thiab xa kev dhia mus rau hauv Central Point ntawm MQTT.

Kauj Ruam 6: Webapplication/Txais MQTT

Yog tias peb cov ntaub ntawv ua haujlwm tau zoo, peb tuaj yeem txav mus rau qhov tsim lossis Webapplication!

Kuv siv Flask (nab nab) rau lub backend thiab html/css rau frontend. Tab sis koj tau dawb los ua koj tus kheej daim ntawv thov web!

Koj tseem tuaj yeem rub kuv kab ntawv kom tau txais cov lus ntawm Central Point ntawm MQTT.

Kauj ruam 7: Khiav thiab Txaus Siab

Ntawm RPi Zero W khiav tsab ntawv "berryIMU-measure-G.py". Qhov no yuav ua haujlwm rau Zero W.

Ntawm RPi 3B, khiav "mqtt.py" tsab ntawv thiab koj lub vev xaib.

Tam sim no txaus siab rau koj qhov txiaj ntsig!

Kauj Ruam 8: Casing (ntxiv)

Casing (ntxiv)
Casing (ntxiv)

Mus saib hauv koj lub nkas -las rau lub qub thiab lub thawv me me los tso rau hauv koj cov khoom siv kho vajtse.

Kuv muab kuv Zero W rau hauv lub thawv me me uas kuv pom. Ofcourse Kuv siv qee cov ntaub ntawv kom paub tseeb tias kuv cov cuab yeej txav tsis tau.

Tsuas yog muaj tswv yim!

Pom zoo: