Read GPS data from thingspeak and show it in the Google map using ESP12e Nodemcu and GPS Neo 6M Module

Programming ESP12E NodeMCU Module to upload GPS data on Thingspeak


We will be programming ESP12E NodeMCU Module to upload GPS data on Thingspeak. In the previous tutorial we created a thingspeak channel and copy pasted credentials on a notepad file. We will now use these credentials which we got from our new created channel to upload the data onto them. In the first lesson  we setup the breadboard circuit ESP12E NodeMCU and connected it to Neo 6M GPS module. Now lets program and see the uploaded data on the thingspeak chart. Follow the below instructions step by step:

  1. You will need the "Tiny GPS Plus" library for this tutorial. Visit the following link and add it to the arduino library.

Download the zip and include it in the arduino library.



(If you don't know how to add new library to Arduino IDE then follow this tutorial : "Adding External Library in Arduino")

2. Now create a new sketch and copy and paste the following code:


3. Replace the following things with your own thingspeak credentials:
1. Your wifi username and password
2. Your "Thingspeak Write API Key"

Creating-Thingspeak-channel-for-storing-GPS-data-received-from-ESP12E-NodeMCU-Module (7)

Creating-Thingspeak-channel-for-storing-GPS-data-received-from-ESP12E-NodeMCU-Module (7)

4. Save the program and flash ESP12E NodeMCU Module with this program.

Now, wait till your Neo 6M GPS module's led has started blinking. It might take around 2-10 minutes but it will start blinking. Have patience. And then go check your thingspeak channel. If you have done everything right, then ESP12E NodeMCU will start updating the channel with a delay of 15 seconds. And you will get something like show in the below image:
(Hiding my data because I don't want anyone stalking around 😀 )


Creating-Thingspeak-channel-for-storing-GPS-data-received-from-ESP12E-NodeMCU-Module (6)

Creating-Thingspeak-channel-for-storing-GPS-data-received-from-ESP12E-NodeMCU-Module (6)

Hope you enjoyed the tutorial, In the next step, we will parse this thingspeak data and show it in a Google map with marker. Click on the below next chapter to go ahead.

Please login to get access to the quiz
Creating Thingspeak channel for storing GPS data received from ESP12E NodeMCU Module (Prev Lesson)
(Next Lesson) Showing Thingspeak GPS data in Google Maps using Javascript and HTML
Back to Read GPS data from thingspeak and show it in the Google map using ESP12e Nodemcu and GPS Neo 6M Module

No Comments

Post a Reply