PiicoDev Magnetometer QMC6310 - Guide for Raspberry Pi

Michael just shared a new tutorial: "PiicoDev Magnetometer QMC6310 - Guide for Raspberry Pi"



Let’s get started with the PiicoDev® Magnetometer. In this guide we’ll connect the Magnetometer to our Raspberry Pi, get it working as a compass, and read the magnetic field strength of a nearby magnet. Finally, we’ll remix the code to create a g…

Read more

3 Likes

could i use a QMC5883L instead , except for I2C adress (it is 1D ) what need to be changed ?

1 Like

Hi Roger,

I had a chat to Core the other day and they are working on getting the driver ported, I havent checked the repo but I don’t think the 6310 driver will work out of the box with the 5883.

1 Like

Hey @Roger282679 - the 5883 does have a few other differences than just the address. The device initialisation is quite different (ODR and OSR registers are completely different formats

I’d avoid a naive drop-in replacement in this case. Perhaps you can find a 5883 micropython driver that plays nice alongside the PiicoDev approach.