Abstract & Overview
Recently, electronic compass sensors have become very common, due to their small size and low price. Sensor output information turns out to be incorrect if the magnetometers and accelerometers in the structure of these sensors are not calibrated. The main reason for such an error could be the slope value that is generated because of not placing the sensor parallel to the ground. Moreover, zero value inequalities between the axes of multi-axis sensors, offset errors, and scaling errors cause drift in the compass sensor output. In order to fix the problems, the study uses the methods of Particle Swarm Optimization Algorithm and Least Squares for the calibration of magnetometer and accelerometer. The results indicate that the calibration process can be successfully performed using these methods.