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
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
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?
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