asset-tracker-gcp-mongoose-os
asset-tracker-gcp-mongoose-os copied to clipboard
π§ An Asset Tracker made with an ESP32 running MongooseOS + GPS and GPRS Module, sending data through Google Cloud IoT Core
Asset Tracker using MongooseOS and Google Cloud
Overview
IoT Project using MongooseOS with it's awesome GPRS with PPPoS. Data will be sent to Google Cloud to be analysed and visualized.
WebApp: https://asset-tracker-iot.firebaseapp.com
Upload firmware with Mongoose OS Tools
To use it we need to download and install it from the official website. Follow the installation instructions on https://mongoose-os.com/docs/quickstart/setup.html.
mos build --arch esp32mos flash
Provision and config
mos wifi your_ssid your_passmos gcp-iot-setup --gcp-project your_project --gcp-region us-central1 --gcp-registry your_registry
BOM
- Any ESP32 Board (I used a Lolin32).
- NEO 6M uBlox GPS module.
- Sim800L GSM module.
- 220 Ohm resistor for the LED.
- Blue and Green LED for status of the device.
- 1k Ohm resistor for the MOSFET trigger.
- IRF540N MOSFET (donβt try to use a cheap MOSFET, like the TIP120, because it cannot handle the GSM Module current needs)
- Jumpers
- Perfboard for prototype (Optional)
Schematic
![]()
Setup Firebase, deploy functions and webapp
- Install firebase tools:
npm install -g firebase-toolsoryarn global add firebase-tools - Install webapp dependencies:
npm installoryarn install - Build React Application:
yarn run buildoryarn run build - Install functions dependencies:
cd functions && npm installorcd functions && yarn install - Associate project with Firebase:
firebase init - Deploy all the things:
firebase deploy
References
- https://github.com/mongoose-os-apps/example-rpc-c
- https://github.com/mongoose-os-libs/pppos
- GPS NMEA Tracker - https://github.com/kosma/minmea