Issues with mangetometer 5883L
Posted: Tue Apr 24, 2012 10:48 am
Last week I received the magnetometer, I tried but NOT working.
I followed the https://www.loveelectronics.co.uk/Tutor ... no-library without any luck.
I did a try adding "two 'pull-up' resistors to enable I2C. For this, connect two 4.7k or 10k resistors between SDA and VCC, and SCL and VCC." without any luck.
The default program from (HMC5883L.h) is not working since the data output is helded (is displaying the same data always)
**************************************************
Starting the I2C interface.
Constructing new HMC5883L
Setting scale to +/- 1.3 Ga
Entered scale was not valid, valid gauss values are: 0.88, 1.3, 1.9, 2.5, 4.0, 4.7, 5.6, 8.1
Setting measurement mode to continous.
Entered scale was not valid, valid gauss values are: 0.88, 1.3, 1.9, 2.5, 4.0, 4.7, 5.6, 8.1
Raw: 720 1574 727 Scaled: 662.40 1448.08 668.84 Heading: 1.19 Radians 68.04 Degrees
Raw: 720 1574 727 Scaled: 662.40 1448.08 668.84 Heading: 1.19 Radians 68.04 Degrees
(.....)
Raw: 720 1574 727 Scaled: 662.40 1448.08 668.84 Heading: 1.19 Radians 68.04 Degrees
**************************************************
The sensor seems not to be working, apparently we're under a bad board. I ran a IC2 test and I was not able to detect any device attached.
Dear hernan.gc ,
Thanks for your mail.Could you please kindly submit a post on
http://www.geeetech.com/forum/viewforum.php?f=9
Please don’t worry about it,we are professional and serious seller,our techsupport team will support you,
Please kindly let us know for any of your concerns.
Best regards
I followed the https://www.loveelectronics.co.uk/Tutor ... no-library without any luck.
I did a try adding "two 'pull-up' resistors to enable I2C. For this, connect two 4.7k or 10k resistors between SDA and VCC, and SCL and VCC." without any luck.
The default program from (HMC5883L.h) is not working since the data output is helded (is displaying the same data always)
**************************************************
Starting the I2C interface.
Constructing new HMC5883L
Setting scale to +/- 1.3 Ga
Entered scale was not valid, valid gauss values are: 0.88, 1.3, 1.9, 2.5, 4.0, 4.7, 5.6, 8.1
Setting measurement mode to continous.
Entered scale was not valid, valid gauss values are: 0.88, 1.3, 1.9, 2.5, 4.0, 4.7, 5.6, 8.1
Raw: 720 1574 727 Scaled: 662.40 1448.08 668.84 Heading: 1.19 Radians 68.04 Degrees
Raw: 720 1574 727 Scaled: 662.40 1448.08 668.84 Heading: 1.19 Radians 68.04 Degrees
(.....)
Raw: 720 1574 727 Scaled: 662.40 1448.08 668.84 Heading: 1.19 Radians 68.04 Degrees
**************************************************
The sensor seems not to be working, apparently we're under a bad board. I ran a IC2 test and I was not able to detect any device attached.
Dear hernan.gc ,
Thanks for your mail.Could you please kindly submit a post on
http://www.geeetech.com/forum/viewforum.php?f=9
Please don’t worry about it,we are professional and serious seller,our techsupport team will support you,
Please kindly let us know for any of your concerns.
Best regards