Hey guys I am trying to read raw data from a gps module using TTL communication on RX pin 0 on the arduino mega. i dont know how to program it since i am total noob at arduino programming.
can someone help me out please.
Bajdi is correct. Also check http://letsmakerobots.com/node/5972
Gareth has a lot of pointers on using GPS with an Arduino.
Are you trying to read data from the GPS while you have the Arduino connected to your PC? Do not use pin 0 and 1 because these are used for the serial connection to your pc. The mega has 3 serial busses, so use another one.Have you looked at the tinygps library? Looked at the examples that come with it?