Guys need help with GY 87

I’m unable to access HMC5883L/QMC5883L (IDK what is present but let’s say compass) is not working. I ran I2C scan and found 0x2C, 0x68 and 0x77. I referred to some posts in this forum but it was 10 yrs back, and the code they provided was not even working. Your help is highly needed guys!

PS : MPU6050 and BMP180 is working !

The standard I2C address for HMC5883L is 0x1E. The QMC5883L typically uses 0x0D. If your scan shows 0x2C, 0x68, and 0x77, neither the HMC5883L nor the QMC5883L is being detected.

0x2C can appear on some sensors or EEPROMs, 0x68 is the MPU6050, and 0x77 is the BMP180.

can you share more information on your wiring and the power ? a picture of the gig ?

Hi! Welcome to the Forum.

Have you looked at this topic?

All those guys have a QMC5883”P” chip at 0x2C adress

If 0x2C is the address and it’s hardwired differently in the library, that would explain it does not work.

1 Like
Arduino GY 87
3.3V 3.3V
GND GND
SDA SDA
SCA SCA

This is the wiring I did, and it is working for MPU6050 and BMP180

IDK, but however I need your help to fix it

I have deleted your other cross-post @tylerduden.

Cross-posting is against the Arduino Forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting can result in a suspension from the forum.

In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

If the module has a different address than one expected and hardwired in the library then it’s normal it’s failing.

Post your test code and a link to the library you are using.

The first thing I would do is testing the code that is on post #6 of that topic. If it works, it can be adapted in whatever sketch you’re using.

The second thing I would do is trying the library that is linked in post #7.

If you feel comfortable, you can also follow @J-M-L tip and try to discover if the Mag adress is hardcoded on the library you’re using.

I tried both QMC and HMC but not working

Yeah, but I tried all possible ways no use :confused:

I uploaded this img and asked ChatGPT it said “only BMP and MPU6050 are present”. @J-M-L @Brazilino Your help is very much needed

what about the whole board - both sides ?

How could it tell that? It’s pretty clear that the board has an HP5883 chip. I would rather believe the board is faulty.

So what should I do next ?

Buy another or choose a different board. The MPU9050 was discontinued some years ago.

Although it’s still in use because of the low price, there are other newer options.

ICM-20948 is the newer chip of the same manufacturer (TDK).

I’m afraid that again the magnetometer in GY87 won’t work if I buy one :confused:

Is buying GY91 worth ?

If I’m not wrong, the only difference between GY-90 and GY-91 is the pressure sensor, which changes from a BMP180 to a BMP280. In this case I don’t see any advantage. I would go with the ICM-20948.