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

Arduino

558 readers
3 users here now

This is an UNOFFICIAL Arduino community.

Everyone who uses Arduino board or their clones or associated boards and/or the Arduino IDE is welcome here. If it involves Arduino hardware or software it's welcome here. If it connects to Arduino hardware it's welcome here. If you're building your own boards that you use with an Arduino it's welcome here. There will be no Arduino elitist bullshit in this community.

You may also be interested in:

AVR

RULES:

  1. It's always a floating input.

  2. All Lemmy.ca rules apply here.

  3. Everyone (see rule 98) is welcome.

  4. If you’ve seen a question 100 times answer it the 101st time or ignore it. Even better, write a complete, detailed answer and suggest that the mod(s) pin it to the community.

[Did you actually think there were 98 rules?]

  1. If you present something as fact and are asked to provide proof or a source provide proof or a source. Proof must be from a reliable source. If you fail to provide proof or a source your post or comment may be removed.

  2. Don’t be a dick. Yes, this is a catch-all rule.

  3. The mod(s) have the final say.

founded 2 years ago
MODERATORS
 

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] 2 points 1 year ago* (last edited 1 year ago) (1 children)

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?

[–] Pizzarules668 3 points 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