View previous topic :: View next topic |
Author |
Message |
snooer
Joined: 22 Apr 2009 Posts: 14
|
1490 Digital Compass |
Posted: Sun Apr 26, 2009 5:59 am |
|
|
Maybe someone have used it and is it working simple as 4 outputs with logical 1 or 0 value? |
|
|
Guest
|
|
Posted: Sun Apr 26, 2009 6:42 am |
|
|
Hi,
I don't have one, but it looks absolutely trivial to use. The outputs of the compass are "open-collector", so you'll need to use a pull-up resistor on each output (10K would be fine), or enable the internal pull-ups if your hardware supports that option. then, simply use the INPUT statement, and some simple logic to determine the 8 possible heading directions (N, NE, E, etc.).
Cheers,
Nigel |
|
|
snooer
Joined: 22 Apr 2009 Posts: 14
|
|
Posted: Sun Apr 26, 2009 6:44 am |
|
|
Thx |
|
|
|