Cov txheej txheem:
- Kauj Ruam 1: Txuas LCD
- Kauj Ruam 2: Txuas Lub Pob Ntseg
- Kauj Ruam 3: Kos Duab LCD
- Kauj ruam 4: Nws Ua Haujlwm Li Cas
- Kauj ruam 5: Cov ntaub ntawv
Video: DIY I2C LCD Zaub Nrog Cov Lus Qhia: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Qhov sib piv ntawm LCD siv nrog Arduino (16x2 lossis 20x4) muaj 16 tus pin. Tsuas yog 6 tus I/O tus pin xav tau ntawm Arduino, tab sis ua li cas yog tias koj tuaj yeem tau txais qhov ntawd mus rau ob I/O pins, thiab tseem muaj cov pins muaj rau lwm yam khoom siv?
I2C interface yog nyob ntawm tus pin A4 thiab A5 ntawm Arduino UNO. Cov no yog qhov chaw nyob, thiab yog li ntawd tuaj yeem sib koom nrog lwm I2C cov cuab yeej uas muaj chaw nyob sib txawv. Tam sim no, koj tuaj yeem yuav I2C LCD's, thiab koj tseem tuaj yeem pom I2C LCD nrog cov chaw nyob sib txawv, tab sis lawv feem ntau yog ob kab LCD's, thiab cov chaw nyob raug tsau. Kuv yuav qhia koj li cas los tsim koj tus kheej I2C interface, xaiv ib ntawm 8 qhov chaw nyob, thiab txawm tias muaj peev xwm ntxiv txog 8 qhov kev tawm tswv yim lossis kev tso tawm, siv MCP23017 16 chaw nres nkoj nthuav dav nti. Qhov no yog tib lub nti Adafruit siv rau lawv I2C LCD Keypad Shield, thiab siv lawv lub tsev qiv ntawv los tham nrog nws. Koj tuaj yeem muaj txog li 16 lub LCD zaub, lossis txog li 128 digital I/O pins, thiab kev sib txuas ua ke ntawm qhov ntawd
NPE 2301
20x4 LCD lossis 16x2 LCD
Kauj Ruam 1: Txuas LCD
Kev sib txuas ntawm Hitachi hom sib xws LCD (2 lossis 4 kab) thiab MCP23017 tau qhia hauv daim duab.
SDA (tus pin 13 ntawm MCP23017) txuas rau Arduino A4, thiab SCL (tus pin 12) txuas rau Arduino A5. Qee tus hais qhia 4.7k rub cov neeg tawm tsam (tus pin 13 txog +5v thiab tus pin 12 txog +5v) tab sis txoj haujlwm no ua haujlwm tau zoo yam tsis muaj lawv.
Daim ntawv ceeb toom 220 Ohm resistor ntawm LCD k (cathode, gnd) kev sib txuas. Qhov no yog YUAV TSUM!
Yog tsis muaj nws, koj tuaj yeem tshuab MCP23107 lub teeb nrig rov qab. Muaj 3 tus pin koj tuaj yeem siv rau lub teeb pom kev zoo. Tus Pin 1 hu ua XEEB hauv Lub Tsev Qiv Ntawv thiab kos duab, Tus lej 28 hu ua GREEN, thiab tus lej 27 hu ua RED. Yog tias koj muaj monochrome LCD, koj tuaj yeem siv ib qho ntawm peb tus pin, thiab siv cov lus sib tham xim. Yog tias koj muaj RGB teeb pom kev zoo, koj tuaj yeem tau txais ntau xim ua ke. Txheeb xyuas lawv ntawm
Pins 15, 16, thiab 17 ntawm MCP23017 txiav txim siab I2C chaw nyob. Peb muaj tag nrho 3 qhov hauv paus, vim qhov no yog qhov chaw nyob tsis raug cai Adafruit lub tsev qiv ntawv siv. Txhawm rau ntxiv ntau cov lus, lossis xaiv lwm qhov chaw nyob, lub tsev qiv ntawv yuav tsum tau hloov kho, yog li peb yuav mus nrog lub neej ntawd tam sim no.
Adafruit_MCP23017.h muaj cov kab hauv qab no:
#define MCP23017_ADDRESS 0x20
Pin 17 = A2, Pin 16 = A1, thiab Pin 15 = A0
0 = av, 1 = +5v
Qhov chaw nyob yog 0100A2A1A0, yog li txij li peb tau tsaws tag nrho 3 kab, peb siv binary 0100000, lossis 20 hauv hex (0x20). 0100111 yuav yog 27 hauv hex (0x27).
Kauj Ruam 2: Txuas Lub Pob Ntseg
Peb suav nrog 5 cov nyees khawm nkag rau hauv qhov haujlwm no. Peb yuav hu lawv sab laug, sab xis, nce, nqis, thiab xaiv. Cov thawb khawm txheem yog qhov zoo rau qhov no, tab sis ib qho digital on / off sensor yuav ua haujlwm.
Txuas koj cov nyees khawm raws li hauv qab no:
Sab laug txuas ntawm Gnd thiab tus pin 25 ntawm MCP23017
Txoj cai txuas ntawm Gnd thiab tus pin 22
Up txuas ntawm Gnd thiab tus pin 24
Down txuas ntawm Gnd thiab tus pin 23
Xaiv txuas ntawm Gnd thiab tus pin 21
Kauj Ruam 3: Kos Duab LCD
Rub tawm thiab teeb tsa Adafruit lub tsev qiv ntawv, ua piv txwv "Nyob Zoo Ntiaj Teb", thiab lub lcd interface no tau ua haujlwm. Peb siv tus pin 27 ntawm MCP23017, yog li tsuas yog qhia RED rau lub teeb pom kev zoo ib yam.
Peb yuav hais daws qhov chaw nyob ntawm lub tsev qiv ntawv kom txog li 8 MCP23017 cov chips tuaj yeem siv rau hauv cov theem tom ntej. Email rau kuv nrog cov lus nug.
Rau ntau txoj haujlwm uas siv cov nti no thiab cov cai ntxiv, saib:
arduinotronics.blogspot.com/2015/11/wifi-rechargeable-internet-clock.html
arduinotronics.blogspot.com/2015/10/add-up-to-128-inputsoutputs-or-mix-to.html
Kauj ruam 4: Nws Ua Haujlwm Li Cas
Nov yog qhov haujlwm uas peb tsim los siv Adafruit version ntawm txoj haujlwm no. Tus DIY version yog xaim tib yam, tab sis koj yuav muaj cov xim ib txwm siv hloov ntawm RGB backlight.
Kauj ruam 5: Cov ntaub ntawv
Cov ntaub ntawv ua tiav muaj nyob ntawm
Pom zoo:
I2C / IIC LCD Zaub - Siv SPI LCD rau I2C LCD Zaub Siv SPI rau IIC Module Nrog Arduino: 5 Kauj Ruam
I2C / IIC LCD Zaub | Siv SPI LCD rau I2C LCD Zaub Siv SPI rau IIC Module Nrog Arduino: Nyob zoo cov phooj ywg txij li ib txwm muaj SPI LCD 1602 muaj xov tooj ntau dhau los txuas yog li nws nyuaj rau cuam tshuam nrog arduino tab sis muaj ib qho qauv muaj nyob hauv khw uas tuaj yeem hloov SPI zaub rau hauv IIC zaub yog li ntawd koj yuav tsum txuas tsuas yog 4 xov hlau
Yuav Ua Li Cas Thiaj Li Siv Soldering (Cov Lus Qhia Cuab Yeej & Cov Lus Qhia): 4 Cov Kauj Ruam
Yuav Ua Li Cas Thiaj Li Siv Soldering (Cov Lus Qhia Cuab Yeej & Cov Cuab Yeej): Hav guys! Kuv vam tias koj twb nyiam kuv cov lus qhia yav dhau los " Arduino MIDI Controller DIY " thiab koj tau npaj rau qhov tshiab, raws li ib txwm kuv tab tom kawm qhia kom qhia koj yuav ua li cas thiaj ua tau qee yam khoom siv hluav taws xob txias, thiab tham txog
Cov Lus Qhia thiab Cov Lus Qhia rau Electronics: 6 Kauj Ruam (nrog Duab)
Cov Lus Qhia thiab Cov Lus Qhia rau Kev Siv Hluav Taws Xob: Hauv Cov Lus Qhia no, Kuv tau sau ua ke cov npe ntawm cov lus qhia thiab cov lus qhia kuv xav kom kuv paub thaum kuv tau pib ua ntej. Txhua " kauj ruam " yog pawg sib txawv, thiab txhua tus lej suav yog cov lus qhia lossis cov lus dag. Cov ncauj lus kom ntxaws nyob rau hauv txhua qhov khoom yog cov condensed ve
Kuv Me Me Whoop: Daim Ntawv Qhia Whoop + Cov Lus Qhia thiab Cov Lus Qhia: 8 Kauj Ruam
Kuv Me Me Whoop: Daim Ntawv Qhia Whoop + Cov Lus Qhia thiab Cov Lus Qhia: Kev Ceeb Toom: Tam sim no koj tab tom nkag mus rau kuv thawj qhov kev qhia, thiab koj yuav ntsib ntau yam kev ruam thiab tsis muaj phiaj xwm thiab/lossis txuj ci. Paub txog qhov no yog kuv tus kheej Tiny Whoop teeb tsa uas kuv siv txhua hnub, yog li kuv xav tias kuv yuav qhia nws. Nws yog phooj ywg mus ncig (tsis muaj
Kuv Qhov Kaum Yam Tseem Ceeb Tshaj Plaws Cov Lus Qhia thiab cov lus qhia: 9 Kauj Ruam (nrog Duab)
Kuv Top Ten Qhov Siv Tau Zoo Tshaj Plaws Cov Lus Qhia thiab Cov Lus Qhia: Muaj 6 ntiv tes los daus hauv av, thiab koj tau koom nrog hauv tsev. Koj tau poob ib ntus koj qhov kev mob siab rau ua haujlwm ntawm koj li GPS-coj ua hlau txiav laser. Tsis tau muaj ib qhov haujlwm tshiab ntawm koj qhov chaw koj nyiam uas tau ua rau koj nyiam