Cov txheej txheem:
Video: I2C LCD ntawm NodeMCU V2 Nrog Arduino IDE: 3 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hauv qhov kev qhia sai no kuv yuav qhia koj li cas noj su LCD nrog I2C Serial Adapter ntawm NodeMCU v2 siv ArduinoIDE thiab muaj cov tsev qiv ntawv.
Kauj Ruam 1: Yuav Tsum Xeem thiab Software
Kho vajtse:
1. NodeMCU v2
2. 16x2 LCD Zaub nrog i2c Serial Interface Adapter Module
3. Qee qhov xov hlau, USB rau lub hwj chim muab thiab kos duab rub tawm
Software:
1. ArduinoIDE -
2. Lub tsev qiv ntawv LiquidCrystal_I2C-https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library
Kauj ruam 2: Teeb Kho Vajtse
Kev npaj:
Thaum koj xaj LCD los ntawm Ali/ebay koj tuaj yeem siv tau 16 tus pin headers rau LCD zaub txhawm rau zam kom tsis txhob 'xaim xov' thaum txuas mus rau cov khoom sib txuas
Teeb:
- Muab cov zaub LCD thiab Cov Txuas Txuas rau ntawm lub rooj noj mov ib sab ntawm ib sab
- Txuas tus adapter SCL tus pin nrog NodeMCU D1 tus pin
- Txuas tus adapter SDA tus pin nrog NodeMCU D2 tus pin
- Txuas tus adapter GND, VCC pins nrog NodeMCU GND, Vin raws li - ntawm no kuv xav piav qhia ib yam. Yeej koj yuav tsum txuas LCD zaub rau 5v qhov chaw tab sis NodeMCU tsuas muaj 3.3v tso tawm kom LCD zoo nkauj heev. Yog tias koj muab LCD nrog lwm 5v qhov chaw koj yuav xav tau siv lub logic qib hloov pauv vim tias nws yuav tsis ua haujlwm. Nov kuv tau siv qee qhov hack siv USB muab lub zog uas hla dhau rau Vin. Nws yog 5V tab sis nws ua haujlwm:)
Kauj ruam 3: Sketch
Kev npaj:
- Nruab ArduinoIDE
- Ntxiv NodeMCU kev txhawb nqa - zoo piav qhia ntawm no.
- Ntxiv LiquidCrystal_I2C lub tsev qiv ntawv - thov siv cov lus qhia los ntawm tus sau. Kev teeb tsa los ntawm AdruinoIDE yuav ntxiv qhov qub dhau los
Daim duab:
#suav nrog
#suav nrog
LiquidCrystal_I2C lcd (0x27, 16, 2);
void teeb tsa () {
Serial.begin (115200);
// Siv tus lej PINS uas tau npaj ua ntej
Wire.begin (D2, D1);
lcd.begin ();
lcd.home ();
lcd.print ("Nyob zoo, NodeMCU");
}
void loop () {// tsis ua dab tsi ntawm no}
Rub tawm daim duab kos thiab koj ua tiav!
Pom zoo:
Cov cuab yeej cuab tam - Ceramic hauv Cov Ntsiab Lus ntawm Cov Txheej Txheem Digital thiab Analog 2015: 3 Cov Kauj Ruam (nrog Duab)
Cov cuab yeej cuab tam - Ceramic hauv Cov Ntsiab Lus ntawm Digital thiab Analog Cov Txheej Txheem 2015: Txog tam sim no, cov khoom siv hlau yog cov khoom siv tes ua uas tsis muaj kev cuam tshuam digital. Vim li no, nws zoo siab heev los ua phooj ywg nrog cov cuab yeej tshiab. Lub hauv paus pib yog daim ntawv qub thiab CNC Styrocutter.DESIGNBOOM
Tsim thiab Ua tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels: 5 Cov Kauj Ruam
Tsim thiab Ua kom tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels: Tsim thiab Ua tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels
Kev tswj hwm tus kheej ntawm RPM ntawm Lub Cav Siv Lub Tswv Yim Los Ntawm IR Raws Li Tachometer: 5 Cov Kauj Ruam (nrog Duab)
Kev Tswj Tus Kheej ntawm RPM ntawm Lub Cav Siv Lub Tswv Yim Los Ntawm IR Raws Lub Tachometer: Muaj ib txwm xav tau rau kev siv tshuab txheej txheem, ua nws yooj yim/tsis txaus ntseeg. cov txheej txheem rau dej/siv dej rau peb daim av me me.Qhov teeb meem ntawm tsis muaj kab khoom siv tam sim no
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw
Cov lus qhia ntawm Kev Ua Kom Zoo Mock-Up ntawm Track Slide Tsim rau Nqa/Txo Hauv Pem Hauv Ntej-Mounted Footrests ntawm Lub Hwj Huam Log: 9 Kauj Ruam (nrog Duab)
Cov lus qhia ntawm Kev Ua Kom Tiav Mock-Up ntawm Track Slide Tsim rau Nqa/Sab Qaum Nruab Nrab-Mounted Footrests ntawm Lub Hwj Huam Lub Rooj Zaum: Lub hauv paus tau teeb tsa lub tog zaum kom nqa tau hauv qab lub rooj kom zoo, thiab qis dua kom siv tau. Ib lub tswv yim rau kev ua haujlwm ywj pheej ntawm kev tuav cov footrest thiab kev xa tawm tsis suav nrog lub rooj zaum fais fab lag luam, thiab PWC cov neeg siv tau qhia txog qhov xav tau