10 years, 3 months ago.

gps module em 406

dear all I use gps module em 406 with lpc1768 with its application board. the process carried out successfully with pin 9 and 10. but the problem is when I used pin 27 and 28 instead.

include "mbed.h"

  1. include "GPS.h"
  2. include "C12832.h" C12832 lcd(p5, p7, p6, p8, p11); GPS gps(p9, p10);

int main() {

while(1){ if (gps.sample()) lcd.printf("Hi, Sami Alshorman now at %f, %f\n", gps.longitude, gps.latitude); else lcd.printf("error\n"); } } when I us GPS gps(p27,p28) . it give me nothing. please any help . because I use pin 9 and 10 for gprs regards

1 Answer

10 years, 3 months ago.

You have reversed tx and rx. Try GPS gps(p28,p27) instead.

Accepted Answer

thanx a lot , I will try

posted by Sami Alshorman 27 Aug 2014