|
2009-09-19
, 19:59
|
Posts: 69 |
Thanked: 53 times |
Joined on Aug 2009
|
#12
|
|
2009-09-19
, 20:15
|
|
Posts: 1,635 |
Thanked: 1,816 times |
Joined on Apr 2008
@ Manchester, England
|
#13
|
The problem is that although you know the direction of north relative to the phone, you don't know how the phone's screen is orientated, so you can't show a 2D compass on the screen. Imagine holding your phone so that the camera is pointing due north. You would probably expect your phone to show N with an arrow pointing upwards, but to know what upwards means you either need to take information from the accelerometer, or tell you users to only use portrait mode, or to hold their phone flat.
|
2009-09-19
, 20:23
|
|
Posts: 1,635 |
Thanked: 1,816 times |
Joined on Apr 2008
@ Manchester, England
|
#14
|
|
2009-09-19
, 20:48
|
Posts: 1 |
Thanked: 0 times |
Joined on Sep 2009
|
#15
|
Thanks guys - the n900 looks super, but the lack of a compass is painful enough that I'm determined to find a DIY solution. After all, the n900 is aimed at hackers, right?
|
2009-09-19
, 22:56
|
Posts: 69 |
Thanked: 53 times |
Joined on Aug 2009
|
#16
|
the accelerometer shows absolute orientation of the device.
all we lack is the direction.
|
2009-09-19
, 23:31
|
Posts: 69 |
Thanked: 53 times |
Joined on Aug 2009
|
#17
|
|
2009-09-19
, 23:42
|
Posts: 220 |
Thanked: 19 times |
Joined on Jun 2006
|
#18
|
|
2009-09-19
, 23:43
|
Posts: 1,213 |
Thanked: 356 times |
Joined on Jan 2008
@ California and Virginia
|
#19
|
Everything I wrote above may in fact be pointless, as I suspect that the N900 doesn't have usb-otg at all, since it looks as if it has a micro-B socket. USB-OTG devices are required to have a micro-AB socket. If that's the case, then no usb host mode.
|
2009-09-20
, 03:35
|
Posts: 71 |
Thanked: 34 times |
Joined on Sep 2009
|
#20
|
Along with the 3 required capacitors, which will take up a few more mm^2 it would all fit on a board of ~ 10x20mm and only be a couple of mm thick. ... It would also be a soldering nightmare with all those surface mount components
Also this guy is working on an I2C compass using the 5843 and has some notes on interpreting the output of the 5843.
I have to honestly admit this stuff is a bit over my head right now, but it certainly seems feasible. One thing that seems complicated is the orientation of the sensor. The vector math at the above link seems to indicate that an up-down tilt has no effect, but a sideways tilt would need accelerometer correction. Since the n900 has accelerometers this can probably be done, but I don't have a clear idea about exactly what would need to be done yet.
Anyone with more knowledge/experience in magnetometer circuits, feel free to share