Cov txheej txheem:

Tutorial to Interface OLED 0.91inch 128x32 Nrog Arduino UNO: 7 Cov Kauj Ruam (nrog Duab)
Tutorial to Interface OLED 0.91inch 128x32 Nrog Arduino UNO: 7 Cov Kauj Ruam (nrog Duab)

Video: Tutorial to Interface OLED 0.91inch 128x32 Nrog Arduino UNO: 7 Cov Kauj Ruam (nrog Duab)

Video: Tutorial to Interface OLED 0.91inch 128x32 Nrog Arduino UNO: 7 Cov Kauj Ruam (nrog Duab)
Video: How to use SSD1306 128x32 OLED Display I2C with Arduino code 2024, Kaum ib hlis
Anonim
Tutorial to Interface OLED 0.91inch 128x32 Nrog Arduino UNO
Tutorial to Interface OLED 0.91inch 128x32 Nrog Arduino UNO

Cov ntawv qhia no yuav qhia koj qee qhov pib ntawm kev siv OLED 0.91inch LCD128x32 nrog Arduino UNO

Kauj ruam 1: Taw qhia

Nqe lus piav qhia:

OLED 0.91 nti yog ib qho duab saib duab saib duab nrog 0.91 nti, 128X32 kev daws teeb meem siab. OLED 0.91inch tuaj yeem ua haujlwm txawm tias tsis muaj lub teeb pom kev zoo. Hauv qhov chaw tsaus, qhov sib txawv ntawm OLED zaub siab dua li LCD zaub. Cov cuab yeej no yog I^2C lossis SPI sib xws. Vim nws lub peev xwm hauv kev nthuav tawm, nws nquag siv hauv ntau daim ntawv thov rau lub sijhawm, ntse saib, MP3, ua haujlwm ntawm lub xov tooj ntawm tes, ntaus ntawv noj qab haus huv thiab lwm yam.

Kev qhia tshwj xeeb:

1. OLED zaub, tsis xav tau teeb pom kev zoo, pom kev pom tus kheej, 2. Cov zaub ua tau zoo dua li cov tsoos LCD tsoos, tseem qis dua.

3. Tsav IC: SSD1306

4. Loj: 0.91 nti OLED

5. Kev daws teeb meem: 128 x 32

6. IIC interface

7. Zaub Xim: dawb

8. Nqe lus piav qhia:

GND: Lub zog hauv av

VCC: Hwj chim + (DC 3.3 ~ 5v)

SCL: Kab Kab

SDA: Cov Kab Kab

Kauj Ruam 2: Tus Kheej Txhais

Pin Txhais
Pin Txhais

Kauj Ruam 3: Kev Kho Vajtse

Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse

Kauj Ruam 4: Qauv Qauv Cai

Txhawm rau kom tau txais txiaj ntsig, thov rub cov qauv coj los piv rau hauv qab no.

*Ua siab zoo rub lub tsev qiv ntawv U8g2 uas tau sau rau ntau hom LCD zaub.

Kauj Ruam 5: Suav U8g2 Library

Suav nrog U8g2 Library
Suav nrog U8g2 Library

Nyem skecth thiab tom qab ntawv nyem nrog lub tsev qiv ntawv. Tom ntej no, nyem ntxiv. Zip tsev qiv ntawv thiab xaiv U8g2.zip ntawv.

Kauj Ruam 6: Upload Source Code

Rub tawm Source Code
Rub tawm Source Code
Rub tawm Source Code
Rub tawm Source Code

Qhib qhov chaws. Nco ntsoov com ntawm arduino UNO thiab com chaw nres nkoj zoo ib yam thiab thov xaiv pawg thawj coj yog Arduino UNO.

Nyem upload.

Kauj Ruam 7: Qhov tshwm sim

Pom zoo: