Help with circuit

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

9 points · 3 comments · view on lemmy.world

3 Comments

jayemar@lemm.ee · 3 pts · 3y (2 replies)

Can you link to the code you're running? Also, if your circuit is more complicated than just the sensor connected to the Arduino, can you show a schematic that can be viewed on mobile without kicad available?

Pizzarules668@programming.dev · 3 pts · 3y

Here is the code and here is the schematic

Pizzarules668@programming.dev · 3 pts · 3y

I think I found the problem the 3 of the pins on my level shifter are shorted together I will try and fix it tomorrow morning and see if it works