Problems with Magnetometer 5883L
Posted: Tue Jun 26, 2012 3:32 pm
Hello,
I have received the magnetometer and spent the whole weekend trying to make it work, but it does not. I have not only followed the Honeywell manual, but I have tried the library and the configuration from the Geeetech Wiki, but it 5keeps not working.
I am able to communicate with it by I2C (1E address), and I am able to change the configuration registers (although not all the configurations that are in the Honeywell manual are accepted by the magnetometer).
The problem is that the readings from the magnetometer don't change as I change the direction of the board. I have checked that the mode is correctly configured as "continuous mode", but it keeps not changing. I am also reading the 6 data registers at the same time in order to make the magnetometer update the readings, but without any effect.
In order to have an stronger magnetic field I have finally used an external magnet, and even with that most of the times the magnetometer does not realize that there is a magnet next to it (some times it does and then goes to the full scale).
I am not using the two 4,7k resistors, as the I2C communication seems to work without them, and I didn't want to make any change in the module that could be blamed to have broken it.
Please tell me how to proceed.
Regards
I have received the magnetometer and spent the whole weekend trying to make it work, but it does not. I have not only followed the Honeywell manual, but I have tried the library and the configuration from the Geeetech Wiki, but it 5keeps not working.
I am able to communicate with it by I2C (1E address), and I am able to change the configuration registers (although not all the configurations that are in the Honeywell manual are accepted by the magnetometer).
The problem is that the readings from the magnetometer don't change as I change the direction of the board. I have checked that the mode is correctly configured as "continuous mode", but it keeps not changing. I am also reading the 6 data registers at the same time in order to make the magnetometer update the readings, but without any effect.
In order to have an stronger magnetic field I have finally used an external magnet, and even with that most of the times the magnetometer does not realize that there is a magnet next to it (some times it does and then goes to the full scale).
I am not using the two 4,7k resistors, as the I2C communication seems to work without them, and I didn't want to make any change in the module that could be blamed to have broken it.
Please tell me how to proceed.
Regards