Cov txheej txheem:

NEO -6M GPS txuas rau NodeMCU - OLED Display Position - Visuino: 7 Kauj Ruam
NEO -6M GPS txuas rau NodeMCU - OLED Display Position - Visuino: 7 Kauj Ruam

Video: NEO -6M GPS txuas rau NodeMCU - OLED Display Position - Visuino: 7 Kauj Ruam

Video: NEO -6M GPS txuas rau NodeMCU - OLED Display Position - Visuino: 7 Kauj Ruam
Video: Машеник 1 Vin не отдали денги 2024, Hlis ntuj nqeg
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav siv NodeMCU Mini, OLED Lcd, NEO-6M GPS, thiab Visuino los tso saib GPS txoj haujlwm nyob ntawm LCD. Saib daim vis dis aus.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi

Txhua tus qauv yog los ntawm txiag txiag. Lawv muaj cov qauv zoo tshaj plaws uas yog Lub Teeb-xyoo ua ntej kev sib tw, nrog rau tus nqi pheej yig tshaj plaws.

  • NodeMCU Mini
  • NEO-6M GPS module
  • OLED Lcd
  • Cov qhob cij
  • Jumper xov hlau
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas GND los ntawm NodeMCU rau tus pin breadboard (gnd)
  • Txuas 5V tus pin los ntawm NodeMCU rau tus pin breadboard (zoo)
  • Txuas tus pin 0 (SCL) los ntawm NodeMCU rau OLED LCD tus pin (SCL)
  • Txuas tus pin 1 (SDA) los ntawm NodeMCU rau OLED LCD tus pin (SDA)
  • Txuas OLED LCD tus pin (VCC) mus rau tus pin breadboard (zoo)
  • Txuas OLED LCD tus pin (GND) rau tus pin breadboard (GND)
  • Txuas 5V tus pin los ntawm breadboard GPS tus pin (VCC)
  • Txuas GND tus pin los ntawm breadboard GPS tus pin (GND)
  • Txuas tus pin (RX) los ntawm NodeMCU rau GPS tus pin (TXD)

Kauj Ruam 3: Pib Visuino, thiab Xaiv NodeMCU ESP-12

Pib Visuino, thiab Xaiv NodeMCU ESP-12
Pib Visuino, thiab Xaiv NodeMCU ESP-12
Pib Visuino, thiab Xaiv NodeMCU ESP-12
Pib Visuino, thiab Xaiv NodeMCU ESP-12

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Cov Lus Qhia no teeb tsa Arduino IDE rau program ESP 8266! Visuino tseem yuav tsum tau teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cuab Yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "NodeMCU ESP-12" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam

Ntxiv DisplayOLED tivthaiv

  1. ob npaug nias thiab ntxiv "Text Field" rau lub sijhawm (saib daim duab)
  2. Nyob rau hauv cov khoom qhov rai teeb tsa Y rau txhua kab ntawv sau tau nce 10, rau thawj kab ntawv Y: 0, kab ntawv thib ob Y: 10, kab ntawv thib peb Y: 20, thiab lwm yam

Ntxiv GPS tivthaiv

Kauj Ruam 5: Hauv Visuino: Txuas Cov Khoom Siv

Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
  • Txuas NodeMCU ESP-12 I2C tus pin [hauv] rau DisplayOLED1 I2C tus pin [Tawm]
  • Txuas NodeMCU ESP-12 Serial IN Pin [0] rau GPS1 Pin [Tawm]
  • Txuas GPS1 tus pin [Longitude] rau DisplayOLED1 Elements. TextField1 tus pin [Hauv]
  • Txuas GPS1 tus pin [Latitude] rau DisplayOLED1 Elements. TextField2 tus pin [Hauv]
  • Txuas GPS1 tus pin [Suav] rau DisplayOLED1 Elements. TextField3 tus pin [Hauv]
  • Txuas GPS1 tus pin [Ceev] rau DisplayOLED1 Elements. TextField4 tus pin [Hauv]
  • Txuas GPS1 tus pin [Hoob] rau DisplayOLED1 Elements. TextField5 tus pin [Hauv]
  • Txuas GPS1 tus pin [Azimuth] rau DisplayOLED1 Elements. TextField6 tus pin [Hauv]

Kauj Ruam 6: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE

Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)

Kauj ruam 7: Ua si

Yog tias koj siv lub NodeMCU module, OLED Lcd yuav pib qhia txog GPS txoj haujlwm thiab lwm yam ntaub ntawv xws li Ceev, thiab lwm yam.

Nrog koj zoo siab! Koj tau ua tiav koj Txoj Haujlwm Xov Xwm Tshiab nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau qhov Qhia Qhia no. Koj tuaj yeem rub tawm thiab qhib nws hauv Visuino: Rub tawm txuas

Pom zoo: