Cov txheej txheem:

ESP32 Lub Sijhawm Yees Duab: 9 Kauj Ruam (nrog Duab)
ESP32 Lub Sijhawm Yees Duab: 9 Kauj Ruam (nrog Duab)

Video: ESP32 Lub Sijhawm Yees Duab: 9 Kauj Ruam (nrog Duab)

Video: ESP32 Lub Sijhawm Yees Duab: 9 Kauj Ruam (nrog Duab)
Video: 3D hologram fan portrait solution. Who wanna date this holographic sexy lady #3dhologramfan 2024, Hlis ntuj nqeg
Anonim
Image
Image
ESP32 Lub Sijhawm Yees Duab
ESP32 Lub Sijhawm Yees Duab

Cov lus qhia no qhia yuav siv ESP32 thiab LCD los ua lub moos yees duab li cas. Hauv Nyij Pooj, nws hu ua BiJin ToKei (美人 時 計).

Kauj ruam 1: BiJin ToKei yog dab tsi?

BiJin ToKei yog dab tsi?
BiJin ToKei yog dab tsi?

BiJin ToKei from 美人 時 計) from pib txij xyoo 2009, lawv pom ntau yam kev zoo nkauj tuav lub rooj tswj hwm lub sijhawm qhia txhua feeb. BiJin ToKei muab daim ntawv thov web thiab mobile app version. Tom qab xyoo no, koj tuaj yeem pom ntau yam kev hloov pauv ntawm lub vev xaib tam sim no.

Ref.: Yog

www.bijint.com

ja.wikipedia.org/wiki/BIJIN%26Co.

itunes.apple.com/us/app/bijin-tokei-plus/i…

deadoralive.wikia.com/wiki/Bijin_Tokei

twitter.com/search?q=%23bijintokei

Kauj ruam 2: Vim li cas ESP32?

Vim li cas ESP32?
Vim li cas ESP32?

BiJin ToKei thaum xub thawj muab daim ntawv thov web thiab mobile app version. Nws yog lub moos zoo nkauj, tab sis nws nyuaj heev rau mob siab rau lub vijtsam duab lossis lub xov tooj ntawm tes ua lub moos nyob rau lub sijhawm ntev.

Yuav ua li cas txog ESP32 thiab LCD me me, nws tsuas yog nqi ib ncig 10 USD, tus nqi no tsim nyog tsim nyog los ua nws.

Kauj ruam 3: Kev npaj

Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj

ESP32 pawg thawj coj saib

Ib qho ESP32 pawg tswj hwm kev txhim kho nrog SPI cov kab tawg yuav tsum ua tau zoo.

LCD

ESP32_TFT_Library tuaj yeem txhawb nqa ILI9341, ILI9488, ST7789V thiab ST7735. Lub sijhawm no kuv tab tom siv 2.4 ST7789V LCD, tus lej JLX240-00302-BN. Cov qauv no yog tsim los rau SPI nkaus xwb, yog li nws tsuas muaj 10 tus pin (ua tau tiag tiag 9 tus pin). Nws tuaj yeem pab ua haujlwm yooj yim dua.

Hloov tshiab: Kuv kuj tau sim 3.2 LCD, tus lej JLX320-00202

Zaub Sawv

Koj tuaj yeem rov siv cov khoom qub hauv tes ua lub rooj muag khoom yooj yim, piv txwv. mobile sawv ntsug. Kuv muaj lub npe tawg lub npe tuav ntawm tes, nws yog qhov zoo tshaj los ua txoj haujlwm no!

Lwm tus

10 Ohm resistor thiab qee cov tooj liab tooj liab.

Kauj Ruam 4: Tsim

Tsim
Tsim

Lub moos yees duab xav tau lub peev xwm los tso duab. Daim duab ntawm www.bijint.com yog hauv hom-j.webp

ESP32 yog thawj txoj haujlwm nyiam ua haujlwm uas tau ua tiav kev daws teeb meem rau pom-j.webp

Yog li txoj haujlwm no pib los ntawm Loboris's ESP32_TFT_library.

Nov yog qhov program ntws:

  1. Txuas WiFi
  2. Tau txais lub sijhawm tam sim no nrog NTP raws tu qauv
  3. Sib dhos cov teev thiab feeb los tsim lub sijhawm tam sim no duab URL thiab tom qab ntawd muab nws los ntawm www.bijint.com txhua feeb
  4. Txuag daim duab-j.webp" />
  5. Zaub cov ntaub ntawv jpg

Hloov kho tshiab: cov cai tshiab tseem txhawb kev txiav txim ncaj qha-j.webp

Tsim txog cov ntsiab lus:

  1. WiFi thiab Is Taws Nem kev txuas tsis yog 100% ntseeg tau thiab kuv tsis xav kom lub moos khov ntawm lub sijhawm tsis raug, yog li ib zaug ntsib qee qhov yuam kev (piv txwv li DNS nrhiav tsis tau, NTP tsis ua tiav, rub tawm tsis tau) qhov kev pab cuam rov pib dua thiab rov ua dua.
  2. Txhua feeb muaj cov duab ib zaug txhais tau tias 1440 duab hauv ib hnub, ESP32 lub teeb nyem tsis tuaj yeem haum ntau pua daim duab. Yog li lub moos tsis tuaj yeem sau txhua daim duab, tab sis nws tuaj yeem khaws cov duab txhua lub sijhawm, tso saib nws thiab tom qab ntawd ntxuav nws.
  3. Flash tau hnav tawm yooj yim los ntawm kev rov sau dua tom ntej, yog li qhov kev zov me nyuam tig cov ntaub ntawv cache kom tsis txhob sau rau tib qhov chaw txhua feeb.
  4. Cov duab loj dua loj dua li LCD daws teeb meem, yog li nws yuav tsum tau ua kom cov duab me me mus rau ib nrab me me los tso saib.
  5. ESP-IDF ua lub sijhawm hloov chaw tsis ua haujlwm raws li qhov xav tau, yog li yuav tsum tau kho lub sijhawm nyob nrog cov cai kev cai.
  6. Rub lub sijhawm ntawv xav tau 10-50 vib nas this (nyob ntawm cov ntaub ntawv loj thiab network), yog li kuv tau nce qib 20 vib nas this (teeb tsa tau) los ntawm lub sijhawm tiag tiag kom kov yeej qhov kev ncua no.

