Quick Introduction:

This tutorial is based on Real-Time GPS Monitoring using M5Stick C (ESP32) with the help of Qubitro's GPS Mapping System.

Things you needed:

  1. M5StickC
  2. M5Stack GPS Unit (AT6558)
  3. Grove connector
  4. Arduino IDE
  5. Google Colab

Hardware Connections:

Just kidding, there is no hard-wiring in this tutorial, simply connect the GPS unit with M5StickC, that's all.

Let's Compile:

I used the Tiny GPS library, It's very simple to use with maximum all other GPS units, and all the Cloud Integration could be found below documentation and on the Qubitro GitHub page. Upload the below Qubitro_Gps.ino sketch to the M5StickC.

ESP32
GitHub - qubitro/mqtt-client-arduino: Lightweight library that implements the MQTT protocol to publish/subscribe messaging, includes Qubitro IoT platform specific features.
Lightweight library that implements the MQTT protocol to publish/subscribe messaging, includes Qubitro IoT platform specific features. - GitHub - qubitro/mqtt-client-arduino: Lightweight library th...
Qubitro/Qubitro_Gps.ino at main · Kyoot-Create/Qubitro
Qubitro IoT Series. Contribute to Kyoot-Create/Qubitro development by creating an account on GitHub.

Data Visualization:

Once you upload the code to M5Stick C, go to your Qubitro Device Portal and you can see the create a chart tab.

Qubitro Device Page

After clicked the Creation a Chart tab, select chart type as a map and select the data variables ( like longitude, latitude as per the tabs)

Create a Chart (Map) page

That's all, now you are good to go, navigate to the Analytics area, and you can see the uploaded GPS Coordinates are mapped.

Mapped Co-ordinates

Mapping with Google Colab:

If you want to map your whole location data, here I've used a python script that can phrase GPS coordinates and maps. First, you have to download the Data from Qubitro Portal in the format of CSV (now in Beta Stage), then log in to google Colab and import the below python script.

Qubitro/Qubitro_GPS_Map.ipynb at main · Kyoot-Create/Qubitro
Qubitro IoT Series. Contribute to Kyoot-Create/Qubitro development by creating an account on GitHub.
Google Colab 

Import the downloaded CSV files from the Qubitro Portal. Execute the blocks one by one (make sure to rename the files in both script and files).

Python Mapping

So it's very simple and easy to use python script, Once you executed the final block you can find the logged map (sample CSV file uploaded in the GitHub).

Device in action

Interested in our ambassador program?

Apply to Qubitro Ambassador Program
Qubitro ambassador program is the global network of passionate, experienced developers and thought leaders who actively support developers.