Go Down

Topic: New tutorial - Arduino and MediaTek 3329 GPS (Read 14565 times) previous topic - next topic


The best way to learn Arduino is with - http://nostarch.com/arduino. Please don't ask for help via direct message - use the forum!


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: [Select]
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: [Select]
void setup() {

void loop() {

An output was seen on the serial monitor.
Code: [Select]

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: [Select]
void loop() {
int flag;
flag = Serial.available();

The serial monitor would show "0" continuously.
Connecting the Tx and Rx of the GPS to Tx1 and Rx1 of Due and
Code: [Select]
flag = Serial1.available();

still shows "0".

Any help is much appreciated


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.

Go Up