How to connect GPS and and accelerometer and the same time?

Forums Technical Support for BerryGPS and BerryGPS-IMU How to connect GPS and and accelerometer and the same time?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17145
    Renaldonson
    Participant

    I´m trying to connect the GPS and the accelerometer at the same time how can i do this? Or if its a guide to do it where can i find it?

     

    Thanks.

    #17168
    Mark Williams
    Keymaster

    this is possible.
    You would use GPSMON to read the GPS data;
    https://ozzmaker.com/berrygps-setup-guide-raspberry-pi/
    And then you would use Python to read the accelerometer using the I2C interface;
    https://ozzmaker.com/berryimu/

    Mark --OzzMaker.com --

    #17174
    Renaldonson
    Participant

    Thanks a lot for the response.

    Another question, is there a post where can I see how to get the YAW measure or how to calculated.

    #17175
    Renaldonson
    Participant

    I'm calculating the YAW with this equation:

    yaw = 180 * math.atan2(-MAGy,MAGx)/M_PI

    Where MAGy and MAGx is the magnetometer value.

    I don´t know if this is the correct way.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop...