Cov txheej txheem:

NodeMCU thiab 1.8 "SPI ST7735 Zaub: 3 Kauj Ruam
NodeMCU thiab 1.8 "SPI ST7735 Zaub: 3 Kauj Ruam

Video: NodeMCU thiab 1.8 "SPI ST7735 Zaub: 3 Kauj Ruam

Video: NodeMCU thiab 1.8
Video: aaj ek baar phir se akal haar gyi 😷 2024, Kaum ib hlis
Anonim
Image
Image

Kuv siv 1.8 xim ST7735 TFT tso saib ntau. Qhov laj thawj rau qhov ntawd yog qhov khoom siv no yooj yim heev rau siv, nws raug nqi tsawg dua $ 5 thiab nws muaj xim! Nyob tom qab, cov zaub muaj daim npav SD daim ntawv luv luv ntawm cov pins (hloov los ntawm Adafruits cov ntsiab lus ntxaws):

RST - qhov no yog TFT pib dua tus pin. Txuas mus rau hauv av kom rov pib dua TFT! Nws zoo tshaj plaws kom muaj tus lej tswj hwm los ntawm lub tsev qiv ntawv yog li cov zaub tau rov pib ua kom huv, tab sis koj tseem tuaj yeem txuas nws mus rau Arduino Pib dua tus pin, uas ua haujlwm rau feem ntau. CS - qhov no yog TFT SPI nti xaiv pinD / C - qhov no yog TFT SPI cov ntaub ntawv lossis hais kom tus xaiv tus pinDIN - qhov no yog SPI Master Out Slave In pin (MOSI), nws tau siv los xa cov ntaub ntawv los ntawm lub microcontroller mus rau SD card thiab / lossis TFTSCLK - qhov no yog SPI moos input pinVcc - qhov no yog lub hwj huam tus pin, txuas rau 5VDC - nws muaj kev tiv thaiv rov qab polarity tab sis sim xaim nws kom raug! LED - qhov no yog cov tswv yim rau kev tswj lub teeb pom kev zoo. Txuas mus rau 5VDC txhawm rau qhib lub teeb pom kev. GND - qhov no yog lub zog thiab teeb liab hauv av Tam sim no peb paub tias peb tab tom daws teeb meem li cas nws yog lub sijhawm pib thaiv!

Kauj ruam 1: Kev sib txuas

Tsev qiv ntawv
Tsev qiv ntawv

NodeMCU los Zaub

  • D8 -> CSJ
  • D7 -> SDA
  • D5 -> CSK
  • D4. -> UA0
  • D3 -> RESET
  • Vcc -> 3.3V
  • Led -> 3.3V
  • GND -> GND

Kauj ruam 2: Cov tsev qiv ntawv:

Tsev qiv ntawv
Tsev qiv ntawv

Ntxiv cov tsev qiv ntawv rau ARDUINO IDE:

  • Adafruit_GFX
  • Adafruit_ST7735

Kauj Ruam 3: Xeem CODE

Rub tawm

Pom zoo: