Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Adding a magnetometer to PyTrack + LoPy?

    Scheduled Pinned Locked Moved Expansion Board
    pytracklopygpsexpansion boardmagnetometer
    4 Posts 2 Posters 1.1k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      JonasDe
      last edited by

      Hi All!

      I'm looking to put together a board containing a LoRa module, GPS, accelerometer, gyroscope, and magnetometer. The combination of PyTrack and LoPy seems to match this very well, but is lacking the magnetometer.

      Does anyone have any suggestions for how I could most easily add a magnetometer? Alternatively, is there any other way to determine the heading (north, south, etc.) without the use of a magnetometer (apart from using the GPS)?

      1 Reply Last reply Reply Quote 0
      • sebS Offline
        seb
        last edited by

        I have had success connecting a IMU9250 (https://www.sparkfun.com/products/13762) to a pycom module. You can find a library for it here: https://github.com/micropython-IMU/micropython-mpu9x50

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JonasDe @seb
          last edited by JonasDe

          @seb said in Adding a magnetometer to PyTrack + LoPy?:

          I have had success connecting a IMU9250 (https://www.sparkfun.com/products/13762) to a pycom module. You can find a library for it here: https://github.com/micropython-IMU/micropython-mpu9x50

          Thank you for your response!

          The IMU9250 looks like it could solve the problem. One thing I'm still unsure about is how to connect it to the pycom module? I don't have much experience with hardware, so I apologize if this is obvious.

          sebS 1 Reply Last reply Reply Quote 0
          • sebS Offline
            seb @JonasDe
            last edited by

            @jonasde

            On the bottom of your Pysense board you will find a 5x2 header you can solder to (see: https://docs.pycom.io/chapter/datasheets/downloads/pysense-pinout.pdf) When I connected it I used P8 and P4 which are availble on pins 9 and 10 of the external header. You will also need to connect to GND and 3V3_Sensor to the modules GND and Vdd pins.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better đź’—

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom