5883 mag sensor

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Dr_Quark
 
Posts: 2
Joined: Wed Jun 16, 2021 1:27 pm

5883 mag sensor

Post by Dr_Quark »

I'm using the Adafruit libraries. When I check for the presence of the sensor with mag.begin(), it seems present. But when I try to read data using mag.getEvent(&event), the code freezes.

In wiring up the I2C connection, I note that the order of the pins is different than on the usual RTCs or LCDs and have wired according to what is printed on the GY-271 board. I have had this code work on a previous breadboard (using an Arduino Nano, same as now), so I'm at a loss of how to troubleshoot further.

User avatar
adafruit_support_carter
 
Posts: 29457
Joined: Tue Nov 29, 2016 2:45 pm

Re: 5883 mag sensor

Post by adafruit_support_carter »

What sketch are you running? Are you checking the return from the call to begin() to make sure it's true?

User avatar
Dr_Quark
 
Posts: 2
Joined: Wed Jun 16, 2021 1:27 pm

Re: 5883 mag sensor

Post by Dr_Quark »

After about three hours of looking at every angle, it was a solder joint. I am looking for my tablets, left over from the U-2 program.

(for those too young to make the association, they are cyanide)

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”