Low-cost digital compass module with UART/IIC interface