AdilAli
Newbie level 3

I am using the HMC5883L digital compass to get the north,east,south,west directions. (0 degrees - 360 degrees).
[compass connected to atmega32, atmega32 connected to LCD]
When i get a magnet close to the magnetometer (compass), distortion happens on the heading (output), and when i move away the magnet from the magnetometer the header doesnt return back to its correct value. (no set/reset occurs)
Although the datasheet says set/reset is controlled automatically.
This is the Product
https://www.sparkfun.com/products/10530
(Datasheet available in the link)
Any solutions?
[compass connected to atmega32, atmega32 connected to LCD]
When i get a magnet close to the magnetometer (compass), distortion happens on the heading (output), and when i move away the magnet from the magnetometer the header doesnt return back to its correct value. (no set/reset occurs)
Although the datasheet says set/reset is controlled automatically.
This is the Product
https://www.sparkfun.com/products/10530
(Datasheet available in the link)
Any solutions?