9
Help with circuit (programming.dev)
submitted 1 year ago by [email protected] to c/[email protected]

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

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 3 points 1 year ago

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?

[-] [email protected] 3 points 1 year ago

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

[-] [email protected] 3 points 1 year ago

Here is the code and here is the schematic

this post was submitted on 26 Jul 2023
9 points (100.0% liked)

Ask Electronics

3258 readers
1 users here now

For questions about component-level electronic circuits, tools and equipment.

Rules

1: Be nice.

2: Be on-topic (eg: Electronic, not electrical).

3: No commercial stuff, buying, selling or valuations.

4: Be safe.


founded 1 year ago
MODERATORS