Cov txheej txheem:

Yuav ua li cas cuam tshuam 4x3 "TFT Zaub Nrog Arduino: 4 Cov Kauj Ruam
Yuav ua li cas cuam tshuam 4x3 "TFT Zaub Nrog Arduino: 4 Cov Kauj Ruam

Video: Yuav ua li cas cuam tshuam 4x3 "TFT Zaub Nrog Arduino: 4 Cov Kauj Ruam

Video: Yuav ua li cas cuam tshuam 4x3
Video: Yuav ua li cas thiaj khiav dim lub ntiajteb no 2024, Kaum ib hlis
Anonim
Yuav ua li cas cuam tshuam 4x3
Yuav ua li cas cuam tshuam 4x3

FocusLCDs.com xa kuv tus qauv dawb ntawm 4x3 "TFT LCD (P/N: E43RG34827LW2M300-R) los sim. Qhov no yog xim xim matrix TFT (Thin Film Transistor) LCD (kua siv lead ua kua zaub) uas siv amorphous silicon TFT ua qhov hloov pauv. Cov qauv no yog tsim los ntawm hom Transmissive TFT-LCD Vaj Huam Sib Luag, tsav tsheb Circuit Court, chav teeb pom kev zoo. Kev daws teeb meem ntawm 4.3 "TFT-LCD muaj 480x272 pixels, thiab tuaj yeem tso tawm txog 16.7M xim.

Txog qhov haujlwm no, koj xav tau RA8875 tus tsav tsheb (muaj nyob ntawm AdaFruit rau US $ 35) los cuam tshuam TFT zaub rau Arduino. Nws los nrog lub taub hau uas koj tuaj yeem muab tso rau ntawm qhov xav tau.

Cov ntsiab lus ntawm cov yam ntxwv

  • 480x272 (105.4x67.15), 8/16/18/24-ntsis RGB interface
  • WHITE LED backlight, Sab saum toj saib
  • Kub kub
  • Transmissive, 4-xaim Resistive Touch Screen
  • 300 TSI
  • Tswj: ILI6408B
  • Ua raws RoHS

Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau

Khoom siv

  1. Arduino UAS
  2. 4x3 "TFT LCD; E43RG34827LW2M300-R
  3. RA8875 40-Pin Tsav Tsheb
  4. Tsis Siv Neeg Breadboard
  5. Dupont Jumper Wires
  6. 2.54mm-Suab Headers
  7. Arduino IDE Cov
  8. USB Cable
  9. Soldering Hlau
  10. Soldering Lead lossis Tin

Kauj Ruam 2: Kauj Ruam 1: Txuas RA8875 Pawg Thawj Coj thiab Nruab Qiv

Kauj Ruam 1: Txuas RA8875 Pawg Thawj Coj thiab Nruab Qiv
Kauj Ruam 1: Txuas RA8875 Pawg Thawj Coj thiab Nruab Qiv
  1. Muab cov ntawv txuas txuas txuas txuas rau RA8875 lub rooj tsavxwm.
  2. Rub tawm thiab teeb tsa cov tsev qiv ntawv Adafruit no. Tsuas yog theej thiab muab cov nplaub tshev unzipped rau Cov Ntaub Ntawv/Arduino/tsev qiv ntawv (hauv Windows 10). Nco ntsoov tias Arduino IDE tsis nyiam cov cim "-" hauv cov npe; tsuas yog hloov nws nrog qhov cim "_".

    1. Adafruit_RA8875_Master (https://github.com/adafruit/Adafruit_RA8875)
    2. Adafruit_GFX_Library_Master (https://github.com/adafruit/Adafruit-GFX-Library)
    3. Adafruit_STMPE610_Master (https://github.com/adafruit/Adafruit_STMPE610)
  3. Txuas lub TFT zaub rau RA8875 pawg thawj coj saib. Nco ntsoov tias cov zaub yuav tsum yog lub ntsej muag.
  4. Txuas Arduino rau RA8875 pawg thawj coj zoo li hauv daim duab:

    1. RA8875 VIN rau Arduino UNO 5V.
    2. RA8875 GND rau Arduino UNO GND.
    3. RA8875 SCLK rau Arduino UNO Digital #13.
    4. RA8875 MISO rau Arduino UNO Digital #12.
    5. RA8875 MOSI rau Arduino UNO Digital #11.
    6. RA8875 INT rau Arduino UNO #3.
    7. RA8875 CS rau Arduino UNO #10.
    8. RA8875 RESET rau Arduino UNO #9.

Kauj Ruam 3: Kauj Ruam 2: Qhib Tus Qauv Sketch thiab Kho

Kauj Ruam 2: Qhib Tus Qauv Piv Txwv thiab Kho
Kauj Ruam 2: Qhib Tus Qauv Piv Txwv thiab Kho
  1. Tua tawm koj yog Arduino IDE. Saib xyuas kom xaiv lub rooj tsav xwm raug cai xws li Arduino UNO lossis MEGA, thiab lwm yam thiab xaiv qhov chaw nres nkoj COM raug.
  2. Hauv Arduino IDE, xaiv Cov Ntaub Ntawv> Piv Txwv> Adafruit RA8875> buildtest
  3. Hauv daim duab, saib kab 39: "yog (! Tft.begin (RA8875_480x272)) {" … Nco ntsoov "RA8875_480x272" tau qhia.

Kauj Ruam 4: Kauj Ruam 3: Tshaj Tawm Qhov Sketch thiab Saib Qhov tshwm sim

Kauj Ruam 3: Upload Sketch thiab Saib Qhov tshwm sim
Kauj Ruam 3: Upload Sketch thiab Saib Qhov tshwm sim
  1. Xa cov duab kos mus rau Arduino UNO los ntawm nias CTRL-U.
  2. Thiab voila! Koj lub vijtsam yuav tsum pom qee yam zoo li no.

Pom zoo: