As soon as checked the connections and powering the Arduino Uno/Duemilanove , one can monitor the NMEA sentenc output using Arduino serial monitor or any terminal emulator such as Putty. For me, I use SSCOM to test GPS and bluetooth modules on Windows XP.
Pin Used And Connection
Arduino - GPS Module
5V - Pin2(VIN)
GND - Pin1(GND) and Pin5(GND)
D2(SoftwareSerial RX) - Pin3(TX)
D3(SoftwareSerial TX) - Pin4(RX)
Output
Sketch
// Test Code for GlobalSat EM-411 GPS Modules
// Arduino 0022 Has Built-in SoftwareSerial.h Library
// Download the Library is not Needed
// The sketch works on Arduino IDE 0022
#include <SoftwareSerial.h>
SoftwareSerial GPS = SoftwareSerial(2, 3);
void setup()
{
Serial.begin(9600);
Serial.println("GlobatSat EM-411 GPS Module NMEA Sentence Test!");
// EM-411 factory default baud rate is 4800, the module used has been changed the baud rate
GPS.begin(9600);
}
void loop() // whatever read from GPS, sent to Arduino serial monitor or terminal emulator
{
Serial.print(GPS.read(), BYTE);
}
No comments:
Post a Comment