Cov txheej txheem:
- Kauj Ruam 1: Qhov Chaw thiab Cheeb Tsam
- Kauj ruam 2: Tus Encoder
- Kauj Ruam 3: Rhuav siab
- Kauj ruam 4: Ntsuas
- Kauj ruam 5: Sib dhos
- Kauj ruam 6: Code
- Kauj Ruam 7: Schematics
- Kauj Ruam 8: Los ntawm PoC rau Kev Tsim Khoom
- Kauj Ruam 9: Duab Duab
Video: Measurino: Ntsuas Log Pov Thawj Ntawm Lub Tswv Yim: 9 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Measurino tsuas suav tus lej ntawm kev sib hloov ntawm lub log thiab qhov kev mus kev deb yog ncaj qha piv rau lub vojvoog ntawm lub log nws tus kheej. Nov yog lub hauv paus ntsiab lus ntawm Odometer thiab kuv tau pib ua txoj haujlwm no feem ntau yog kawm yuav ua li cas kom muaj kev sib txuas lus (tswj los ntawm Arduino microcontroller), sib xws nrog ntau qhov kev ncua deb, ntawm millimeters mus rau kilometers, thiab ntsuas qhov teeb meem lossis txhim kho tau.
Kauj Ruam 1: Qhov Chaw thiab Cheeb Tsam
- Arduino Nano rev.3
- 128 × 64 OLED daim ntawv pov thawj (SSD1306)
- Nce Photoelectric Teb Encoder (400P/R)
- Roj Hmab Log rau qauv dav hlau (51mm dia)
- 2 lub qhov taub
- 9 v pin
Kauj ruam 2: Tus Encoder
Txog qhov haujlwm no kuv tau sim ntau qhov pheej yig tus lej nkag teb chaws, tab sis kuv tam sim ntawd pov tseg lawv vim qhov teeb meem raug/nkag siab. Yog li kuv tau mus rau DFRobot's Kev nce qib Photoelectric Rotary Encoder - 400P/R SKU: SEN0230. Qhov no yog kev tsim khoom lag luam nce ntxiv cov tshuab hluav taws xob hloov pauv nrog cov khoom siv txhuas, cov plhaub hlau thiab cov hlau tsis xeb. Nws tsim AB ob-theem orthogonal mem tes teeb liab los ntawm kev sib hloov ntawm cov nplais grating thiab optocoupler. 400 pulses/puag ncig rau txhua theem, thiab 1600 pulses/puag ncig rau ob-theem 4 zaug tso tawm. Cov kab lus teb no txhawb nqa max 5000 r/min nrawm. Thiab nws tuaj yeem siv rau kev nrawm, lub kaum ntse ntse, nrawm nrawm thiab lwm yam ntsuas cov ntaub ntawv.
Photoelectric rotary encoder muaj NPN qhib cov khoom tso tawm, yog li koj yuav tsum siv rub tawm cov khoom tiv thaiv lossis pab kom sab hauv Arduino rub tawm. Nws yog siv 750L05 tus tswj hluav taws xob nti, uas muaj DC4.8V-24V dav ntau lub zog tso tawm.
Kauj Ruam 3: Rhuav siab
Qhov Optoelectric Rotary Encoder no muaj qhov ua tau zoo heev, uas ua rau nws zoo meej rau kev tswj xyuas qhov chaw thiab tso npe thov. Tab sis rau kuv lub hom phiaj nws yog qhov xav paub ntau dhau. Nrog lub log 51mm, tus lej ntsuas no muaj qhov nkag siab ntawm 0.4mm, uas txhais tau tias yog koj txhais tes muaj qhov tshee tshee tsawg kawg, lawv yuav raug kaw. Yog li kuv txo qis qhov rhiab heev los ntawm kev ntxiv hysteresis hauv kev cuam tshuam ib ntus:
void cuam tshuam ()
{char kuv; kuv = digitalRead (B_PHASE); yog (i == 1) suav += 1; lwm tus suav -= 1; yog (abs (suav)> = hysteresis) {flag_A = flag_A+suav; suav = 0; }}
Qhov kev dag no tau txaus los muab kev ruaj ntseg zoo rau qhov ntsuas.
Kauj ruam 4: Ntsuas
Xaiv koj Chav Ntsuas (Decimal lossis Imperial) thiab tom qab ntawd tsuas yog tso lub log nrog nws cov lus sib tham ntawm qhov pib ntawm koj qhov ntsuas, nias lub pob Pib dua thiab ua kom nws tig mus txog thaum kawg. Los ntawm sab laug mus rau txoj cai ntsuas nce thiab suav nrog, rau sab xis mus rau sab laug nws txo qis thiab rho tawm. Koj tseem tuaj yeem ntsuas cov khoom nkhaus (koj lub tsheb zoo li qub, tuav ntawm tus ntaiv kauv, qhov ntev ntawm koj txhais caj npab los ntawm lub xub pwg mus rau lub dab teg nrog lub luj tshib, thiab lwm yam).
Kev sib hloov tag nrho ntawm lub log nrog txoj kab uas hla = D yuav ntsuas qhov ntev ntawm D*π. Hauv kuv qhov xwm txheej, nrog lub log 51mm, qhov no yog 16.02cm thiab txhua tus zuam ntsuas 0.4mm (saib kab lus Rhuav tshem).
Kauj ruam 5: Sib dhos
Lub PoC tau ua rau ntawm daim ntawv qhia zaub mov los qhia txog kev siv hluav taws xob. Txhua qhov kev tivthaiv tau txuas rau ntawm lub rooj tsavxwm thiab cov lus teb tau txuas nrog rau 2x2 Pole Screw Terminal Block. Lub roj teeb yog 9v tus qauv roj teeb thiab tag nrho lub zog siv hluav taws xob ntawm ib ncig yog 60mA.
Kauj ruam 6: Code
Rau cov zaub, Kuv siv U8g2lib uas hloov pauv tau zoo thiab muaj zog rau hom OLED cov lus no, tso cai rau xaiv ntau yam ntawm cov ntawv thiab ua haujlwm zoo. Kuv tsis nkim sijhawm ntau hauv kev sau cov zaub nrog cov ntaub ntawv, vim qhov no tsuas yog Poc.
Txhawm rau nyeem tus lej nkag, kuv tab tom siv kev cuam tshuam uas tau tsim los ntawm ib qho ntawm 2 theem: txhua lub sijhawm tus lej nkag nkag txav mus, nws tsim kev cuam tshuam rau Arduino khi ntawm qhov nce ntawm qhov kev xav.
attachInterrupt (digitalPinToInterrupt (A_PHASE), cuam tshuam, RISING);
Cov zaub tau hloov pauv los ntawm millimeters, mus rau meters, mus rau kilometers thiab (yog xaiv los ntawm lub laub khawm) los ntawm ntiv tes, mus rau mev, rau mais, thaum RST lub pob khawm rov ntsuas qhov ntsuas mus rau xoom.
Kauj Ruam 7: Schematics
Kauj Ruam 8: Los ntawm PoC rau Kev Tsim Khoom
Vim li cas qhov no yog Ntawv Pov Thawj ntawm Kev Ntseeg? Beacuse ntawm ntau yam kev txhim kho uas tuaj yeem/yuav tsum tau ua ua ntej tsim cov cuab yeej ua haujlwm tau zoo. Cia peb pom txhua qhov ua tau txhim kho hauv cov ntsiab lus:
- Log. Qhov rhiab heev/raug ntawm Measurino nyob ntawm lub log. Lub log me dua tuaj yeem ua rau koj zoo dua qhov ntsuas me me ntev (hauv qhov kev txiav txim ntawm millimeters mus rau centimeters). Lub log loj dua uas muaj qhov txuas txuas ntxiv yuav tso cai taug kev ntawm txoj kev thiab ntsuas ntau kilometers. Rau lub log me me, cov khoom yuav tsum tau txiav txim siab: lub log puv puv roj hmab tuaj yeem hloov pauv me ntsis thiab cuam tshuam qhov tseeb, yog li ntawd kuv yuav qhia rau txhuas/hlau log nrog tsuas yog daim kab xev nyias kom tsis txhob swb. Nrog rau kev hloov kho software tsis tseem ceeb (xaiv lub log log kom raug nrog hloov), koj tuaj yeem txiav txim siab cov log sib hloov pauv hloov mus rau txhua qhov ntsuas, los ntawm kev siv 4-tus pin txuas (piv txwv li: chaw nres nkoj usb).
- Software. Los ntawm kev ntxiv lwm lub laub khawm, software kuj tseem tuaj yeem saib xyuas thaj tsam ntawm cov duab plaub lossis cov dav dav dav. Kuv kuj qhia ntxiv kom khawm "Tuav" kom khov qhov ntsuas ntawm qhov kawg, zam kom tsis txhob txav lub log ua ntej ua ntej nyeem tus nqi ntawm cov zaub.
- Hloov lub log nrog tus xov. Txog kev ntsuas luv (tsis pub dhau ob peb metres) lub log tuaj yeem hloov nrog lub caij nplooj ntoo hlav uas muaj xov lossis kab xev. Ua li no koj tsuas yog yuav tsum rub cov xov (ua lub cav sib dhos tig), ntsuas koj qhov ntsuas thiab saib ntawm cov zaub.
- Ntxiv cov zaub ntawm lub xeev roj teeb. 3.3v Arduino tus pin siv (raug hauv 1%) tuaj yeem siv ua lub hauv paus rau ADC hloov pauv. Yog li, los ntawm kev ua qhov sib piv rau digital hloov pauv ntawm 3.3V tus pin (los ntawm kev txuas nws mus rau A1) thiab tom qab ntawd sib piv qhov kev nyeem ntawv no tiv thaiv kev nyeem ntawv los ntawm lub ntsuas, peb tuaj yeem hais tawm qhov tseeb-rau-lub neej nyeem, tsis hais VIN yog dab tsi (tsuav nws siab dua 3.4V). Ib qho piv txwv ua haujlwm tuaj yeem pom hauv lwm qhov haujlwm ntawm kuv.
Kauj Ruam 9: Duab Duab
Pom zoo:
DIY Huab Cua Chaw Ua Haujlwm Lub Tswv Yim Lub Tswv Yim rau 12+ Xyoo: 4 Kauj Ruam
DIY Huab Cua Chaw Ua Haujlwm Lub Tswv Yim Lub Tswv Yim rau 12+ Xyoo: Hauv qhov haujlwm no, cov koom nrog yuav teeb tsa lawv lub chaw nres tsheb huab cua, xa nws mus rau saum huab cua, thiab saib xyuas cov ntaubntawv kaw (lub teeb, kub, av noo) hauv lub sijhawm tiag tiag ntawm Blynk app. Nyob rau sab saum toj ntawm txhua qhov no, koj yuav kawm paub yuav tshaj tawm cov txiaj ntsig tau sau tseg li cas
Cov Lus Qhia Ua Kom Koj Lub Tswv Yim Lub Tswv Yim Muaj Tseeb: 6 Cov Kauj Ruam (nrog Duab)
Cov Lus Qhia Kom Ua Koj Lub Tswv Yim Lub Tswv Yim: Qhov tseem ceeb tshaj plaws ntawm txoj haujlwm ua tiav yog muaj lub tswv yim zoo tiag tiag, tab sis qee zaum lub tswv yim yog qhov yooj yim! Tom qab ntawd los ua haujlwm nyuaj hauv kev ua qhov flash flash ntawm kev txawj ntse rau qee yam uas tib neeg " ooh " thiab " ah " ov
Laptop Cooling Pad DIY - Txaus Lub Neej Hacks Nrog CPU Ntxuam - Tswv yim tswv yim - Khoos phis tawj Computer: 12 Kauj Ruam (nrog Duab)
Laptop Cooling Pad DIY | Txaus Lub Neej Hacks Nrog CPU Ntxuam | Tswv yim tswv yim | Khoos phis tawj Computer: Koj yuav tsum saib cov vis dis aus no kom txog thaum nws xaus. kom nkag siab cov yees duab
Kev tswj hwm tus kheej ntawm RPM ntawm Lub Cav Siv Lub Tswv Yim Los Ntawm IR Raws Li Tachometer: 5 Cov Kauj Ruam (nrog Duab)
Kev Tswj Tus Kheej ntawm RPM ntawm Lub Cav Siv Lub Tswv Yim Los Ntawm IR Raws Lub Tachometer: Muaj ib txwm xav tau rau kev siv tshuab txheej txheem, ua nws yooj yim/tsis txaus ntseeg. cov txheej txheem rau dej/siv dej rau peb daim av me me.Qhov teeb meem ntawm tsis muaj kab khoom siv tam sim no
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS YOOJ YIM: 4 Cov Kauj Ruam
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Nyob zoo txhua tus hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas kom yooj yim " SOIL DRYNESS SENSOR ". Qhuav ntawm cov av tau txheeb xyuas siv qhov taw qhia coj. Lub teeb ci wi