Pages: [1]   Go Down
Author Topic: New tutorial - Arduino and MediaTek 3329 GPS  (Read 8702 times)
0 Members and 1 Guest are viewing this topic.
Melbourne, Australia
Offline Offline
Jr. Member
**
Karma: 6
Posts: 88
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

New tutorial on using GPS shields based on receivers with the MediaTek 3329 chipset:

http://tronixstuff.com/2014/01/15/tutorial-arduino-mediatek-3329-gps/
Logged

Check out my Arduino tutorials at http://tronixstuff.com/tutorials - Order my new Arduino book from http://www.arduinoworkshop.com

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is a nice tutorial.

I am having a problem with it though.
I am using the following:
Arduino Due
MediaTek-3329 V2.0 from BYOD: http://www.buildyourowndrone.co.uk/MediaTek-MT3329-GPS-V2-0-p/gps-mt3329-v2.0.htm

They are connected directly without a shield with their connection being:
Due  ----   MediaTek
5V                5V
GND            GND
Tx0              Tx
Rx0              Rx

Code:
GPS.ino:1: fatal error: SoftwareSerial.h: No such file or directory
compilation terminated.
I read somewhere that SoftwareSerial.h is removed from Arduino Due.

I then removed all the code and left with
Code:
void setup() {
Serial.begin(38400);
}

void loop() {
}
An output was seen on the serial monitor.
Code:
$GPGGA,125714.200,5458.8807,N,00136.9402,W,1,5,1.99,115.0,M,47.8,M,,*42
$GPGSA,A,3,10,13,04,23,02,,,,,,,,2.22,1.99,0.99*05
$GPRMC,125714.200,A,5458.8807,N,00136.9402,W,0.00,176.97,240114,,,A*76
$GPVTG,176.97,T,,M,0.00,N,0.00,K,A*33

From this I know the communication works. However no matter what I add, I am unable to obtain a continuous flow of data.
I tried this but to no avail:
Code:
void loop() {
 int flag;
flag = Serial.available();
Serial.print(flag);
Serial.print("\n");
delay(100);
}

The serial monitor would show "0" continuously.
Connecting the Tx and Rx of the GPS to Tx1 and Rx1 of Due and
Code:
flag = Serial1.available();
Serial.print(flag);
Serial.print("\n");
still shows "0".

Any help is much appreciated
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have managed to solve the problem of not receiving running data.

The problem was the wrong connection of wire from Due to MediaTek.
Tx0 of Due should go to MediaTek of Rx and Rx0 to Tx.

In addition, remove SoftwareSerial.h from the example given on that page and replace it with either Serial1, Serial2 or Serial3.
TinyGPS.h works fine.
Logged

Pages: [1]   Go Up
Jump to: