Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. magnetometer
    Log in to post

    • O

      Some magnetometer sensors are incompatible with the pytrack shield
      LoPy • lopy i2c sensors magnetometer pytrack i2c • • oldGuyDave  

      13
      0
      Votes
      13
      Posts
      1289
      Views

      O

      @robert-hh I looked at that device but I'm trying to keep my system as simple as possible so I did not pursue that option. I does, however, look like a viable alternative in the event your s/w solution was inadequate for some reason. thanks.
    • O

      Problem getting MAG data from Adafruit LSM303
      LoPy • lopy adafruit magnetometer • • oldGuyDave  

      4
      0
      Votes
      4
      Posts
      719
      Views

      O

      @rcolistete Maybe I misunderstood your question. The code I was referring to above is my own library that calls the 'built-in' machine.I2C micropython driver supplied in the LoPy firmware binary rev. 1.18.1.r1. Example: def __init__(self): self.i2c = I2C(0, mode=I2C.MASTER, pins=(sda, scl), baudrate=100000); magEnable = [0x10, 0x20, 0x00] self.i2c.writeto_mem(MAG_DEV_ADDR, MAG_CONFIG_REG_A, bytearray(magEnable));
    • J

      Adding a magnetometer to PyTrack + LoPy?
      Expansion Board • lopy pytrack expansion board gps magnetometer • • JonasDe  

      4
      0
      Votes
      4
      Posts
      1119
      Views

      seb

      @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 / 1