Cov txheej txheem:

YOOJ YIM Arduino OLED Sensor Cov Ntaub Ntawv Zaub: 4 Cov Kauj Ruam
YOOJ YIM Arduino OLED Sensor Cov Ntaub Ntawv Zaub: 4 Cov Kauj Ruam

Video: YOOJ YIM Arduino OLED Sensor Cov Ntaub Ntawv Zaub: 4 Cov Kauj Ruam

Video: YOOJ YIM Arduino OLED Sensor Cov Ntaub Ntawv Zaub: 4 Cov Kauj Ruam
Video: Thai Sounders - Yooj Yim (Official Music Video) 2024, Kaum ib hlis
Anonim
YOOJ YIM Arduino OLED Sensor Cov Ntaub Ntawv Zaub
YOOJ YIM Arduino OLED Sensor Cov Ntaub Ntawv Zaub

Yog tias koj tau ua haujlwm nrog Arduino, tej zaum koj yuav xav kom nws ua kom pom kev nyeem ntawv.

Thaum siv lub qub Nokia 5110 LCD, koj yuav tau pom tias txuas tag nrho cov xov hlau no tsis meej thiab siv ntau tus pin.

Tau kawg, muaj txoj hauv kev zoo dua. OLED txoj kev.

Hauv kauj ruam tom ntej kuv yuav muab cov npe ntawm yam koj yuav xav tau kom ua haujlwm tau zoo.

Ntawm ib sab ntawv, yog tias koj tsis tau ua haujlwm nrog 5110 npo ua ntej, Kuv tau sau cov lus qhia rau ntawm qhov ntawd. Nws yog lwm txoj hauv kev pheej yig dua, tab sis siv sijhawm ntau dua Arduino pins thiab tsis muaj zog tsawg.

Koj tuaj yeem tshawb xyuas nws ntawm no:

www.instructables.com/id/Arduinonokia-lcd-data-display-EASY-VERSION/

Kauj Ruam 1: Yam Koj Yuav Tsum Tau:

-OLED zaub

Kuv qhia yuav ntawm no:

www.ebay.com/itm/Blue-0-96-128X64-OLED-I2C-IIC-SPI-Serial-LCD-Display-Module-for-Arduino-51-SCR-/281808686848?hash=item419d1b4f00: g: MwIAAOSwGvhUK-pX

Kuv tau xaj 4 los ntawm tus muag khoom thiab lawv txhua tus tau ua haujlwm yam tsis muaj teeb meem. Yog tias koj xa nws cov lus hais "instrucrables" thaum yuav cov zaub, nws yuav nco ntsoov xa koj sai sai.

-4 Dupont xov hlau (txiv neej rau poj niam)

-Arduino (Kuv siv UNO, tab sis ib qho Arduino yuav tsum ua haujlwm)

-Adafruit lub tsev qiv ntawv (Tsis txhob txhawj xeeb, Kuv yuav tau mus rau hauv cov kauj ruam tom ntej)

Kauj ruam 2: Cov tsev qiv ntawv:

Tsev qiv ntawv
Tsev qiv ntawv

Tsis txhob txhawj xeeb yog tias koj tsis tau siv cov tsev qiv ntawv ua ntej. Lawv yooj yim heev rau siv.

Rau kev siv yooj yim ntawm OLED zaub koj yuav xav tau 4 lub tsev qiv ntawv. Kuv tau suav nrog lawv hauv cov ntaub ntawv rar.

Tom qab koj tau rub tawm cov ntawv, tshem nws thiab luam/rub cov ntaub ntawv sab hauv rau koj li Arduino cov tsev qiv ntawv tais ceev tseg.

Txhawm rau nrhiav daim nplaub tshev tsuas yog mus rau:

Koj lub hard drive-> Program files-> Arduino-> libraries

Kauj Ruam 3: Txuas Cov Zaub:

Nov yog ib qho laj thawj yog vim li cas koj thiaj yuav loj hlob los hlub cov zaub OLED. Koj tsuas xav tau 4 xov hlau los tham nrog nws.

Txuas nws zoo li no:

Zaub Arduino

GND ------ NCO

Vcc ------ 3.3V

SCK ------ SCL

SDA ------- SDA

Thaum koj tau ua tib zoo ntsaws rau hauv txhua cov kab ntawv no, xa cov cai thiab txaus siab rau koj cov zaub OLED.

Kauj Ruam 4: Arduino Code:

Txij li cov ntawv qhia qee zaum messes tus lej, kuv tau txuas nws ua cov ntawv.

Nws yog tus lej yooj yim, tso tawm qee cov ntawv nyeem thiab lub ntsuas nyeem ntawv.

Yog tias koj xav kom cov zaub ua qee yam ua tau zoo dua, Kuv qhia saib cov piv txwv cov lej suav nrog hauv cov ntawv tais ceev tseg.

Tsuas yog mus rau: Cov Ntaub Ntawv-> Piv txwv-> Adafruit SSD1306 thiab xaiv cov zaub koj muaj (feem ntau yuav yog 128x64 i2c)

Pom zoo: