Adding a magnetometer to PyTrack + LoPy?
-
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)?
-
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
andP4
which are availble on pins 9 and 10 of the external header. You will also need to connect toGND
and3V3_Sensor
to the modulesGND
andVdd
pins.
-
@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.
-
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