I’m trying to use an LIS2MDL ic with an Arduino nano on a custom PCB designed in KiCad. I tried the Arduino example compass script for the ic and it didn’t work. It just prints “Magnetometer Test” and nothing else happens

  • GameGod@lemmy.ca
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Can you upload some screenshots of the layers of your PCB? Edit: also, did you assembly your PCB yourself? What’s the state of your circuit? It’s hard to get a sense of whether you’ve hooked everything up correctly and what you’re expecting.

    Before I would even look at code, go back and try to do some basic diagnostics on your circuit using a multimeter or oscilloscope. Is your IC getting the correct voltage? Are all the pins correctly connected? Are you seeing any signals over the data lines?

    Are you trying to talk to it via I2C or SPI?

    • Pizzarules668OP
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I think I found a the problem 3 of the pins on my level shifter are shorted together I’m going to try and fix it in the morning