Connecting a MEGA to a MT3329 :)

Hi, just having fun and learning !~~!

Has anyone been successful connecting a arduino MEGA to a MediaTek MT3329 GPS?

OR  can some wizard type figure the code and connection that works?

I'll be happy to test it for you :)

both sold on diydrones see links

https://store.diydrones.com/product_p/br-dev-09152.htm

https://store.diydrones.com/MediaTek_MT3329_GPS_10Hz_Adapter_Basic_p/mt3329-02.htm

Thanks,

Rick

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • You could use the GPS library and try something along the lines of this here (cut&paste from various sources):

    #include <FastSerial.h>
    #include <AP_Common.h>
    #include <AP_GPS.h>

    #define GPS_SERIAL_BAUD 38400
    #define GPSP Serial1

    FastSerialPort0(Serial);
    FastSerialPort1(Serial1); // GPS

    static GPS *g_gps;
    AP_GPS_MTK16 g_gps_driver(&Serial1);

    int numSats=0;
    int gpsfix=0;

    void setup()
    {
    GPSP.begin(GPS_SERIAL_BAUD);
    delay(500);
    g_gps = &g_gps_driver;
    g_gps->init(); // GPS Initialization
    }

    void loop()
    {
    update_GPS();
    delay(500);
    }

    static void update_GPS(void) {
    g_gps->update();
    numSats = g_gps->num_sats;
    gpsfix = g_gps->status();

    if (g_gps->new_data && g_gps->fix) {
    gps_fix_count++;

    longitude = g_gps->longitude; // Lon * 10**7
    latitude = g_gps->latitude; // Lat * 10**7
    altitude = g_gps->altitude/100;
    }

    g_gps->new_data = 0;
    }

This reply was deleted.

Activity