Compass Offsets for Servo Outputs

Hi devs is there any way I can add a compass x y z offset based upon the value of a pwm output?

I have high powered rgbw LEDs where each colour has its own servo output. The current affects the compass. Moving the compass further away isn’t an option.

If the LED power supply is passed through the current monitoring circuit, it’s possible you could see some positive effect from the existing motor compensation algorithms (imperfect, of course). But there is no true motor-independent compensation for compass correction.

You’ve identified a physical deficiency. While I know you said you can’t correct it, I’d implore you to see if there’s a way to either reroute the LED wiring or otherwise put some distance between the compass and offending components.

If high powered lighting is a critical requirement, and the compass issue cannot be mitigated, perhaps consider a GPS based heading solution.

1 Like