Cov txheej txheem:
- Kauj Ruam 1: Teeb thiab ntsuas Calibrating MPU6050
- Kauj Ruam 3: Kev koom ua ke cov Sensors rau Arduino
- Kauj Ruam 4: Xa Cov Ntaub Ntawv mus rau Huab
- Kauj Ruam 5: Siv 2 Cov Khoom Siv Tib Lub Sijhawm
- Kauj Ruam 6: Txhim Kho, Sau Ntawv thiab Npaj Yav Tom Ntej
Video: IDC2018IOT Leg Running Tracker: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Peb tawm los nrog lub tswv yim no ua ib feem ntawm "Internet Ntawm Yam" chav kawm ntawm IDC Herzliya.
Lub phiaj xwm lub hom phiaj yog txhawm rau txhim kho kev tawm dag zog lub cev uas koom nrog kev khiav lossis taug kev siv NodeMCU, ob peb lub ntsuas pa thiab lub server muaj peev xwm. Qhov tshwm sim ntawm txoj haujlwm no yog lub cuab yeej IOT muaj txiaj ntsig zoo uas tuaj yeem tig mus rau yav tom ntej rau cov khoom lag luam tiag tiag uas yuav siv txhua qhov chaw! Thov qhia rau peb paub tias koj xav li cas:)
Ua ntej koj pib, xyuas kom koj muaj:
* NodeMCU ntaus ntawv.
* 1 Piezoelectric sensor.
* MPU6050 sensor.
* Ib qho loj matrix.
* Txoj hlua khov.
* Tus account Firebase.
Yeem:
* Ntau Piezoelectric sensor
* multiplexer ntau
Kauj Ruam 1: Teeb thiab ntsuas Calibrating MPU6050
"chaw thau khoom =" tub nkeeg"
Cov lus qhia:
- Txuas lub piezo nrog 1M resistor (saib daim duab txuas).
- Upload cov duab kos uas txuas nrog.
- Txuas lub cuab yeej mus rau ib txhais taw siv cov hlua khov.
- Qhib "serial plotter".
- Saib cov vis dis aus uas txuas nrog rau theem no.
Kauj Ruam 3: Kev koom ua ke cov Sensors rau Arduino
Peb tau pom yuav ua li cas ntsuas ntsuas lub ntsuas, tam sim no peb tab tom ua ke ob qho tib si ntawm lub ntsuas hluav taws xob mus rau NodeMCU!
- Txuas ob lub ntsuas hluav taws xob rau lub cuab yeej, siv tus pin zoo ib yam li hauv qib 1+2.
- Thauj cov duab kos uas txuas nrog.
- Txuas lub cuab yeej nrog 2 lub sensor mus rau ib txhais taw.
- Qhib "serial plotter".
- Saib cov vis dis aus txuas nrog.
Kauj Ruam 4: Xa Cov Ntaub Ntawv mus rau Huab
Hauv cov kauj ruam no peb yuav txuas peb lub cuab yeej mus rau huab thiab xa cov ntaub ntawv kom pom qee cov kab kos zoo kawg!
Peb yuav siv MQTT raws tu qauv thiab xa cov ntaub ntawv mus rau lub server pub dawb hu ua "Adafruit".
NCO TSEG: Adafruit tsis txhawb nqa xa cov ntaub ntawv ob peb zaug txhua ob, nws ua haujlwm qeeb qeeb, yog li peb yuav xa qhov nruab nrab ntawm peb cov ntaub ntawv cov ntsiab lus, thiab tsis yog cov ntaub ntawv cov ntsiab lus lawv tus kheej. Peb yuav hloov cov ntaub ntawv los ntawm peb 2 lub ntsuas hluav taws xob mus rau cov ntaub ntawv nruab nrab siv cov kev hloov pauv hauv qab no:
* Lub sijhawm tshawb nrhiav kauj ruam yuav hloov pauv mus rau ib feeb. Txhua lub sijhawm sijhawm tuaj yeem pom los ntawm (millis () - step_timestamp), thiab qhov nruab nrab tuaj yeem ua tiav siv lub lim, raws li peb tau pom ua ntej: val = val * 0.7 + new_val * 0.3.
* Lub zog theem yuav hloov pauv mus rau theem nruab nrab lub zog. Peb yuav siv tib txoj hauv kev siv "max" rau txhua kauj ruam, tab sis peb yuav siv lub lim los ua qhov nruab nrab siv cov lim nruab nrab = nruab nrab * 0.6 + new_val * 0.4.
Cov lus qhia:
- Nkag mus rau lub vev xaib Adafruit ntawm qhov chaw nyob io.adafruit.com thiab xyuas kom koj muaj tus lej nyiaj.
- Tsim lub dashboard tshiab, koj tuaj yeem sau nws "Kuv cov ntsuas ntsuas".
- Sab hauv lub dashboard, nias rau + khawm thiab xaiv "kab ntawv kab", thiab tsim cov khoom noj uas muaj npe "steps_per_min".
- Sab hauv lub dashboard, nyem rau + khawm thiab xaiv "kab ntawv kab", thiab tsim cov khoom noj uas muaj npe "nruab nrab_step_power".
- Tam sim no koj yuav tsum pom 2 daim duab khoob rau txhua qhov chaw.
- Siv daim duab txuas nrog thiab teeb tsa cov hauv qab no:
USERNAME = koj lub npe Adafruit.
KEY = koj tus lej Adafruit
WLAN_SSID = WIFI npe
WLAN_PASS = WIFI hla
mpuStepThreshold = Threshold los ntawm theem 2
Tom qab ntawd koj tuaj yeem txuas lub cuab yeej mus rau ib txhais taw thiab kos duab yuav xa cov ntaub ntawv cov kauj ruam mus rau tus neeg rau zaub mov!
Kauj Ruam 5: Siv 2 Cov Khoom Siv Tib Lub Sijhawm
Ntawm theem no, peb yuav sim 2 tus neeg uas taug kev nrog lub cuab yeej tib lub sijhawm!
Peb yuav siv 2 lub cuab yeej sib txawv - nrog tib cov ntaub ntawv cov ntsiab lus raws li tau piav qhia hauv qib 4.
Yog li qhov no yooj yim heev, muaj 3 txoj haujlwm yooj yim:
1) tsim kev pub ntxiv rau cov ntaub ntawv los ntawm lub cuab yeej thib 2, peb hais qhia muab kho tom qab ntawm "_2"
2) hloov cov block hauv lub dashboard los nthuav qhia cov ntaub ntawv los ntawm ob qho kev pub.
3) hloov lub npe ntawm txau hauv daim duab ntawm lub cuab yeej thib ob.
4) Saib cov txiaj ntsig!
NCO TSEG:
Adafruit tiv thaiv cov ntaub ntawv uas los sai dhau, nws yuav xav tau los kho qhov zaus uas cov ntaub ntawv xa mus rau tus neeg rau zaub mov. ua qhov ntawd los ntawm kev nrhiav cov hauv qab no hauv daim duab:
/ / Xa txhua 5 vib nas this tsis pub tshaj Adafruit qhov txwv rau cov neeg siv dawb. // Yog tias koj siv hwm lossis koj tus kheej lub server xav hloov pauv. // Txhua lub sijhawm xa cov ntaub ntawv hloov pauv. yog (millis () - lastTimeDataSent> 5000) {
Kauj Ruam 6: Txhim Kho, Sau Ntawv thiab Npaj Yav Tom Ntej
Qhov kev sib tw tseem ceeb:
Qhov kev sib tw tseem ceeb hauv txoj haujlwm yog ntsuas NodeMCU hauv kev tawm dag zog lub cev. Cov usb cable txuas ntau zaus, thiab thaum sim txav nrawm tuaj yeem muaj teeb meem ntawm kev tshem tus pin. Ntau zaus peb tau debug ib qho ntawm cov cai uas ua haujlwm tau zoo, thiab qhov teeb meem yog nyob hauv lub cev tiag tiag.
Peb tau kov yeej qhov kev nyuaj no los ntawm nqa lub laptop ze rau tus neeg khiav, thiab sau txhua daim ntawm ib lub sijhawm.
Lwm qhov kev sib tw yog ua kom cov khoom sib txawv sib cuam tshuam tau yooj yim:
- Lub piezo nrog tus acceleromter: Nyiam qhov uas tau piav qhia hauv qib 3, los ntawm lub tswv yim muaj tswv yim peb muaj.
- Cov ntsuas nrog tus neeg rau zaub mov: raws li tau piav qhia hauv qib 4, peb hloov pauv qhov txiaj ntsig mus rau lwm qhov txiaj ntsig uas tuaj yeem xa mus rau tus neeg rau zaub mov hauv qeeb qeeb.
Cov kev txwv ntawm qhov system:
- Yuav tsum tau ntsuas ua ntej siv.
- Yuav tsum tau hloov mus rau hauv cov khoom lag luam nruj dua, uas tsis tawg yooj yim hauv kev tawm dag zog lub cev.
- Lub piezoelectric sensor tsis yog qhov tseeb.
- Xav tau qee qhov kev txuas wifi. (Kev daws teeb meem yooj yim siv xov tooj ntawm tes hotspot)
Cov phiaj xwm yav tom ntej
Tam sim no, tias peb muaj lub cuab yeej ua haujlwm ua haujlwm saib xyuas ceg muaj kev txhim kho ntxiv uas tuaj yeem ua tiav!
Ntau ntau yam!
- Txuas piezos mus rau thaj chaw sib txawv hauv ko taw.
- Siv multiplexer txij li NodeMCU tsuas yog txhawb nqa ib tus pin analog.
- Muaj peev xwm qhia tau daim ntawv qhia tshav kub ntawm ko taw los piav qhia txog thaj chaw cuam tshuam.
- Muaj peev xwm siv cov ntaub ntawv no los tsim kev ceeb toom ntawm lub cev tsis raug thiab lub cev sib npaug.
Ntau yam khoom siv!
- Peb tau qhia koj yuav ua li cas txuas 2 lub cuab yeej tib lub sijhawm, tab sis koj tuaj yeem txuas 22 piezos rau 22 tus ncaws pob!
- Cov ntaub ntawv tuaj yeem nthuav tawm thaum lub sijhawm ua si los qhia qee qhov kev ntsuas zoo ntawm cov neeg ua si!
Advanced sensors
Peb siv piezo thiab accelerometer, tab sis koj tuaj yeem ntxiv lwm yam khoom siv uas yuav txhawb nqa cov txiaj ntsig thiab muab cov ntaub ntawv ntau ntxiv:
- Lazers tseeb kom pom cov hneev taw.
- Ntsuas nrug deb ntawm ko taw thiab hauv av.
- Ntsuas nrug deb ntawm cov neeg sib txawv (Yog tias muaj ntau yam khoom siv)
Pom zoo:
Visuino Running LED: 9 Kauj Ruam
Visuino Running LED: Hauv qhov kev qhia no peb yuav siv 6x LED, Arduino UNO, thiab Visuino kom khiav LED teeb siv cov khoom sib dhos ua ntu zus. Cov ntu ntu yog qhov zoo tshaj plaws rau cov xwm txheej uas peb xav ua kom muaj ntau yam xwm txheej hauv ib ntu.Muaj ib qho vis dis aus qhia
Desktop COVID19 Tracker Nrog Moos! Raspberry Pi Powered Tracker: 6 Kauj Ruam
Desktop COVID19 Tracker Nrog Moos! Raspberry Pi Powered Tracker: Peb paub tias peb tuaj yeem tuag txhua lub sijhawm, txawm tias kuv tuaj yeem tuag thaum sau cov ntawv no, tom qab tag nrho, kuv kuv, koj, peb txhua tus yog neeg tuag. Tag nrho lub ntiaj teb tau tshee vim yog COVID19 muaj thoob qhov txhia chaw. Peb paub yuav tiv thaiv qhov no li cas, tab sis hav! peb paub yuav thov li cas thiab vim li cas thiaj thov ntuj, peb puas ua
Automated Model Railroad Layout Running Two Train (V2.0) - Arduino Raws: 15 Cov Kauj Ruam (nrog Duab)
Automated Model Railroad Layout Running Two Train (V2.0) | Arduino Raws: Kev siv tus qauv kev tsheb ciav hlau siv Arduino microcontrollers yog txoj hauv kev zoo ntawm kev koom ua ke microcontrollers, kev tsim qauv thiab qauv kev tsheb ciav hlau mus rau ib qho haujlwm. Muaj ib pawg ntawm cov haujlwm muaj nyob rau ntawm kev khiav tsheb ciav hlau ntawm tus qauv kev tsheb ciav hlau
Luck's Running Out - Game: 7 Kauj Ruam
Luck's Running Out - Game: Nov yog kev ua si nrawm thiab muaj sijhawm, zoo li cov qos yaj ywm kub, clover tau hla mus txog thaum zaj nkauj thiab cov duab xaus. Qhov kev ua si no yog kev lom zem tshaj plaws thaum nws ua ke nrog txoj haujlwm luv kom ua tiav ua ntej dhau clover.Kuv tsis yog tus neeg txawj ntse
Movie Tracker - Raspberry Pi Powered Theatrical Release Tracker: 15 Cov Kauj Ruam (nrog Duab)
Movie Tracker - Raspberry Pi Powered Theatrical Release Tracker: Movie Tracker yog cov duab clapperboard, Raspberry Pi -powered Release Tracker. Nws siv TMDb API los luam daim ntawv tshaj tawm, lub npe, hnub tso tawm thiab cov lus pom ntawm cov yeeb yaj kiab yuav los tom ntej hauv koj cheeb tsam, nyob rau lub sijhawm tshwj xeeb ncua sijhawm (piv txwv li kev ua yeeb yaj kiab tso tawm lub lim tiam no) ntawm