Cov txheej txheem:
- Kauj Ruam 1: Kev Npaj Khoom
- Kauj Ruam 2: Kev Kho Vajtse
- Kauj Ruam 3: Ntxig rau Source Code
- Kauj Ruam 4: Cov txiaj ntsig
- Kauj ruam 5: Yees duab
Video: Cov Khoom Siv Encoder Teb: 5 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Nqe lus piav qhia:
Cov khoom siv ntsuas qhov ntsuas no tuaj yeem siv rau kev nkag siab lub cev txoj haujlwm thiab tshaj tawm. Nws yog cov khoom siv yooj yim heev suav nrog lub teeb pom kev zoo sensor (opto hloov, phototransistor) thiab ib daim ntawm slotted disc. Nws tuaj yeem txuas nrog ib lub microcontroller ntawm 3-tus pin header. Lub teeb pom kev pom lub teeb pom pom qhov ploj ntawm qhov disc, thiab tsim lub tsheb ciav hlau mem tes.
Nws xav tau +5VDC los txhawb lub zog, thiab muab 0V thiab 5V tso tawm. Nws muab 5V tso tawm thaum lub nqaj raug thaiv, thiab 0V tso tawm thaum lub nqaj tsis thaiv. Koj lub microcontroller tuaj yeem nyeem yooj yim 0-5-0V lub tsheb ciav hlau mem tes los txiav txim siab tias koj lub cav tau mus deb npaum cas, thiab nrawm npaum li cas.
Cov khoom siv suav nrog LED ntsuab uas ci thaum lub teeb tsis cuam tshuam.
Kev qhia tshwj xeeb:
- Kev Ua Haujlwm Voltage: 4.5-5 VDC
- Cov Teeb Meem Tso Tawm: Cov tso tawm digital
- Txuas ncaj qha rau microcontroller (sab hauv rub mus txog 5V)
- Muaj peev xwm nyeem tau txog 100KHz
- Slotted Disc taub: 26mm
- PCB Dimension: 22mm x 20mm
Kauj Ruam 1: Kev Npaj Khoom
Rau qhov kev qhia no, cov khoom xav tau los ua txoj haujlwm no yog:
- Arduino Ib
- USB Cable Hom A rau B.
- Txiv neej rau txiv neej jumper hlau
- Poj niam rau txiv neej jumper hlau
- Yas Iav Tsav
Kauj Ruam 2: Kev Kho Vajtse
Daim duab saum toj no qhia txog kev sib txuas yooj yim ntawm cov khoom siv Rotary Encoder thiab Arduino Uno:
- 5V> 5V
- GND> GND
- TSO> D2
Kev sib txuas ntawm Yas Gear Motor thiab Arduino Uno:
- Terminal 1> 5V
- Terminal 2> GND
Tom qab ua tiav kev sib txuas, txuas Arduino Uno rau lub hwj chim muab nrog USB cable.
Kauj Ruam 3: Ntxig rau Source Code
- Rub cov ntawv xeem thiab qhib nws los ntawm kev siv Arduino software lossis IDE.
- Nco ntsoov tias koj tau xaiv lub rooj tsav xwm raug thiab qhov chaw nres nkoj sib xws (Hauv qhov kev qhia no, Arduino Uno tau siv).
- Tom qab ntawd, xa cov ntawv xeem mus rau hauv koj Arduino Uno.
Kauj Ruam 4: Cov txiaj ntsig
Cov ntawv txiav tawm tau muab ntsia rau Yas Lub Cev Tsav Tsheb thiab muab tso rau hauv qhov chaw ntawm lub rooj sib tham hloov pauv hloov pauv. Lub teeb pom kev pom lub ntsej muag pom qhov ploj ntawm cov disc uas raug kaw thiab tsim lub tsheb ciav hlau. Los ntawm kev kho cov cai hauv Arduino, Rotary Encoder yuav tuaj yeem txheeb xyuas qhov tseeb rpm rau Yas Lub Cev Tsav Tsheb thiab tso tawm ntawm Serial Monitor.
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Tuchless Hloov rau Cov Khoom Siv Hauv Tsev -- Tswj Koj Cov Khoom Siv Hauv Tsev Tsis Muaj Tuch Ib qho Hloov: 4 Cov Kauj Ruam
Tuchless Hloov rau Cov Khoom Siv Hauv Tsev || Tswj Koj Cov Khoom Siv Hauv Tsev Tsis Muaj Tuch Ib qho Hloov: Nov Yog Qhov Tuchless Hloov Rau Cov Khoom Siv Hauv Tsev. Koj Siv Tau Qhov No Mus Rau Txhua Qhov Chaw Hauv Pej Xeem Kom Pab Tau Tawm Tsam Ib Yam Kab Mob. Lub Circuit Court Raws Li Tsaus Sensor Circuit Ua Los Ntawm Op-Amp Thiab LDR. Qhov Tseem Ceeb Thib Ob Ntawm Qhov Circuit Court SR Flip-Flop Nrog Sequencell
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Kev teeb tsa Matrix LED hauv Cov Khoom Siv Hluav Taws Xob qub - Yuav Tsum Tau Cov Khoom Siv: 3 Cov Kauj Ruam (nrog Duab)
Kev teeb tsa Matrix LED hauv Cov Khoom Siv Hluav Taws Xob qub - Yuav Tsum Tau Siv Cov Khoom Siv: Lub teeb pom kev zoo los ntawm lub Windows PC dhau Bluetooth thiab LED cov txheej txheem nthuav tawm Ib co piv txwv ntawm pixel kos duab thiab cov duab ua haujlwm khiav ntawm LED Cov Ntsiab Lus ntawm PIXEL Guts Kit Hauv Cov Lus Qhia no, peb ' yuav
Rov Siv Cov Khoom Siv Yas Zib Zib Zib Zib Hnab Rau Hauv Cov Chaw Muag Khoom Chaw Muag Khoom: 6 Kauj Ruam
Reuse Recycle Plastic Chewing Gum Cannister Into Solder Station Dispenser: Cov lus qhia no yuav qhia koj yuav ua li cas siv cov yas zom zom tuaj yeem ua kom khaws cov kab laug sab zoo thiab huv. Qhov no yuav ua haujlwm ntawm lwm yam khoom siv spooled thiab; Txoj hlua, Hlau, Cables