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.

 

Views: 1351

Reply to This

Replies to This Discussion

Does this happen in the firmware on the board or on the processing app?

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?

Hi Fabio

 

The code is working! I dit not calibrate the magnetometer value to have an excactly arithmetic zero.

 

Thanks for your support.

Hello Fabio

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).

Thanks

 

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:

  • get rid of the external power source and just use the Arduino 5v pin to get power. You may have your voltage regulator stability to degrade over time so just remove them. You can also connect your Arduino directly to the computer without giving it any kind of external power.
  • get away from any kind of electromagnetic interferences: the big battery or power generator you have there may be interfacing with the magnetometer. The same apply to the black vice.

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.

Hello Fabio

 

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

L. Mauro

(a mechanical engineer playing with eletronics ... that´s the real problem!!!)

Hello

Still related to my problem, take a look on this video:

http://www.youtube.com/watch?v=uv_kyakIvRc

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

thanks

Luís

Luis, use the probe and measure directly on the chip power and signals. May the power regulator onboard is defective.
yeah, or they loose precisions when they get hot.. that's why I told him to just use Arduino's 5v as source.

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.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service