I am trying to get the HMC5883L Compass working for an AZ drive system. Using the spin demo code from:
It works fine except the Y axis reading is always -4096 which is an overflow or underflow or math error. HOWEVER, if I run the bs2 code from that page it works fine - no Y axis error.
The same is true for the programs listed on the HMC5883L part page. Can anyone tell me why the spin code gives an error and the bs2 code doesn't?