Cov txheej txheem:

Xaim LOLIN WEMOS D1 Mini Pro rau SSD1283A 130x130 Transflective LCD SPI Zaub: 3 Kauj Ruam
Xaim LOLIN WEMOS D1 Mini Pro rau SSD1283A 130x130 Transflective LCD SPI Zaub: 3 Kauj Ruam

Video: Xaim LOLIN WEMOS D1 Mini Pro rau SSD1283A 130x130 Transflective LCD SPI Zaub: 3 Kauj Ruam

Video: Xaim LOLIN WEMOS D1 Mini Pro rau SSD1283A 130x130 Transflective LCD SPI Zaub: 3 Kauj Ruam
Video: P2 ESP01 4CH Relay Module (Subtittled) 2024, Hlis ntuj nqeg
Anonim
Xaim LOLIN WEMOS D1 Mini Pro rau SSD1283A 130x130 Transflective LCD SPI Display
Xaim LOLIN WEMOS D1 Mini Pro rau SSD1283A 130x130 Transflective LCD SPI Display

Tsis muaj cov ntaub ntawv zoo ntawm kev sib tham hauv online, yog li, ntawm no yog li cas!

SSD1283A LCD yog qhov txaus me me tso rau pom - nws tuaj yeem nyeem tau yooj yim hauv tshav ntuj ncaj qha, thiab muaj lub teeb pom kev ib yam nkaus, yog li tuaj yeem nyeem hauv qhov tsaus ntuj ib yam nkaus.

Wemos D1 Mini Pro yog qhov zoo kawg nkaus - txhawb nqa wifi zoo, nrog cov kauj ruam yooj yim uas ua rau nws hloov kho OTA - yog - koj tuaj yeem hloov kho software thiab rov nyem cov khoom no dua wifi, tsis tas yuav txuas nws rau koj lub PC!

Kuv tab tom tsim kuv tus kheej Lub Koob Yees Duab Infrared, uas qhia qhov kub ntawm lub vijtsam thiab tso cov ntaub ntawv hauv lub sijhawm tiag tiag rau hauv internet ib yam. Tab sis qhov ntawd yog rau yav tom ntej qhia - rau tam sim no - cia ua kom lub vijtsam mus!

Txheeb daim duab kom ntseeg tau tias koj lub rooj tsavxwm thiab tshuaj ntsuam zoo ib yam rau kuv (daim duab kos no tej zaum ua haujlwm zoo ntawm txhua tus qauv D1, tsis yog Mini Pro).

Khoom siv

LCD npo; $ 3.05 https://de.aliexpress.com/wh Wholesale?catId=0&initia…

WEMOS D1 Mini Pro; $ 2.90 https://de.aliexpress.com/wh wholesale?catId=0&initia…

Kauj Ruam 1: Them Lawv

Hlau Lawv!
Hlau Lawv!

LCD yog lub cuab yeej SPI (piv txwv li MOSI), tab sis cov chaw tsim khoom tau luam cov ntawv I2C tsis raug (piv txwv li SDA) ntawm lub rooj tsavxwm, yog li tsis txhob poob siab.

Ua cov kev sib txuas no. Yog tias koj siv lub khob cij, luam daim duab saum toj no.

D1LCD 3V3 VCC G GND D8 CS D4 RST D3 A0 D7 SDA D5 SCK 3V3 LED

Yog tias koj tab tom khiav qis ntawm tus pin, Kuv tsis xav tias D8-CS kev sib txuas xav tau (zoo li ua haujlwm tau zoo nrog qhov kev sib txuas no).

(nyob rau hauv cov ntaub ntawv tawg instructables editor puas kuv cov lus saum toj no - ntawm no yog txuas dua, hauv kab lus:)

D1 - LCD

3V3 - VCC

G - NCO

D8 - TSO

D4 - RST

D3 - UA 0

D7 - SDA

D5 - TSO

3V3 - LED

Kauj ruam 2: Thauj khoom Software

Rub lub Software
Rub lub Software

Qhib Arduino, xaiv koj lub rooj tsavxwm: (LOLIN (WEMOS) D1 mini Pro

Xaiv koj qhov chaw nres nkoj: /dev/cu. SLAB_USBtoUART (yog tias koj siv Mac).

Tsim daim nplaub tshev nrog cov ntawv* txuas nrog, qhib daim duab, thiab rub nws!

* cov lus qhia tau poob thaum kuv sau qhov no, thiab tsis tuaj yeem rub cov ntawv - yog li kuv tau muab tso rau ntawm no:

Kauj Ruam 3: Cov Nyiaj Ntxiv - Ua Kom Nws Ua Haujlwm 4x Sai dua

Kho kom raug LCDWIKI_SPI.cpp thiab tshem tawm kab no:-

SPI.setClockDivider (SPI_CLOCK_DIV4); // 4 MHz (ib nrab nrawm)

thiab hloov nws nrog kab no:-

SPI.setFrequency (40000000);

thiab koj lub vijtsam yuav khiav nrawm dua 4 zaug.

Pom zoo: