Problem with Compass HMC5883L on BS2
MCA
Posts: 13
Hi!
Ive connected a HMC5883L compass to my BS2 using the setup and program code found at the of the kickstart-page, http://learn.parallax.com/KickStart/29133.
I was expecting to have compass readings, but what happens is that the values of x, y, and z are only jumping between about -10 to -30, 0 to -10 and 5 to 15 respectively no matter how I turn the compass.
I even brought it outside. The only interference would come from the laptop, I guess, and even though there were some disturbance I think I should be able to get reasonable values, that at least would change with direction.
My setup is attached on picture, as well as the typical debug window output.
Happy if someone can help!
BR, Adam
Ive connected a HMC5883L compass to my BS2 using the setup and program code found at the of the kickstart-page, http://learn.parallax.com/KickStart/29133.
I was expecting to have compass readings, but what happens is that the values of x, y, and z are only jumping between about -10 to -30, 0 to -10 and 5 to 15 respectively no matter how I turn the compass.
I even brought it outside. The only interference would come from the laptop, I guess, and even though there were some disturbance I think I should be able to get reasonable values, that at least would change with direction.
My setup is attached on picture, as well as the typical debug window output.
Happy if someone can help!
BR, Adam
Comments
From the documentation:
"The HMC5883L_demo.bs2 program reads raw X,Y,Z values from the Compass Module using the default I2C interface, and displays the values in the BASIC Stamp Editor’s Debug Terminal. The software is a free download from www.parallax.com/basicstampsoftware."
Something is above my head here... any other pointers, plz!? BR / Adam
BR Adam