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
Permalink Reply by Russ Nagel on March 13, 2012 at 5:21am 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
Permalink Reply by Simon Howroyd on March 13, 2012 at 5:27am 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
Permalink Reply by Russ Nagel on March 13, 2012 at 6:07am 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?
Permalink Reply by Simon Howroyd on March 13, 2012 at 7:27am 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!)
Permalink Reply by Ken on March 29, 2012 at 5:00pm >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.
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.106 members
1298 members
51 members
87 members
47 members
© 2013 Created by Chris Anderson.
Powered by
