HMC5883L Triple Axis Compass problem
Posted: Thu Mar 29, 2012 6:21 pm
Hello!
Yesterday I received the magnetometer, I tried but NOT working. I have an Arduino Mega. I've connected to GND and Vcc+3.3v, sda (pin20 Arduino), scl (pin21 Arduino), with pull-up resistors of 10Khom. I have also used the libraries HMC5883L, HMC58X3L and HMC and some examples as
www.sparkfun.com/tutorials/301, without success.
Seeking information Google, I found a sketch for Arduino that lets you scan the I2C bus. If I connect only HMC5883L not find anything, but if I connect another device to I2C, yes it is, for instance with RTC plus Sd shield gives me the direction 80.
http://dsscircuits.com/articles/the-mys ... 5883l.html
Another Sketch also execute a scanner which is specific for a HMC5883L, with the same result.
Any suggestions please? Thanks and best regards!
Yesterday I received the magnetometer, I tried but NOT working. I have an Arduino Mega. I've connected to GND and Vcc+3.3v, sda (pin20 Arduino), scl (pin21 Arduino), with pull-up resistors of 10Khom. I have also used the libraries HMC5883L, HMC58X3L and HMC and some examples as
www.sparkfun.com/tutorials/301, without success.
Seeking information Google, I found a sketch for Arduino that lets you scan the I2C bus. If I connect only HMC5883L not find anything, but if I connect another device to I2C, yes it is, for instance with RTC plus Sd shield gives me the direction 80.
http://dsscircuits.com/articles/the-mys ... 5883l.html
Another Sketch also execute a scanner which is specific for a HMC5883L, with the same result.
Any suggestions please? Thanks and best regards!