digital-compass

How to get direction from TDCM3 (Digital compass) with pySerial?

I have a digital compass TDCM3, its manual is here TDCM3 Manual I want to read direction from TDCM3 on PC or embedded PC(wince), I use pySerial to open a com port and read data from TDCM3: import serial # Open COM port device = serial.Serial(0) device.setRTS(True) print device while True: data = device.read() print repr(data...

iPhone Compass: Adjust Heading to get Correct Reading in Landscape

Does anyone know how to adjust the iPhone's compass reading to adjust if you use it in landscape mode? The heading is always taken from the top of the device, but a true reading should be available if recalculations are made with the accelerometer data. ...

Compass accuracy dilemma

I need to build compass for my application. From reading the documentation it seems there are two reasonable ways of doing this: Sensor.TYPE_ORIENTATION method: This is the easy way of doing it. The problem with this is it is not accurate. When I compare my reading with Snaptic Compass it is about 10-15 degress off which for my purpo...