Kauj Ruam 5: Rub tawm, Txheeb, Flash thiab Ua Haujlwm Txoj Haujlwm

Rub tawm, Sau ua ke, nyem thiab ua haujlwm qhov program
Rub tawm, Sau ua ke, nyem thiab ua haujlwm qhov program

Teeb ESP-IDF (yog tias tseem tsis tau):

  • Windows Teeb Qhia
  • Mac OS Setup Guide
  • Linux Teeb Qhia

Rub tawm qhov chaws ntawm no:

github.com/moononournation/ESP32_BiJin_ToK…

Kev teeb tsa:

ua menuconfig

  • teeb tsa chaw nres nkoj

    1. xaiv "Serial Flasher Config"
    2. xaiv "Default serial port"
    3. sau ESP32 pawg thawj coj saib chaw nres nkoj, piv txwv li COM6 ntawm Windows; /dev/cu. SLAB_USBtoUART ntawm macOS
  • teeb WiFi

    1. xaiv "BiJin Tokei Configuration"
    2. sau koj tus kheej "WiFi SSID" thiab "WiFi Password"

Kev kho

Hloov kho "partitions.csv", kho qhov loj me. (siab tshaj 0x100000 rau 2M thiab 0x300000 rau 4M)

cia, cov ntaub ntawv, spiffs, 0x100000, 0xF0000, Hloov kho "main/bijin_tokei.c"

txheeb xyuas seb yuav siv ntau cov ntaub ntawv cache li cas, nyob ntawm SPIFFS qhov loj me. Los yog teeb tsa 0 rau kev txiav txim ncaj qha-j.webp" />

#define CACHE_COUNT 0

Xaiv thiab tsis suav nrog ib ntawm TOKEI LIST URL lossis sau koj tus kheej URL:

zoo li qub char *REQUEST_FORMAT =

Sau, nyem thiab khiav qhov program:

ua flash saib

Kauj Ruam 6: Kev Ua Haujlwm Soldering

Soldering Ua Haujlwm
Soldering Ua Haujlwm
Soldering Ua Haujlwm
Soldering Ua Haujlwm
Soldering Ua Haujlwm
Soldering Ua Haujlwm

Khaws ESP32 pawg thawj coj saib ntawm lub LCD rov qab thiab siv cov tooj liab tooj liab xaim.

Kev sib txuas yog qhov yooj yim heev tab sis LCD pins feem ntau yog tuab heev, ceev faj tsis txhob ntxig nws.

Nov yog cov ntsiab lus sib txuas:

ESP32 GND -> LCD -ve

-> LCD LED -ve ESP32 3v3 -> LCD +ve -> 10 Ohm resistor -> LCD LED +ve ESP32 GPIO16 -> LCD RS (DC) ESP32 GPIO23 -> LCD SDA (SPI MOSI) ESP32 GPIO05 -> LCD CS ESP32 GPIO17 -> LCD RST ESP32 GPIO18 -> LCD CL (SPI CLK)

Cov Lus Qhia: cov kab hluav taws xob xav tau cov xaim tuab kom ua tiav cov dej ntws tam sim no tab sis nws xav tau kev siv zog ntau dua los kho txoj haujlwm; lwm cov kab teeb liab tuaj yeem siv cov xaim hluav taws xob yooj yim thiab ua haujlwm yooj yim dua.

Kauj Ruam 7: Txheeb thiab Muab LCD tso rau ntawm Sawv Cev

Txheeb thiab Muab LCD rau ntawm Sawv Cev
Txheeb thiab Muab LCD rau ntawm Sawv Cev
Txheeb thiab Muab LCD tso rau ntawm Sawv Cev
Txheeb thiab Muab LCD tso rau ntawm Sawv Cev
Txheeb thiab Muab LCD tso rau ntawm Sawv Cev
Txheeb thiab Muab LCD tso rau ntawm Sawv Cev

Txheeb xyuas qhov haujlwm kom raug thiab tom qab ntawd kho nws ntawm qhov sawv ntsug.

Kauj Ruam 8: Sijhawm Zoo Siab

Sijhawm Zoo Siab!
Sijhawm Zoo Siab!

Nws yog lub sijhawm los tso nws rau ntawm koj lub desktop thiab qhia rau koj tus phooj ywg tias koj tau ua dab tsi!

Kauj Ruam 9: Dab Tsi Ntxiv?

  • Sim lwm yam BiJin ToKei kev hloov pauv
  • Random tig xaiv cov kev hloov pauv
  • Tailor ua koj tus kheej cov duab
  • Zaub lub sijhawm hauv qhov loj font loj hauv daim duab tsis ua haujlwm
  • Sim lub vijtsam loj dua, piv txwv. li 9488 (320 x 480)

Pom zoo: