Magnetic Detection Issue Arduino / HMC5883L

Hello everyone :slight_smile: ,

After hours of searching on the internet, I could really use your help. I've recently embarked on a project where I'm trying to detect the powering of a coil using an HMC8553 magnetometer. To do this, I'm using I2C communication. However, I'm encountering stability and reliability issues in the detection process, and I suspect it's due to electromagnetic interference.

Specifically, the system sometimes crashes randomly or as soon as I power the coil in the presence of the magnetometer, although this doesn't happen systematically.

I'm wondering if it's possible to connect the HMC8553 magnetometer to another communication protocol less susceptible to electromagnetic interference to solve this issue (I've seen RS485 mentioned but I'm totally lost). If anyone has worked on a similar project or has ideas on how to solve this problem, I would be grateful for any suggestions or advice.

Thanks in advance for your help!

More information is needed.

After having a look at the "How to get the best out of this forum" post, please post a wiring diagram (hand drawn is preferred), a photo of the setup, the code and cut/past output that demonstrates the problem.

The sensor requires I2C, with short wire connections, and cannot be used with RS485.

Show a schematic. Datasheet notes this:

image.

Are these included in your circuit?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.