Any luck with the HMC5883L Compass Module?
BonanzaMan
Posts: 17
I recently bought the Compass Module 3-Axis HMC5883L (#29133) and have been trying to get it to product accurate headings. I downloaded, updated (SDA & SCL pin assignments) and ran the demo program from the product page (HMC5883L_demo.spin), but as-is, the demo program headings all seem to be in the NE quadrant and wont swing through a full 90 degrees in this quadrant anyways. Anybody have a working object or demo program?
Thanks,
Greg
Thanks,
Greg
Comments
Edit: The Parallax board does have a regulator so 5V is fine when using the Parallax board.
I've successfully used several different HMC5883L sensors many times powered with 3.3V. Here's a link to my HMC5883L code. I attempted to use a HMC5883L sensor for attitude feedback in this project but I had the sensor too close to the servos. Once I moved the sensor away from the servos a few inches, it worked much better.
Again, unless the board with the HMC5883L sensor has a way of regulating the power supply, it should NOT be powered with 5V (the Parallax board does uses a voltage regulator so 5V is fine on it). 3.6V is the maximum voltage to be used with the sensor.
Works a treat!