User Tools

Site Tools


ideas:gps_survey_node

GPS Survey Node

I needed a simple portable node that would repeatedly broadcast its location using a connected GPS so I could make range measurements.

Hardware

I used a Moteino board with an RFM69HW RF unit and uBLOX Max 8 breakout board. The uBLOX serial connects via a sofwareSerial using Arduino pins 3 and 4.

Software

I started with the standard UKHASnet sensor code and added the tinyGPS++ library to parse the GPS data plus SoftwareSerial to handle the GPS serial connection.

There are just two new functions, one to parse the GPS data and create a new value for LOCATION_STRING - gpsLocate(). The second function updates the GPS coordinates - smartDelay(ms)

Portability

The code should work on any Arduino based node providing you set the right board type in the IDE.

ToDo

The hook into the location setting is a bit crude so needs tidying up probably with #ifdef

You can find the code here: https://github.com/ptamike/UKHASnetGPS_sensor_node/

ideas/gps_survey_node.txt · Last modified: 2020/06/27 23:02 (external edit)