Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 8 months ago.
GPS
PLEASE help em to interface a GPS module with KL25Z to get latitude and longitude and display it on LCD ! please help
2 Answers
10 years, 8 months ago.
There are at least 6 examples of interfacing GPS modules to mbed on the Component page. There are also multiple examples of LCD libs for mbed on that page. Have you studied or tried any of these.
10 years, 8 months ago.
The basic idea is connected it to a uart. Do a a scanf looking for for "$GPGGA,%f,%f,%c,%f,%c" The first float is hours,minutes,seconds (you need to do a little playing to get it into a usable number) Float not int because some systems give you fractions of a second. The next number is latitude, 2 digits of degrees and then the rest is minutes, followed by a char of either N or S And then the same for longitude ony 3 digits of degrees.
See http://www.gpsinformation.org/dale/nmea.htm#GGA for more detail.
Or as Wim pointed out this has been done a lot of times already.