NEO-6M GPS Connected to NodeMCU - OLED Display Position - Visuino

by RonFrtek in Circuits > Arduino

5041 Views, 8 Favorites, 0 Comments

NEO-6M GPS Connected to NodeMCU - OLED Display Position - Visuino

NEO-6M GPS Connected to NodeMCU - OLED Display position - Visuino

In this tutorial we will use NodeMCU Mini , OLED Lcd,NEO-6M GPS, and Visuino to display live GPS position on the LCD. Watch a demonstration video.

What You Will Need

F6WKZUHJJ4ZYFJ8.LARGE.jpg
6c6fd461ba0167c8e16ab9585cf3d3f1.jpg
F7WXB0JJJ4ZYGGX.LARGE.jpg
F5OFEUQJJ4ZYFKY.LARGE.jpg
FXQ4NRRJJ4ZYFIT.LARGE.jpg

All the modules are from makerfabs. They have the best quality modules that are Light-years ahead the competition, also with best affordable prices.

  • NodeMCU Mini
  • NEO-6M GPS module
  • OLED Lcd
  • Breadboard
  • Jumper wires
  • Visuino program: Download Visuino

The Circuit

2018-09-04_16-43-48.jpg
  • Connect GND from NodeMCU to breadboard pin (gnd)
  • Connect 5V pin from NodeMCU to breadboard pin (positive)
  • Connect pin 0 (SCL) from NodeMCU to OLED LCD pin (SCL)
  • Connect pin 1 (SDA) from NodeMCU to OLED LCD pin (SDA)
  • Connect OLED LCD pin (VCC) to breadboard pin (positive)
  • Connect OLED LCD pin (GND) to breadboard pin (GND)
  • Connect 5V pin from breadboard GPS pin (VCC)
  • Connect GND pin from breadboard GPS pin (GND)
  • Connect pin (RX) from NodeMCU to GPS pin (TXD)

Start Visuino, and Select the NodeMCU ESP-12

FGEDJB4JJOK456K.LARGE.jpg
FW19DQSJJOK456J.LARGE.jpg

To start programming the Arduino, you will need to have the Arduino IDE installed from here: http://www.arduino.cc/.

Please be aware that there are some critical bugs in Arduino IDE 1.6.6. Make sure that you install 1.6.7 or higher, otherwise this Instructable will not work! If you have not done follow the steps in this Instructable to setup the Arduino IDE to program ESP 8266! The Visuino also needs to be installed. Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "NodeMCU ESP-12" as shown on Picture 2

In Visuino Add Components

NodeMCU-GPS.png
2018-09-04_16-56-51.jpg
  • Add DisplayOLED component
  1. double click and add "Text Field" six times (see the picture)
  2. Under properties window set Y for each text field increased by 10, for the first text field Y:0, second text field Y:10, third text field Y:20,etc
  • Add GPS component

In Visuino: ​Connecting Components

NodeMCU-GPS.png
  • Connect NodeMCU ESP-12 I2C pin [in] to DisplayOLED1 I2C pin [Out]
  • Connect NodeMCU ESP-12 Serial IN Pin[0] to GPS1 Pin[Out]
  • Connect GPS1 pin [Longitude] to DisplayOLED1 Elements.TextField1 pin[In]
  • Connect GPS1 pin [Latitude] to DisplayOLED1 Elements.TextField2 pin[In]
  • Connect GPS1 pin [Count] to DisplayOLED1 Elements.TextField3 pin[In]
  • Connect GPS1 pin [Speed] to DisplayOLED1 Elements.TextField4 pin[In]
  • Connect GPS1 pin [Course] to DisplayOLED1 Elements.TextField5 pin[In]
  • Connect GPS1 pin [Azimuth] to DisplayOLED1 Elements.TextField6 pin[In]

Generate, Compile, and Upload the Arduino Code

FVS3Y85JJ4ZYH0Q.LARGE.jpg
F314C8EJJ4ZYH0D.LARGE.jpg

In Visuino, Press F9 or click on the button shown on Picture 1 to generate the Arduino code, and open the Arduino IDE

In the Arduino IDE, click on the Upload button, to compile and upload the code (Picture 2)

Play

If you power the NodeMCU module, the OLED Lcd will start showing the GPS position and other data such as Speed,etc. Make sure that the SKY is visible so that the GPS module can receive a clean signal.

Congratulations! You have completed your Live News project with Visuino. Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: Download link