In this example, we use Adafruit Ultimate GPS Breakout to retrieve GPS information with the Ameba board.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
In this example, we use Adafruit Ultimate GPS Breakout. Its data format is pure text, so we can connect it to USB to TTL Adapter and observe the output.
It follows the NMEA sentence format (refer to http://aprs.gids.nl/nmea/)The GPS signal is weak in indoor environment. The status that the GPS signal is not received is called “not fix”. Bring the GPS module outdoors, when the GPS signal is “fix”, you would get message similar to the figure below.
In this example we are only interested in the “$GPRMC (Global Positioning Recommended Minimum Coordinates)”:
$GPRMC,032122.000,A,2446.8181,N,12059.7251,E,0.39,78.89,270116,,,A*53
Each field is separated by a comma.
In this example, 2446.8181,N represents 24 degrees 46.8181 minutes north latitude, and 12059.7251,E represents 120 degrees 59.7251 minutes east longitude.
We can search +24 46.8181’, +120 59.7251’ in Google map to check whether the position is correct.
AMB21 / AMB22:
AMB23:
BW16:
BW16 type C:
AW-CU488 Thing Plus:
Open the example in “Files” -> “Examples” -> “AmebaSoftwareSerial” -> “Adafruit_GPS_parsing”.
Compile and upload to Ameba, then press the reset button. The result will be output to Serial Monitor:
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates