Cov txheej txheem:

Ua kua Cristal Zaub Siv Arduno: 4 Cov Kauj Ruam
Ua kua Cristal Zaub Siv Arduno: 4 Cov Kauj Ruam

Video: Ua kua Cristal Zaub Siv Arduno: 4 Cov Kauj Ruam

Video: Ua kua Cristal Zaub Siv Arduno: 4 Cov Kauj Ruam
Video: Sweet Bread / Pandan filling| Homemade sweet bread/ Ua qhaub cij noj qab heev/ Nplem Qab zib 2024, Hlis ntuj nqeg
Anonim
Ua kua Cristal Zaub Siv Arduno
Ua kua Cristal Zaub Siv Arduno

LCD (Liquid Crystal Display) yog ib hom kev tshaj xov xwm uas siv cov kua ua kua ua tus saib loj.

Hauv kab lus no kuv yuav siv 2x16 LCD. Vim tias hom LCD no feem ntau pom ntawm lub khw.

Kev qhia tshwj xeeb:

  • Lub cev, saib daim duab
  • Cov naj npawb ntawm kab = 16
  • Tus naj npawb ntawm kab = 2
  • Ua haujlwm voltage = 5V
  • Nruab nrog lub teeb nraub qaum
  • Lub teeb nraub qaum yog daj

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
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam

Cheebtsam xav tau hauv qhov kev qhia no:

  • LCD 2 x 16 po
  • Arduino Nano Cov
  • Jumper hlau
  • Pawg Thawj Coj
  • USBmini

Tsev qiv ntawv xav tau:

Ua kua

Lub tsev qiv ntawv "LiquidCrystal" tsis xav tau ntxiv ntxiv, vim nws twb tau muab los ntawm Arduino IDE

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv

Txhawm rau teeb tsa 16x2 LCD, koj tuaj yeem pom cov ntaub ntawv hauv qab no:

  • LCD RS ==> D12
  • LCD E ==> D11
  • LCD D4 ==> D5
  • LCD D5 ==> D4
  • LCDD6 ==> D3
  • LCD D7 ==> D2
  • LCD RW ==> GND
  • LCD VSS & K ==> GND
  • LCD VDD & A ==> +5v
  • LCD V0 ==> PullDown 10K Resistor

Kauj ruam 3: Programming

Programming
Programming

Arduino IDE twb tau muab piv txwv rau cov uas xav kawm siv Arduino.

Txhawm rau qhib tus qauv kos duab rau LCD, txoj hauv kev yog raws li hauv qab no:

  • Qhib Arduino IDE
  • Nyem Cov Ntaub Ntawv> Piv Txwv> LiquidCrystal> Nyob Zoo Ntiaj Teb
  • Txuas Arduino rau Lub Khoos Phis Tawj, tom qab ntawd rub tawm daim duab.

Kauj Ruam 4: Qhov tshwm sim

Qhov tshwm sim
Qhov tshwm sim

cov txiaj ntsig yog raws li hauv qab no:

Thawj kab tshwm "nyob zoo, ntiaj teb!" Thiab hauv kab thib ob muaj lub txee.

Ua tsaug rau kev nyeem ntawv. yog tias koj muaj lus nug, tsuas yog sau lawv hauv kab lus.

Pom zoo: