Cov txheej txheem:

1.8 TFT LCD Advanced Weather Station: 5 Kauj Ruam
1.8 TFT LCD Advanced Weather Station: 5 Kauj Ruam

Video: 1.8 TFT LCD Advanced Weather Station: 5 Kauj Ruam

Video: 1.8 TFT LCD Advanced Weather Station: 5 Kauj Ruam
Video: ESP32 Internet Weather with 3 5inch TFT Display 2024, Hlis ntuj nqeg
Anonim
1.8 TFT LCD Advanced Weather Station
1.8 TFT LCD Advanced Weather Station

Me ntsis me ntsis, tab sis loj dua.

Kauj Ruam 1: Txoj Haujlwm Txuas Ntxiv

Zoo kuv muaj 1.8 nti tft lcd nrog ST7735 tus tsav tsheb uas kuv tsis tau siv rau ib lub sijhawm tam sim no. Vim yog 2.4 lcd kuv tsis tuaj yeem siv I2C interface los txuas ntau lub ntsuas hluav taws xob mus rau Arduino Uno kuv txiav txim siab rov sau daim duab kom haum rau kuv cov kev xav tau. Kuv ntxiv BMP280 barometric siab sensor thiab DS3231 RTC los tso saib lub sijhawm thiab ntsuas siab.

Kauj Ruam 2: Qhov Yuav Tsum Tau

- Arduino Uno, Nano, Pro mini, Mega2560 thiab lwm yam.

- BMP280 barometric siab sensor

- DS3231 RTC

- 1.8 nti tft lcd ST7735

DS18b20

DHT11 lossis DHT22

- Cov tsev qiv ntawv thiab kos duab

Kauj ruam 3: Software

Software
Software
Software
Software
Software
Software

Kuv ua 2 daim duab. Ib qho yog nrog RTC thiab qhov thib ob yog tsis muaj RTC.

2019.03.04. Lwm qhov kos duab los siv lub ntsuas hluav taws xob BME280.

Kauj Ruam 4: Kev Sib Txuas

LCD:

CS CS 9

- RST Cov 7

- DC Cov 8

- SCLK Digital 13

- MOSI Digital 11

VCC 3.3V

- GND hauv av

- LED 5 V

NPE 280:

VCC: Kuv xav qhia tawm tsuas yog 3.3 volt

GND: ua

SCL: Analog 5

SDA: Analog 4

DS3231:

Vcc: 3.3 lossis 5 volts

GND: lom zem

TSO: A5

SDA: AW 4

DS18B20: Digital 6

DHT11/22: Digital 10

Analog LDR: Txhua tus pin analog uas yog pub dawb

Kauj ruam 5: Thaum kawg

Koj tau ua tiav thiab teeb tsa lub chaw nres tsheb huab cua pheej yig heev thiab raug.

Yeej nws zoo ib yam li yav dhau los, tab sis nws siv lwm lub lcd. Rau kev nthuav tawm lub sijhawm kuv xav tias txoj hlua yooj yim yuav ntau dua li txaus.

tft.print (rtc.getTimeStr (FORMAT_SHORT)); // FORMAT_LONG rau tso saib vib nas this; Tab sis nws yog me ntsis ntau rau Nano, tso tawm vib nas this qeeb

Koj tseem tuaj yeem ntxiv cov ntsuas ntsuas yog tias koj xav tau, vim tias peb muaj ob peb lub digital thiab analog pins tseem dawb tsis hais txog I2C npav. Qhov txwv tsuas yog lcd daws teeb meem:)

Kuv vam tias koj yuav muaj kev siv zoo rau nws.

Ua tsaug rau koj nyeem kuv cov lus qhia.

Cheers!

Pom zoo: