Go Down

Topic: What is the good compass sensor now? (Read 165 times) previous topic - next topic

afedorov

Hello,

I tried few QMC5883L from amazon but they just do not work. I2C scanner does not see them or if it sees them, it shows 0x0D address.

What is the good and affordable (>20$) compass sensor?


Grumpy_Mike

if you are buying a HMC5883L module, there are some fake modules about that claim they are HMC5883L devices but are in fact a QMC5883, which, while they are indeed magnetic sensors, have a very different internal structure, different capabilities, and will not work with software expecting the other type.

The way to tell a real HMC5883L is that the chip is marked L883 where as the "fake" chip is marked DA5883.

jremington

#2
Oct 17, 2020, 07:13 pm Last Edit: Oct 17, 2020, 07:15 pm by jremington
Pololu has a good selection of modern sensor modules, and they support their products.

They all have pretty similar performance.

afedorov



Are there tested libraries that work withQMC5883?

jremington

#4
Oct 17, 2020, 09:53 pm Last Edit: Oct 17, 2020, 09:55 pm by jremington
Google will find QMC5883 Arduino libraries.

Grumpy_Mike



Are there tested libraries that work withQMC5883?
What Numbers are on your chip?

afedorov

It is hard to say what is written on chip. I2C scanner `sometimes` detects 0x0D device. So I tried few libs and I got 0 readings for x,y,z.


jremington

#7
Oct 18, 2020, 04:44 am Last Edit: Oct 18, 2020, 04:45 am by jremington
Quote
I2C scanner `sometimes` detects 0x0D device
You are probably just wasting your time with a counterfeit, defective or recycled chip. 

In the unlikely case that you bought it from a reputable supplier, return it for refund or exchange.

Grumpy_Mike

If the chip shows up at 0x1E then it is a HMC5883L.
If the chip shows up at 0x1D then it is a QMC5883L.

What is the examples that come with your library saying the address is?

Attached is the data sheet for the QMC5883L

Go Up