Asked — Edited
Resolved Resolved by DJ Sures!

4 In One Orientation Sensor

I have purchased a 4 in One Orientation Sensor. My desire is to use the compass function.

Once loaded and running, I view the compass heading values in the Variable watch window.. The value fail to read correctly. I find when I set the device in 90 degree directions ( 0 - 90 - 180 - 270 - back to zero ) I get value that do not even come close to the set position., nor do they repeat. I have changed my location, and even tried it in a wooden shed without any potential magnetic interferences, and still it did not work.

Has anyone use this sensor and has been able to get it to display correctly?

My reason for buying this was for the compass only and I am disappointed to see it not work.

Ron R


ARC Pro

Upgrade to ARC Pro

Unleash your robot's full potential with the cutting-edge features and intuitive programming offered by Synthiam ARC Pro.

#9  

Has anyone been able to get this to work to at least show 4 quadrants? I want to verify home direction and 90 degree turns. I will then "know", forward, right, left, and return.

Is there a way to calibrate it?

Ron R

#10  

I get totally random numbers out of the compass. The other three sensors are consistent and usable, but the compass makes absolutely no sense. Huge value jumps for the slightest turn, and doesn't return back to the original when facing the same way. only thing that is consistent is that the values hold steady until you move the sensor, and change values when you move it, but the values are useless.

Alan

#11  

Thanks, I had hoped someone found a way to calibrate it and got it working.

Ron R

PRO
Synthiam
#12  

The compass needs to be perfectly flat - there is a calculation that can be done to use the accelerometer to aid in the compass calculation. I will make a tutorial about it this week.

#13  

Hi Dj,

Thanks for the tutorial. Will vibration or movement screw up the readings, or will I have to stop to update readings?

Ron R

#14  

I just want to know if there has been any updates on the compass.

If not, does anyone know of a compass that I can get that will work with the EZB? If something has been used in the past, is there any example code I can look at? My project is kind of on hold until I can get the ability of 8 readings from a compass. (about every 45 degrees +- 5 degrees will work).

Thanks,

Ron R

#15  

I was wondering about the Compass listed in the i2C menu, HMC5883. Is this a device which works? I am not being sarcastic, just looking for an available device which will give me the feedback I want.

Ron R

#16  

Ron, In the original thread where we were discussing this, Elfage successfully got a different compass sensor working, but it was tricky because I2C is such a pain and very sensitive to wire length, proper resistors, etc, but if you go through that thread (particularly the later pages until we start talking about the problems using the EZ-B 4in1) you can probably figure out how to get one working.

Personally, I am going to wait for an EZ-B solution, but my project(s) are not on hold waiting for this, they just aren't as efficient as they will be once it does work.

Alan