Cov txheej txheem:

Tus Nqi Rau Koj Txoj Haujlwm: Siv Cov Duab Duab!: 14 Kauj Ruam
Tus Nqi Rau Koj Txoj Haujlwm: Siv Cov Duab Duab!: 14 Kauj Ruam

Video: Tus Nqi Rau Koj Txoj Haujlwm: Siv Cov Duab Duab!: 14 Kauj Ruam

Video: Tus Nqi Rau Koj Txoj Haujlwm: Siv Cov Duab Duab!: 14 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Image
Image
Qhia tawm
Qhia tawm

Hauv peb cov vis dis aus hnub no, kuv yuav qhia koj li 1.8-nti TFT zaub. Qhov no yog 128-by-160 cov duab nraaj. Nws loj dua qhov uas los hauv ESP32 LoRa, thiab kuv tseem yuav qhia nws siv hauv ESP32 ib txwm muaj. Tom qab ntawd peb yuav muaj lub rooj sib txoos thiab cov cai los siv cov zaub no nrog ob tus qauv ntawm microcontrollers, siv tus piv txwv los ntawm Adafruit. Kuv tshwj xeeb pom cov duab los ua lub ntsej muag tseem ceeb heev, vim nws muab koj cov lus tawm los ntawm koj qhov Circuit.

Kauj Ruam 1: Qhia tawm

Kauj Ruam 2: Cov Khoom Siv

Cov peev txheej siv
Cov peev txheej siv

• ESP32-WROOM

• ESP32 LoRa

• Zaub TFT Lcd 1.8 ''

• Protoboard

• Cov dhia

Kauj ruam 3: Sib dhos

Los ua ke
Los ua ke

Kauj Ruam 4: TFT 1.8 `` Pinout Zaub

TFT 1.8 `` Pinout Zaub
TFT 1.8 `` Pinout Zaub

Kauj Ruam 5: ESP-WROOM32 Mounting Nrog TFT Zaub 1.8 ``

ESP-WROOM32 Mounting nrog TFT Zaub 1.8 ``
ESP-WROOM32 Mounting nrog TFT Zaub 1.8 ``

Kauj Ruam 6: ESP-WROOM32 Cov Rooj Sib Txuas thiab TFT1.8 `` Zaub

ESP-WROOM32 Cov Rooj Sib Txuas thiab TFT1.8 `` Zaub
ESP-WROOM32 Cov Rooj Sib Txuas thiab TFT1.8 `` Zaub

Kauj Ruam 7: ESP32 LoRa Mount Nrog TFT Zaub 1.8 ``

ESP32 LoRa Mount Nrog TFT Zaub 1.8 ``
ESP32 LoRa Mount Nrog TFT Zaub 1.8 ``

Kauj Ruam 8: ESP32 LoRa Cov Rooj Sib Txuas thiab TFT1.8 `` Zaub

ESP32 LoRa Cov Rooj Sib Txuas thiab TFT1.8 `` Zaub
ESP32 LoRa Cov Rooj Sib Txuas thiab TFT1.8 `` Zaub

Kauj Ruam 9: Txhim Kho Tsev Qiv Ntawv - Arduino IDE

Txhim Kho Tsev Qiv Ntawv - Arduino IDE
Txhim Kho Tsev Qiv Ntawv - Arduino IDE
Txhim Kho Tsev Qiv Ntawv - Arduino IDE
Txhim Kho Tsev Qiv Ntawv - Arduino IDE

Rub tawm ob daim ntawv ZIP los ntawm kev nkag mus rau cov kab ntawv txuas hauv qab no:

Adafruit GFX Library:

Adafruit ST7735 Lub Tsev Qiv Ntawv:

1. Nrog Arduino IDE qhib, nyem Sketch -> Ntxiv Library -> Ntxiv Library. ZIP

2. Xauj rau cov ntawv rub tawm, xaiv thiab nyem Qhib

3. Ua qhov no rau ob qho rub tawm cov tsev qiv ntawv

Kauj ruam 10: Code

ESP-WROOM Code 32

Kev tshaj tawm thiab kev hloov pauv

#include // Core graphics library #suav nrog // Hardware-specific library rau ST7735 #include // Cov pins no tseem yuav ua haujlwm rau 1.8 TFT shield // ESP32-WROOM #define TFT_DC 12 // A0 #define TFT_CS 13 // CS #define TFT_MOSI 14 // SDA #define TFT_CLK 27 // SCK #define TFT_RST 0 #define TFT_MISO 0 Adafruit_ST7735 tft = Adafruit_ST7735 (TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST);

ESP32 LoRa code

Kev tshaj tawm thiab kev hloov pauv

#include // Core graphics library #suav nrog // Hardware-specific library rau ST7735 #include #define TFT_DC 17 // A0 #define TFT_CS 21 // CS #define TFT_MOSI 2 // SDA #define TFT_CLK 23 // SCK #define TFT_RST 0 #define TFT_MISO 0 Adafruit_ST7735 tft = Adafruit_ST7735 (TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST);

Kauj ruam 11: ESP32 Code

ESP32 Txoj Cai
ESP32 Txoj Cai

Nco tseg

• Cov duab kos siv yog piv txwv tsim los ntawm cov khw Adafruit:

• Txawm li cas los xij, cov pins tshaj tawm hauv cov cai tau hloov pauv los ua haujlwm nrog ESP32 yav dhau los uas tau qhia.

• Lub hom phiaj ntawm zaj lus qhia no tsuas yog qhia kev sib txuas lus ntawm cov zaub thiab ESP32.

Kauj ruam 12: Tsim Chaw

Tsim Chaw
Tsim Chaw
Tsim Chaw
Tsim Chaw

Kev tsim kho teeb tsa tau qhia hauv cov duab hauv qab no. Cov laug cam yog ESP32 Dev Module thiab Heltec_WIFI_LoRa_32

Kauj ruam 13: Txuas

TFT Zaub Cov Tsev Qiv Ntawv

github.com/adafruit/Adafruit-GFX-Library

github.com/adafruit/Adafruit-ST7735-Library

PDF - GFX Tutorial

cdn-learn.adafruit.com/downloads/pdf/adafruit-gfx-graphics-library.pdf

Kauj ruam 14: Cov ntaub ntawv

Rub tawm cov ntawv:

PDF

INO

Pom zoo: