Fe(II)man
Member level 1
- Joined
- Aug 26, 2012
- Messages
- 38
- Helped
- 5
- Reputation
- 10
- Reaction score
- 5
- Trophy points
- 1,288
- Location
- Durban
- Activity points
- 1,633
Hey guys,
I trust all is well, I am sorry in advance if this is the wrong group, I couldn't find the correct group for GPS issues.
Anyway, I have purchased the Mediatek MT3329 GPS V2.0 module and I wish to use it to add Geotagging capability to my design project. I have already blown my budget by purchasing this device and cannot purchase another GPS module so I have to make this work.
I have an arduino uno which i want to merge this GPS device with.
The GPS can be found here:
**broken link removed**
On this site, the datasheet along with the other resources are listed. However this site makes use of the GPS module in conjunction with their own hardware and the ArduMega board. The libraries they have are extensive however I am having severe difficulty in finding code to help me merge this module with the Arduino Board.
Can someone please guide me in the right direction regarding:
How to change the output of the GPS module to NMEA output
How to hook this module up to the arduino uno using the Software Serial library. I have the Latest uno board and Arduino IDE 1.0
I have this piece of code, but the output i receive on the serial monitor is some intense ASCII characters:
Just to be clear I am connecting Digital Pin2 of the arduino to the GPS module pin labelled RX-0ut and the Digital Pin3 of the arduino board to the Tx-IN pin on the module. This may seem completely wrong but the board labels its ouput as RX, i think implying that the RX of the microcontroller should be connected to it. I am not sure if this is correct. The board labels are visible in the above website link.
Any help will be appreciated. I am desperate now as my design is due in a week and I am finishing up the project as a whole with only this remaining.
Thanking you in advance
I trust all is well, I am sorry in advance if this is the wrong group, I couldn't find the correct group for GPS issues.
Anyway, I have purchased the Mediatek MT3329 GPS V2.0 module and I wish to use it to add Geotagging capability to my design project. I have already blown my budget by purchasing this device and cannot purchase another GPS module so I have to make this work.
I have an arduino uno which i want to merge this GPS device with.
The GPS can be found here:
**broken link removed**
On this site, the datasheet along with the other resources are listed. However this site makes use of the GPS module in conjunction with their own hardware and the ArduMega board. The libraries they have are extensive however I am having severe difficulty in finding code to help me merge this module with the Arduino Board.
Can someone please guide me in the right direction regarding:
How to change the output of the GPS module to NMEA output
How to hook this module up to the arduino uno using the Software Serial library. I have the Latest uno board and Arduino IDE 1.0
I have this piece of code, but the output i receive on the serial monitor is some intense ASCII characters:
Code:
#if (ARDUINO >= 100)
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3);
#else
// If you're using Arduino IDE v23 or earlier, you'll
// need to install NewSoftSerial
#include <NewSoftSerial.h>
NewSoftSerial mySerial(2, 3);
#endif
// Connect the GPS Power pin to 3.3V
// Connect the GPS Ground pin to ground
// Connect the GPS VBAT pin to 3.3V if no battery is used
// Connect the GPS TX (transmit) pin to Digital 2
// Connect the GPS RX (receive) pin to Digital 3
// For 3.3V only modules such as the UP501, connect a 10K
// resistor between digital 3 and GPS RX and a 10K resistor
// from GPS RX to ground.
// different commands to set the update rate from once a second (1 Hz) to 10 times a second (10Hz)
#define PMTK_SET_NMEA_UPDATE_1HZ "$PMTK220,1000*1F"
#define PMTK_SET_NMEA_UPDATE_5HZ "$PMTK220,200*2C"
#define PMTK_SET_NMEA_UPDATE_10HZ "$PMTK220,100*2F"
// turn on only the second sentence (GPRMC)
#define PMTK_SET_NMEA_OUTPUT_RMCONLY "$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"
// turn on ALL THE DATA
#define PMTK_SET_NMEA_OUTPUT_ALLDATA "$PMTK314,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
// to generate your own sentences, check out the MTK command datasheet and use a checksum calculator
// such as the awesome http://www.hhhh.org/wiml/proj/nmeaxor.html
void setup()
{
Serial.begin(9600);
Serial.println("Adafruit MTK3329 NMEA test!");
// 9600 NMEA is the default baud rate
mySerial.begin(9600);
// uncomment this line to turn on only the "minimum recommended" data for high update rates!
//mySerial.println(PMTK_SET_NMEA_OUTPUT_RMCONLY);
// uncomment this line to turn on all the available data - for 9600 baud you'll want 1 Hz rate
mySerial.println(PMTK_SET_NMEA_OUTPUT_ALLDATA);
// Set the update rate
// 1 Hz update rate
mySerial.println(PMTK_SET_NMEA_UPDATE_1HZ);
// 5 Hz update rate- for 9600 baud you'll have to set the output to RMC only (see above)
//mySerial.println(PMTK_SET_NMEA_UPDATE_5HZ);
// 10 Hz update rate - for 9600 baud you'll have to set the output to RMC only (see above)
//mySerial.println(PMTK_SET_NMEA_UPDATE_10HZ);
}
void loop() // run over and over again
{
if (mySerial.available()) {
Serial.print((char)mySerial.read());
}
if (Serial.available()) {
mySerial.print((char)Serial.read());
}
delay(1000);
}
Just to be clear I am connecting Digital Pin2 of the arduino to the GPS module pin labelled RX-0ut and the Digital Pin3 of the arduino board to the Tx-IN pin on the module. This may seem completely wrong but the board labels its ouput as RX, i think implying that the RX of the microcontroller should be connected to it. I am not sure if this is correct. The board labels are visible in the above website link.
Any help will be appreciated. I am desperate now as my design is due in a week and I am finishing up the project as a whole with only this remaining.
Thanking you in advance