Hi all,

I have bought a MediaTek MT3329 GPS chip, very nice, and am using it with my Arduino Nano.


I am trying to set it to output the diydrones message message at 10Hz, 38400baud.

I believe the setup code should be:


Serial.begin(38400);

Serial.print("$PMTK220,100*2F\r\n");

Serial.print("$PMTK251,38400*27");
Serial.print("$PGCMD,16,0,0,0,0,0*6A\r\n");

However, this doesn't seem to work.  It is printing all sorts of other messages to the screen, GGA, GSA etc, but nothing starting with 0xB5, 0x62.

Any ideas?

Regards,

Simon

Tags: GPS, MT3329, MediaTek

Views: 665

Reply to This

Replies to This Discussion

Have you had any luck with your GPS sensor? It looks like I will have to get a new one and I am wondering what people think of the 3329.

 

Russ

russnagel1@yahoo.com

 

Yes, I got it working.

Turned out the code on the DiyDrones site is fine (as I suspected).  The problem was the SoftwareSerial library.  In the software buffer is so small it wasn't able to receive 2 NMEA messages GGA and RMC.  It will just receive GGA and VTG if you ammend the buffer size to 128bytes in the SoftwareSerial.h header.  Increase any more than this and you get horrible memory violations (on the Arduino Nano).

So, using the DiyDrones code for NMEA, editing the init() to give me GGA and VTG (look at the links on the product page), and edit the SoftwareSerial.h to take 128 bytes rather than 64, now works fine.  I'm even running it all without a level shift at 5v (lol, it's going to blow eventually!).

Hope this helps pal

Sounds Great! I use an Atmel ATMEGA 32, so the code will be very similar. You can get 3.3V voltage regulators pretty easily. I don't know how difficult that would be to implement with the Ardu hardware. How is the accuracy of the sensor? Does it seem to get you within, say, 10 feet?

 

The  noise is very low which is good. Absolute accuracy relative to a known point I haven't checked yet because I don't really it.

The chip has it's own 3v3 regulator so you can power it from 5v.  The logic level is 3v3 but as I say, the tmel registers 3v3 as a high even though it's a 5v device, and I have successfully and repeatedly programmed the GPS at 5v logic. (although I wouldnt recommend doing this!)

>The chip DIY Drones adapter board ($8.90 without, or $37.95 with GPS module mounted) has it's own 3v3 regulator so you can power it from 5v.  


The bare module (the $29.99 part) does not have a regulator. And even it has several "chips" on that module.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service