Design of high precision electronic compass based on FPGA
Abstract:This article designs an FPGA-based high-precision electronic compass. This design uses an FPGA as the main control chip. It collects relevant geomagnetic data from the HMC5883L geomagnetic sensor module with the IIC protocol,and then obtains the azimuth angle through the correlation algorithm,and then transmits it to the display screen,which is then displayed in real time by the display screen. The design can accurately and accurately display the orientation in the absence of magnetic field interference,and has good versatility,real-time performance and reliability. Tests show that the electronic compass can effectively display the indicated azimuth and azimuth angle in real time in the horizontal direction.The accuracy of the azimuth angle is within 2° compared with the smartphone built-in compass,and the power consumption is low and the operation is stable. It can be used in the general navigation field.
Key words: FPGA;HMC5883L;IIC protocol; electronic compass