Testing my code for the HMC5843 turns out that the labeling for the axis may be wrong. The sign directions are different too. I checked against the Board from Sparkfun. Looking at the datasheet, the components axis described there are when you look at the bottom of the device. The schematic pictures is mirrored upside down to show a view from the top.
Ok, I found the problem. Never rename a file when the ArduinoIDE is running. After I restarted the computer the next day, the problems are gone.
For now, sending data from the board to Processing is working. But the orientation on the screen is somehow strange. I never had that much of work to get some data ready. 3D is realy three times of work :-)
Point your monitor to the magnetic north in your room. I explain that in the video.
What exactly do you mean when you say that there is lot of work?
The code is working! I dit not calibrate the magnetometer value to have an excactly arithmetic zero.
Thanks for your support.
Please, take a look at the powerpoint file that I attached on the reply to Chris.
This a detailed explanation about my problem.
I used 2 diferent libraries to make the test with the same results (including ones that you suggested).
Hi Luis, I liked how you detailed your problem.
Well, that's a hell of an issue. Never saw anything like that.. I ran my magnetometer library for more than 30 minutes and never saw anything like that.
I would try keeping things as simple as possible. My suggestions:
I would take my notebook and move to something like a park or your backyard were you know that you are far away from any electromagnetic interference and see what happens.
Keep us posted.
Yes, eletromagnetic interference is a big issue!
I had problems with a SCP1000 and a fluorescent lamp that is above my desk.
I´ll remove everything surrounding the HCM5843 that could became a problem related to "eletromagnetic field" ...
Soon we´ll talk again,
thank you very much
(a mechanical engineer playing with eletronics ... that´s the real problem!!!)
Still related to my problem, take a look on this video:
The time elapse until the start of the problem is diferent from the showed at the powerpoint file because this another trying.
It´s portuguese narrated but the legends are in english
I've seen the video. You have problems that's for sure. Try to connect the device in the most simple way: see the picture I published on my HMC5843 library page.
I'll now take a dump of more than 30 minutes readings from the HMC5843.. let's see what happens.