Security
Secure data upload to openSenseMap
Information on connecting and programming the sensors, Bees and other components
The GPS module receives the position (longitude/latitude/altitude) of the senseBox. This can be used for mobile applications, e.g. mobile data transfer to the openSenseMap. This sensor is compatible with the most common GNS systems (GPS, QZSS, GLONASS, BeiDou, Galileo) and is based on the u-blox CAM-M8Q Multi GNSS module.
The GPS sensor is connected to an I2C port.
#include <SenseBoxMCU.h>
GPS gps;
float lat; //Geografische Breite
float lng; //Geografische Länge
float alt; //Höhe über Meeresspiegel in Metern
float speed;
float date;
float time;
void setup()
{
gps.begin();
}
void loop()
{
gps.getGPS();
lat = gps.getLatitude();
lng = gps.getLongitude();
alt = gps.getAltitude();
speed = gps.getSpeed();
date = gps.getDate();
time = gps.getTime();
Serial.print(lat, 6);
Serial.print(F(","));
Serial.print(lng, 6);
Serial.print(F(","));
Serial.println(alt, 1);
Serial.print(F(","));
Serial.println(speed, 4);
Serial.print(F(","));
Serial.println(date);
Serial.print(F(","));
Serial.println(time);
delay(100);
}
In Blockly the sensor can be read out via the following block:
In the block you can choose between the different parameters of the GPS module: