SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!
By Camerart
#198918
Hi,
I have a project using a 3 axis magnetometer.
I've been trying to get results for a long time, with great help from other forums, but so far I have been able to get correct results.
I don't really want to ask the same questions as I have so far.
Here is the equation, which works with my system: arctn = ax / ay / (1 + 0.28125 * ((ax / ay) * (ax / ay))) * picalc '180/PI
So that I can progress and find out what's wrong, I need to ad the 'Z' component to the calculation.
Can someone show me how to do this please?
Camerart.