Cov txheej txheem:
- Kauj Ruam 1: Upload Cov Tsev Qiv Ntawv rau hauv Arduino Libraries
- Kauj ruam 2: Txuas Koj Tus Pin
- Kauj ruam 3: Upload Code thiab Khiav
Video: Kev cuam tshuam LCD 20X4 Zaub rau Nodemcu: 3 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Kuv txiav txim siab los qhia qhov no raws li kuv tau ntsib teeb meem nrog kuv txoj haujlwm dhau los ua ntej, Kuv tau sim ua duab nraaj (128x64) LCD nrog Nodemcu tab sis tsis muaj txiaj ntsig, kuv ua tsis tau. Kuv xam tawm tias qhov no yuav tsum yog qee yam ua nrog lub tsev qiv ntawv (Lub tsev qiv ntawv rau duab LCD sib txawv ntawm LCD), Zoo li lub tsev qiv ntawv tam sim no tsis haum rau GLCD cuam tshuam nrog nodemcu, tiag tiag vam tias lawv tawm nrog "tsev qiv ntawv tsim nyog" tsis ntev Kuv xav sim tab sis kuv nyob hauv lub sijhawm txwv kuv thiaj txiav txim siab hloov pauv los ntawm cov duab nraaj LCD mus rau Bluebacklight 20x4 LCD. Kuv xav tias qhov no yuav yooj yim raws li cov yam ntxwv zoo ib yam li 16x2 LCD tab sis kuv tau ua yuam kev dua. Yog li, pib ntawm kuv txoj kev sim-n-yuam kev los ua qhov haujlwm no.
Kev cuam tshuam ib qho LCD nrog Arduino Uno yog qhov yooj yim, koj tuaj yeem pom ntau yam kev qhia muaj. Kuj tseem muaj kev qhia rau Interfacing LCD nrog NodeMCU muaj, qee qhov siv "I2C expender" ntawm "Shift register" thiab qee qhov lwm tus siv "I2C LCD adapter" tab sis zoo li tsis yog txhua qhov kev qhia no tau txais thiab qee qhov 'dhau lawm', lawv yuav yog siv cov tsev qiv ntawv sib txawv lossis qub, Kuv tau txais qhov yuam kev ib zaug zoo li no: "Ua yuam kev sau ua ke rau board NodeMCU 1.0 (ESP-12E Module)", yog li kuv hloov mus rau lub tsev qiv ntawv sib txawv. Ua tiav suav tab sis nrog ceeb toom: "CEEB TOOM: tsev qiv ntawv LiquidCrystal_I2C-1.1.2 thov kom khiav ntawm (avr) architecture (s) thiab tej zaum yuav tsis sib xws nrog koj lub rooj tsav xwm tam sim no uas ua haujlwm ntawm (esp8266) architecture (s)", Kuv tau muab rau nws sim ib qho twg, upload rau kuv lub rooj tsavxwm tom qab ntawd Ua tiav!
Kauj Ruam 1: Upload Cov Tsev Qiv Ntawv rau hauv Arduino Libraries
Ua ntej pib, ua kom koj tau teeb tsa lub tsev qiv ntawv rau NodeMCU, yog tias tsis yog koj tuaj yeem ua raws cov theem no ntawm no. Tom qab ntawd tsis txhob hnov qab rub tawm thiab teeb tsa koj lub tsev qiv ntawv LiquidCrystal_I2C rau koj lub LCD ib yam.
Txuas ntawm no yog cov ntawv zip ntawm LiquidCrystal_I2C lub tsev qiv ntawv uas kuv tau siv rau qhov kev qhia no. Kuv tsis nco qab lub vev xaib twg kuv rub tawm los ntawm tab sis credit rau tus tswv.
sau ntawv: qhov no yog cov ntawv uas tuaj nrog ceeb toom kuv tau hais ua ntej. Tab sis kuv tsis muaj teeb meem xa cov chaws rau kuv NodeMCU pawg thawj coj.
Kauj ruam 2: Txuas Koj Tus Pin
Kuv tab tom txuas LCD zaub rau NodeMCU los ntawm kev siv I2C LCD cov lej txuas, los ntawm 8 tus lej ntawm LCD mus rau 4 tus pin ntawm lub adapter. Qhov no yooj yim heev li NodeMCU me me thiab peb xav txwv kev siv tus pin ntawm lub rooj tsavxwm ntawd. Kuv siv tus pin D1, D2, Vin thiab Gnd ntawm NodeMCU. Kev sib txuas rau LCD:
Vin = VCC
Nwg = Gnd
D1 = SDA
D2 = SCL
Ncaj nraim
Kauj ruam 3: Upload Code thiab Khiav
Luam cov cai kuv txuas ntawm no, thiab khiav. Nco ntsoov tias koj tau xaiv Alter code rau koj nyiam. Hmoov zoo.
Thov kom phau ntawv qhia me me no pab tau koj. Yog tias muaj lus nug, tsis txhob ua siab deb los tawm tswv yim.
Pom zoo:
Kev cuam tshuam TM1637 Cov Qauv Zaub Nrog Arduino: 3 Cov Kauj Ruam
Kev cuam tshuam TM1637 Cov Qauv Zaub nrog Arduino: As-Salam-O-Aleykum! Kuv qhov kev qhia no yog hais txog kev cuam tshuam TM1637 Display module nrog Arduino Qhov no yog Plaub Tus Zauv Xya Segment Display module.Nws los ntawm ntau yam xim.Mine yog Liab Xim Nws siv Tm1637 Ic
Kev cuam tshuam Atmega16 Microcontroller Nrog Dot Matrix Led Zaub: 5 Cov Kauj Ruam
Kev cuam tshuam ntawm Atmega16 Microcontroller Nrog Dot Matrix Led Zaub: Hauv qhov haujlwm no peb tab tom cuam tshuam ib qho teev matrix LED zaub nrog AVR (Atmega16) microcontroller. Ntawm no peb yuav qhia simulation hauv proteus, koj tuaj yeem siv tib yam hauv koj cov khoom siv kho vajtse. Yog li ntawm no peb yuav xub luam ib tus cim cia peb hais 'A' hauv t
Kev Cai Cuam Tshuam rau Cov Khoom Siv Hluav Taws Xob thiab Arduino: 7 Cov Kauj Ruam
Cov Kev Cai Cuam Tshuam rau Cov Khoom Siv Hluav Taws Xob thiab Arduino: Tom qab ib xyoos, Kuv tau rov qab los nrog lwm Cov Lus Qhia ntawm kev tsim cov ntawv thaiv rau cov phiaj xwm hluav taws xob thiab Arduino. Hauv qhov kev qhia no kuv yuav siv software pub dawb CAD hu ua FreeCAD. Qhov rub tawm txuas yog nyob ntawm no. Rub tawm Link: https: //www.freec
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam Xov: Ua LED Zaub thiab Npuag Hluav Taws Xob uas Rolls Up: 7 Cov Kauj Ruam (nrog Duab)
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam: Ua kom pom LED thiab Cov Khoom Siv Hluav Taws Xob uas Rolls Up: Ua rau koj tus kheej cov ntaub ua hluav taws xob, xov, kua nplaum, thiab kab xev, thiab siv lawv los ua lub zog ntsuas hluav taws xob, tiv thaiv, hloov pauv, LED cov lus qhia thiab siv hluav taws xob. thiab cov xov hluav taws xob koj tuaj yeem ua cov lus qhia LED thiab cov kab hluav taws xob ntawm ib qho ntaub uas hloov pauv tau
Tus Cuam Tshuam Cuam Tshuam (ntsuas phoo Cam Cuam Tshuam Cuam Tshuam): 4 Cov Kauj Ruam
Solder Saver (txhav tas Cam Cuam Tshuam Cuam Tshuam): "Yuav ua li cas kuv thiaj yuav tsum qhia ua ntej Cov Lus Qhia no?" Kuv nug kuv tus kheej. Zoo li, txij li thaum pib ntawm lub sijhawm, tus txiv neej muaj qhov xav kom lo lo rau hauv tus cwj mem thiab tshaj tawm cov duab online. Zoo, Kuv tau txiav txim siab luv luv delving rau hauv keeb kwm loj dua ntawm tus cwj mem yaj, b