Magnetometro de 3 ejes ( Compass ) HMC5883L
Este Compas o Brujula digital de Adafruit esta basado en el popular HMC5883L y esta adaptado para funcionar tanto a 3.3V como a 5V y usa I2C para la comunicacion.
Un magnetometro detecta de donde proviene la mayor fuerza electromagnetica, este efecto se utiliza por lo regular para situar el norte magnetico.
We based this breakout on a popular and well loved magnetometer, the HMC5883L. This compact sensor uses I2C to communicate and its very easy to use. Since it’s a 3.3V max chip, we added circuitry to make it 5V-safe logic and power, for easy use with either 3 or 5V microcontrollers. Simply connect VCC to +3-5V and ground to ground. Then read data from the I2C clock and data pins. There’s also a Data Ready pin you can use to speed up reads.
If using with an Arduino, its extra-easy to get started as we already wrote a nice little Arduino library with a matching tutorial to get you started. Simply download our library and connect the SCL pin to your Arduino’s I2C clock pin, and SDA pin to your Arduino’s I2C data pin and upload our test example sketch to read out magnetic field data and heading (i.e. which way is north).
Recursos:
Tutorial, libreria y ejemplos.
Datasheet.
Garantia: No aplica.
- I2C interface
- 1-2 degree heading accuracy
- Integrated 12-bit ADC
- 160Hz max data rate
- Range of -8 to +8 Gauss
- This board/chip uses I2C 7-bit addresses 0x3C