Driver for a Honeywell HMC5883L magnetometer.
All correct at time of writing, but as always, manufacturers love to move things around on their website.
http://www.magneticsensors.com/magnetic-sensor-products.php
http://www.magneticsensors.com/three-axis-digital-compass.php
This code has been tested using a SolderCore CoreMag module:
http://soldercore.com/products/sensecore/coremag/
This was plugged into a SenseCore:
http://soldercore.com/products/sensecore/
And finally installed on a SolderCore:
http://soldercore.com/products/soldercore/
Parameter | Supported settings |
Bandwidth (Hz) | 75 (continuous), 160 (single) |
Range (µT) | ±800 |
Communication | up to 400 kHz (I2C) |
Macros | |
HMC5883L_I2C_ADDR | HMC5883L 8-bit I2C address |
Functions | |
hmc5883l_initialize_i2c | Initialize HMC5883L on I2C bus |
hmc5883l_initialize_transport | Initialize sensor on an existing transport |