the code in this link above is working perfectly on arduino uno but on arduino mega it doesn't work .......it don't get the longitude and latitude from the gps so i suppose their is a problem with the pins chosen in the code for input and output in the softserial so i would like to know how to modify the code to make it work on arduino mega and what is the problem with the chosen pins now
Are you using Arduino 1.0? If so, try replacing "NewSoftSerial" with "SoftwareSerial". Pins 2 and 3 should work on the Mega just as well as the UNO. If that fails I would reduce the serial data rate for 115200 to 9600 to reduce the chance that the serial communications to Serial Monitor is having trouble.
i already modified NewSoftSerial to Software serial in the code and wprogram.h to Arduino.h in the tinygps library to make the code work on arduino 1.0 ................and i tried your suggestion of changing to 9600 and it didn't solve the problem ..........the code is outputing in the serial monitor
Latitude : 0.0000000 :: Longitude : 0.0000000
Latitude : 0.0000000 :: Longitude : 0.0000000
Latitude : 0.0000000 :: Longitude : 0.0000000
Latitude : 0.0000000 :: Longitude : 0.0000000
Latitude : 0.0000000 :: Longitude : 0.0000000
Latitude : 0.0000000 :: Longitude : 0.0000000
Latitude : 0.0000000 :: Longitude : 0.0000000
Latitude : 0.0000000 :: Longitude : 0.0000000
Latitude : 0.0000000 :: Longitude : 0.0000000
Latitude : 0.0000000 :: Longitude : 0.0000000
while it should out put some thing like this
Latitude : 30.330136 :: Longitude : 31.057404
Latitude : 30.330092 :: Longitude : 31.057339
Latitude : 30.330059 :: Longitude : 31.057275
Latitude : 30.329994 :: Longitude : 31.057146
by the way this right out put i can get using arduino uno
i solved the problem by changing the pins to pins 50,51 i don't know the concept of that but it worked