Cov txheej txheem:

Yuav Ua Li Cas Txuas NodeMCU / ESP8266 thiab OLED Shield: 8 Kauj Ruam
Yuav Ua Li Cas Txuas NodeMCU / ESP8266 thiab OLED Shield: 8 Kauj Ruam

Video: Yuav Ua Li Cas Txuas NodeMCU / ESP8266 thiab OLED Shield: 8 Kauj Ruam

Video: Yuav Ua Li Cas Txuas NodeMCU / ESP8266 thiab OLED Shield: 8 Kauj Ruam
Video: How I Made this Electric Car that can go Anywhere 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas Txuas NodeMCU / ESP8266 thiab OLED Shield
Yuav Ua Li Cas Txuas NodeMCU / ESP8266 thiab OLED Shield

Kuv yuav qhia hauv cov lus qhia no yuav ua li cas txuas NodeMCU V2 Amica (ESP8266) ntawm I2c mus rau OLED zaub raws li lub npe SSD1306 nti. Rau OLED peb yuav siv hauv qhov kev qhia no yog OLED Shield uas los nrog cov muag 0, 96 nti OLED thiab 3 khawm + 3 LEDs txuas nrog MCP23008 …..

Kauj ruam 1:

Duab
Duab
Duab
Duab
Duab
Duab

Nqi Khoom

  • NodeMCU V2 Amica Module
  • OLED ntaub thaiv npog
  • Cov qhob cij

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv

Cov ntaub thaiv npog los nrog cov xim sib txuas cable - saib cov duab hauv qab no rau kev thaiv.

Kauj Ruam 3: Nruab NodeMCU Tsav Tsheb

NodeMCU module suav nrog CP2102 nti rau USB interface. Feem ntau tus tsav tsheb yuav raug teeb tsa siv lub tshuab yog tias NodeMCU txuas nrog thawj zaug nrog lub PC. Qee zaum cov txheej txheem no ua tsis tiav. Hauv qhov no koj yuav tsum nruab tus tsav tsheb

www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

manually hauv Windows tus thawj tswj ntaus ntawv.

Kauj Ruam 4: Npaj Arduino IDE - Ntxiv NodeMCU

Kev npaj ntawm Arduino IDE - Ntxiv NodeMCU
Kev npaj ntawm Arduino IDE - Ntxiv NodeMCU

NodeMCU module tsis yog ib feem ntawm Arduino-IDE. Peb yuav tsum tau teeb tsa nws ua ntej. Qhib cov ntaub ntawv/nyiam nyob hauv Aduino-IDE thiab ntxig qhov txuas hauv qab no hauv Tus Thawj Saib Xyuas Haujlwm Ntxiv Ntxiv URLs:

Kaw lub qhov rai no nrog khawm OK.

Kauj Ruam 5: Kev Npaj Arduino IDE - Nruab NodeMCU Module

Kev npaj Arduino IDE - Nruab NodeMCU Module
Kev npaj Arduino IDE - Nruab NodeMCU Module
Kev npaj Arduino IDE - Nruab NodeMCU Module
Kev npaj Arduino IDE - Nruab NodeMCU Module

Tam sim no qhib tus thawj tswj hwm: Cov Cuab Yeej / Pawg Thawj Coj / Tus Thawj Saib Xyuas Haujlwm

Mus rau ESP8266 nkag thiab nruab nws.

Kauj Ruam 6: Kev npaj Arduino IDE - Kev teeb tsa ntawm NodeMCU Module

Kev npaj ntawm Arduino IDE - Kev teeb tsa ntawm NodeMCU Module
Kev npaj ntawm Arduino IDE - Kev teeb tsa ntawm NodeMCU Module

Tam sim no koj tuaj yeem xaiv NodeMCU 1.0 (ESP-12E Module). Teem CPU zaus rau 80MHz, Flash Loj rau „4M (3M SPIFFS)“, tus nqi baud uas koj xaiv thiab COM chaw nres nkoj. 8av ua

Kauj Ruam 7: Nruab Lub Tsev Qiv Ntawv

Adafruit SSD1306 Lub Tsev Qiv Ntawv:

Pib los ntawm kev txhim kho lub tsev qiv ntawv txhawb nqa rau OLED zaub, koj yuav xav tau nws tham nrog OLEDcontroller nti. Peb tab tom siv Adafruit SSD1306 lub tsev qiv ntawv khaws cia ntawm GitHub yog tias koj txaus siab saib qhov chaws. Koj tuaj yeem rub tawm lub tsev qiv ntawv kuj ncaj qha raws li ZIP cov ntaub ntawv ntawm qhov txuas no:

github.com/adafruit/Adafruit_SSD1306/archi…

Hloov lub npe tsis tau hloov pauv Adafruit_SSD1306 thiab tshawb xyuas tias Adafruit_SSD1306 nplaub tshev muaj Adafruit_SSD1306.cpp thiab Adafruit_SSD1306.h

Muab Adafruit_SSD1306 lub tsev qiv ntawv tais ceev tseg koj cov arduinosketchfolder/ libraries/ folder.

Adafruit GFX Lub Tsev Qiv Ntawv:

Koj yuav tsum ua tib yam rau Adafruit_GFX lub tsev qiv ntawv muaj nyob ntawm no:

Hloov lub npe tsis tau hloov pauv Adafruit_GFX thiab tshawb xyuas tias Adafruit_GFX nplaub tshev muaj Adafruit_GFX.cpp thiab Adafruit_GFX.h

Muab Adafruit_GFX lub tsev qiv ntawv tais ceev tseg koj cov arduinosketchfolder/ qiv ntawv/ nplaub tshev zoo li koj tau ua nrog SSD1306 lub tsev qiv ntawv

Adafruit MCP23008 Lub Tsev Qiv Ntawv

Koj yuav tsum ua tib yam rau Adafurit_MCP23008 lub tsev qiv ntawv muaj nyob ntawm no:

Hloov lub npe tsis tau hloov pauv Adafruit_MCP23008 thiab tshawb xyuas tias Adafruit_MCP23008 nplaub tshev muaj Adafruit_MCP23008.cpp thiab Adafruit_MCP23008.h

Muab Adafruit_MCP23008 lub tsev qiv ntawv tais ceev tseg koj cov arduinosketchfolder/ qiv ntawv/ nplaub tshev zoo li koj tau ua nrog cov tsev qiv ntawv saum toj no

Kauj ruam 8: Demosoftware

Demosoftware
Demosoftware

Tom qab txhim kho Adafruit cov tsev qiv ntawv, rov pib dua Arduino IDE. Tam sim no koj yuav tsum muaj peev xwm nkag mus rau tus lej piv txwv los ntawm kev mus los ntawm cov ntawv qhia zaub mov hauv qhov kev txiav txim no: Cov ntaub ntawv → Sketchbook → Tsev qiv ntawv → Adafruit_SSD1306 → SSD1306…

Koj yuav tsum rub peb cov qauv qauv rau NodeMCU & OLED Shield los ntawm

www.hwhardsoft.de/english/projects/displa…

tam sim no Thov qhib cov qauv no hauv Arduino IDE. Tom qab muab tso ua ke thiab rub tawm koj yuav tsum nias 3 khawm kom pom cov ntxaij vab tshaus sib txawv.

Peb qhov demo tsuas muaj qee qhov piv txwv ntawm qhov muaj peev xwm ntawm Adafruit GFX lub cav. Thov mus saib qhov txuas ntawm cov ntaub ntawv qhia ntxiv txog Adafruit lub tsev qiv ntawv

learn.adafruit.com/monochrome-oled-breakou…

Pom zoo: