Cov txheej txheem:

Rotary Encoder Siv Arduino Nano: 4 Cov Kauj Ruam
Rotary Encoder Siv Arduino Nano: 4 Cov Kauj Ruam

Video: Rotary Encoder Siv Arduino Nano: 4 Cov Kauj Ruam

Video: Rotary Encoder Siv Arduino Nano: 4 Cov Kauj Ruam
Video: High Precision Encoder - 2500 Points er Rotation 2024, Kaum ib hlis
Anonim
Teb Encoder Siv Arduino Nano
Teb Encoder Siv Arduino Nano
Teb Encoder Siv Arduino Nano
Teb Encoder Siv Arduino Nano

Nyob zoo sawv daws, Hauv kab lus no kuv yuav ua kev qhia yuav siv tus lej nkag teb chaws li cas siv Arduino Nano. Txhawm rau siv Rotary encoder no koj tsis xav tau lub tsev qiv ntawv sab nraud. Yog li peb tuaj yeem ncaj qha tsim cov phiaj xwm yam tsis ntxiv cov tsev qiv ntawv ua ntej. ok

Cia peb pib qhia.

Kauj Ruam 1: Cov Cheeb Tsam Xav Tau

Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam

Cheebtsam uas koj xav tau:

  • Arduino Nano Cov
  • Teb Encoder
  • Jumper Hlau
  • Pawg phiaj xwm
  • Laptop

Kauj Ruam 2: Sib Sau Ua Ke Txhua Yam

Sib Sau Ua Ke Txhua Yam
Sib Sau Ua Ke Txhua Yam
Sib Sau Ua Ke Txhua Yam
Sib Sau Ua Ke Txhua Yam
Sib Sau Ua Ke Txhua Yam
Sib Sau Ua Ke Txhua Yam

saib daim duab saum toj no rau phau ntawv qhia kom dhos nws.

Arduino rau Rotary Encoder

GND ==> GND

+5V ==> +

D6 ==> CLK (PinA)

D7 ==> DT (PinB)

Kauj ruam 3: Programming

Programming
Programming

Thov rub daim duab kuv tau npaj hauv qab no.

Kauj Ruam 4: Qhov tshwm sim

Qhov tshwm sim
Qhov tshwm sim

Thaum Rotary Encoder tig mus rau sab laug, qhov txiaj ntsig tshwm sim yuav me dua.

Thaum Rotary Encoder tau tig mus rau sab xis, qhov txiaj ntsig yuav zoo dua.

Pom zoo: