PDA

View Full Version : digital compass on n900


sebastiano
03-04-2010, 08:31 PM
Does the n900 has digital compass? ive read somebody say yes, and somebody say no, can anybody please confirm, if the answer is yes, how can i use it? is it possible to have access to it from python?

thanks in advance

seb.

sachin007
03-04-2010, 08:31 PM
No.......................

alexei
03-04-2010, 09:07 PM
Inside Ovi maps, one of the buttons on the lower left bottom.
You can click on the North button to rotate the map orientation...

ktchiu
03-04-2010, 09:33 PM
Inside Ovi maps, one of the buttons on the lower left bottom.
You can click on the North button to rotate the map orientation...

true but that doesnt mean theres a builtin compass. ur simply manually rotating the map. the map also rotates when ur driving according to the change in position i believe... in other words no builtin compass

Death Scythe
03-04-2010, 09:39 PM
The gps recognizes N, S, E, W based on the sat lock and the direction the phone is moving in and orients the map accordingly, hence the map's ability to rotate.

maxximuscool
03-04-2010, 09:41 PM
it's quite sad really that N97 got the compass but the N900 which using the same GPS chip but losing the compass. I don't know why would they do that to a good device. Should have left the compass in for developer to make use of it.

ysss
03-04-2010, 09:44 PM
Why give overcomplicated answers to confuse the issue further?

Digital compass = no.

PS: No, a GPS cannot replicate the functionality of a digital compass.

felbutss
03-04-2010, 10:04 PM
it's quite sad really that N97 got the compass but the N900 which using the same GPS chip but losing the compass. I don't know why would they do that to a good device. Should have left the compass in for developer to make use of it.

acctually the n00 has a better GPS unit. i think its one of the best

planetf1
03-05-2010, 02:24 AM
I've not been that bothered about a compass before -- sure, helpful for navigation, but once you start moving the problem goes away.

Then a friend showed me a great "star gazing" app on his iphone which displays star constellations etc aligned with where the phone is pointing. Actually very nice & useful (for some people!)

So, compass=good, but don't have it. Netx phone perhaps..

jfh
03-05-2010, 02:32 AM
I've not been that bothered about a compass before -- sure, helpful for navigation, but once you start moving the problem goes away.

Then a friend showed me a great "star gazing" app on his iphone which displays star constellations etc aligned with where the phone is pointing. Actually very nice & useful (for some people!)

So, compass=good, but don't have it. Netx phone perhaps..
Try stellarium

superg05
03-05-2010, 03:01 AM
dunno about that my g1 can get a lock inside my house instantly the n900 just blinks none stop

pycage
03-05-2010, 03:11 AM
dunno about that my g1 can get a lock inside my house instantly the n900 just blinks none stop

Is it a GPS lock or is it just cell phone tower triangulation? I used to have a G1 and was not very fond of the GPS.

Modell900
03-05-2010, 03:38 AM
To speed up GPS: settings--positioning--posserver change the supl.nokia.com to supl.google.com

That will make the gps lock-on like 10 times faster then standard setting.

Enjoy.

cashclientel
03-05-2010, 04:11 AM
How much are we loosing by not having a compass?

Rob1n
03-05-2010, 04:31 AM
How much are we loosing by not having a compass?

Not a huge amount - it'd help with aligning maps properly, and is critical for most augmented reality applications. I'd rather have one than not, but I'm not overly fussed about missing one.

clasificado
03-05-2010, 06:28 AM
How much are we loosing by not having a compass?
thats a troll question :P

we a loosing a lot of things because the n900 its not like lot of phones (talking about unsolvable hardware differences)

also, n900 its quite different to any gadget out there (for good)

edgarsz
06-29-2010, 07:55 AM
Hi!

I am also trying to get some sort of digital compass for my N900, and as far as I checked the price and shipping costs for all the parts necessary for simple IC2 -> Bluetooth digital compass, for me it is cheaper, faster and easier to just buy used Android phone (G1/Dream or Tattoo), attach it to the back of N900 with two elastic bands, and create a simple App that transmits compass coordinates from Android phone via Bluetooth/WiFi. I know it sounds completely stupid, but it solves all the battery/circuitry/soldering/etc problems for the same price or cheaper, AND I get an additional phone. :D ;) Mind if I include this as one of the options in the Digital Compass wiki section? :)

Edgars

gerdich
07-11-2010, 06:54 PM
Other solutions:

My questions about digital compass:

1) Is it possible to use a second gps by bluetooth? The n900 could calculate the direction by difference. (I know that gps is not very exact. But perhaps both bluetooth receivers do the same mistake. So the direction could be correct.)

2) Perhaps the same thing is possible with the gps of the n900 only: you fix a location with gps first (by pressing some button) then you move the the n900 to another place and the n900 calculates the direction by difference.

3) Wintec wsg 1000 http://www.wintec-gps.de/wintec_wsg-1000.php
This external bluetooth gps-receiver has also a compass and other features.
There are even linux development tools for cp2101
http://forum.pocketnavigation.de/forum38-gps-empfaenger-kabelgebunden/1123708-solved-wsg-1000-usb-linux/

http://forum.pocketnavigation.de/forum1000226-gps-empfaenger-mit-logger/1129708-tutorial-fuer-wintec-wsg-1000-unter-linux/#post2209994

phr
07-11-2010, 10:23 PM
A bluetooth compass isn't that useful unless physically mounted on the n900 somehow, since you have to make sure it's constantly pointing in the same direction as the n900. The great thing about an internal compass is that as you rotate the phone around, the map or VR view changes.

gerdich
07-12-2010, 02:30 AM
It's true that a compass on the device is very nice.

But I don't think that a bluetooth compass would be useless.

First of all:
You don't need a compass to follow a map. My old pocketloox t830 has no compass and follows the map by GPS. That is no problem as far as you are moving. Only if you are standig immobile the device loses its orientation. You don't need a compass to follow a map. For this application a compass is more or less useless.

A compass is usefull, if you are standing at a place and want information of what you see in a direction.
In this case there is no difference if you point in that direction by the n900 or by a bluetooth compass.
(I think even that a separated pointer would be more confortable. You can fixe your eyes on an immobile spot.)


The third case are games with a digital compass. You have to play them the bluetooth device fixed to the n900. That is no problem during a little game.




I think that in all those cases a bluetooth compass would be an acceptable solution. And this compass has even additional features:
temperature sensor, altimeter, independent gps logger, movement sensor ....
Perhaps those informations could also be interesting for some applications.

gerdich
07-13-2010, 09:00 PM
I've got a proposition for a compass that isn't mentionned in the wiki.

I've looked at the light sensor of the n900.
It is very complex!!!
It is even able to distinquish different colors. (The lux are integrated over a spectrum).

If there was an expert for hardware he could even write an application for color recognition with this sensor.

It would be possible to construct a compass with that.

You take a little ball compass (1cm diameter). You color the different parts of the compass: for example: North is red, less north is less red. West is blue, less west is less blue. Yellow is up, no yellow is down.
This colored ball compass you put on the light sensor. It makes a color analysis and gives the direction!

Wouldn't that be wunderful?

hassan_badredin
07-14-2010, 12:19 PM
I've got a proposition for a compass that isn't mentionned in the wiki.

I've looked at the light sensor of the n900.
It is very complex!!!
It is even able to distinquish different colors. (The lux are integrated over a spectrum).

If there was an expert for hardware he could even write an application for color recognition with this sensor.

It would be possible to construct a compass with that.

You take a little ball compass (1cm diameter). You color the different parts of the compass: for example: North is red, less north is less red. West is blue, less west is less blue. Yellow is up, no yellow is down.
This colored ball compass you put on the light sensor. It makes a color analysis and gives the direction!

Wouldn't that be wunderful?

that sounds very creative!
try it! im curious if it will work
maybe if someone takes care of the hardware part the sftware will come up also!
burt... very creative!!

KiberGus
07-14-2010, 12:52 PM
I've got a proposition for a compass that isn't mentionned in the wiki.

I've looked at the light sensor of the n900.
It is very complex!!!
It is even able to distinquish different colors. (The lux are integrated over a spectrum).

If there was an expert for hardware he could even write an application for color recognition with this sensor.

It would be possible to construct a compass with that.

You take a little ball compass (1cm diameter). You color the different parts of the compass: for example: North is red, less north is less red. West is blue, less west is less blue. Yellow is up, no yellow is down.
This colored ball compass you put on the light sensor. It makes a color analysis and gives the direction!

Wouldn't that be wunderful?
Unfortunately in a real world objects don't have color. If you light it with white lite object would have one color, at sunset light would be much more red and object's color would become warmer. At lite of night outdoor sodium lamps everything is yellow, all other colors turn to black.
But can you please describe how to read channels from light sensor?

punto
07-14-2010, 12:56 PM
Yeah - the lack of a compass does make the GPS very unpredictable. A strange miss, and one that makes the N900 even more of a half-baked handset than it is.

Quite apart from star gazing apps, digital compasses also make augmented reality apps possible - Although GoSkyWatch is awesome, especially on the iPad.

gerdich
07-14-2010, 05:57 PM
@KiberGUS
Unfortunately in a real world objects don't have color.


Did you also think about fluorescent/ luminescent paint ?

wilsonf1
08-02-2010, 10:57 AM
Try stellarium

http://www.stellarium.org/

I'm looking for star gazing apps for the N900 - i see the one you mentioned supports linux - does that mean it can run on the n900

if so... what do i have to do?

thanks! :)

bart
08-02-2010, 11:07 AM
i'm not sure but a hardware is required (which the n900 is lacking)

lardman
08-02-2010, 11:15 AM
It's a real shame, would make it possible to write some cool augmented reality apps if it were present (i.e. something like camera view with overlaid locations of landmarks, wikipedia entries, etc.)

Hamzeh
09-30-2010, 05:52 PM
I have an idea which I think will work for "emulating" compass functionality on the N900. Here is how it would work:

Using the date, time, and GPS coordinates, the app should be able to know where the sun or moon is located in the sky and their direction on a compass.

With GPS turned on and the date and time set correctly, the user can point to the sun during the day, or the north pole star (or moon) during the night.

The app should now be able to know which direction on the compass the user is holding the phone to. Consider this the user calibrating or setting/resetting the "compass" app.

From that point on, the app uses information from the phone's hardware (GPS and accelerometer) to update the "compass" information as the user moves the phone around.

If the accelerometer works the way I understand it works from this page (http://wiki.forum.nokia.com/index.php/How_to_get_accelerometer_data_of_N900_using_Qt), then this should work pretty well, shouldn't it?

EDIT: After playing with the AccDisplay app, I don't think the accelerometer will help keep track of the orientation. The accelerometer can detect all movements and orientation except for rotations around the z-axis because that's the same access gravity pulls at! Unfortunately, that's exactly the kind of rotation you'd need in a compass application :( I guess the only remaining solution is the information from the GPS hardware, which relies on phone movement, but that only tells you the direction the phone is moving in, not necessarily where it's oriented. Big bummer :(

Hamzeh

efekt
09-30-2010, 06:53 PM
And how would it work if you can't see the sun (cloudy day, or even night time)?
I have a better idea for you, and it doesn't require any device what-so-ever - if you're outside, you may sometimes notice that the sun rises from the east and sets in the west, so if its not exactly the middle of the day (12:00), you should be able to know roughly which direction is the east or west respectively, thus finding the north :)
There is another way of finding out, which is a bit more accurate which I was taught during my military service, but I'm afraid its not that easy to explain in words ;)

allnameswereout
09-30-2010, 07:30 PM
http://www.stellarium.org/

I'm looking for star gazing apps for the N900 - i see the one you mentioned supports linux - does that mean it can run on the n900

if so... what do i have to do?

thanks! :)It is ported to N900's architecture (armel): http://packages.debian.org/lenny/stellarium which means it runs on Linux/ARM (little endian).

AFAIK not ported to Maemo 5. You could ask for a port, pay someone to port it to Maemo 5, or try it in Easy Debian. You'll probably have to use stylus though. GPS should work since that uses standard protocols. IIRC it also utilizes OpenGL; might be a problem performance-wise, but hopefully you can 'downgrade' the quality. Your question might be worth a different topic.

Ken-Young
09-30-2010, 07:39 PM
Try stellarium

If all you need is the Sun or Moon's position (or a planet), try orrery. It's a lot faster than stellarium (though not nearly as beautiful!).

Ken-Young
09-30-2010, 11:20 PM
It is ported to N900's architecture (armel): http://packages.debian.org/lenny/stellarium which means it runs on Linux/ARM (little endian).

AFAIK not ported to Maemo 5. You could ask for a port, pay someone to port it to Maemo 5, or try it in Easy Debian. You'll probably have to use stylus though. GPS should work since that uses standard protocols. IIRC it also utilizes OpenGL; might be a problem performance-wise, but hopefully you can 'downgrade' the quality. Your question might be worth a different topic.

Stellarium is fully ported to Maemo 5, and runs well on the N900. It's in extras devel. It's a bit of a CPU/battery hog, but it is an extremely impressive app, and one of the best things to show off the phone's power to your friends. It makes Google Sky look like a Palm Pliot app from 1995.

Hamzeh
10-01-2010, 03:11 AM
And how would it work if you can't see the sun (cloudy day, or even night time)?
I have a better idea for you, and it doesn't require any device what-so-ever - if you're outside, you may sometimes notice that the sun rises from the east and sets in the west, so if its not exactly the middle of the day (12:00), you should be able to know roughly which direction is the east or west respectively, thus finding the north :)
There is another way of finding out, which is a bit more accurate which I was taught during my military service, but I'm afraid its not that easy to explain in words ;)

Yeah, it wouldn't work well when there are clouds blocking sky objects. I was thinking the user can point to a known object in the area and from that the app would look up the direction information.

I know how to roughly find out where E and W are :) but the idea was to somehow have the phone know that too so that apps could have access to that information.

jgbreezer
05-26-2011, 09:00 AM
I remember hearing/reading many years ago, that if you hold a watch horizontally and point the hour hand (non-digital-display, obviously) at the sun, then the direction of Noon on the clock is where North is. As the sun gets later and moves further round, so does the hour hand, hence noon always points at the same place. Although I'm not sure if its very reliable at extreme setting/rising angles of the sun during certain parts of the year.

Could you use one of the cameras to detect the sun direction (if visible and if the phone is flat) and do the same thing, as it knows the time and the season (as it knows which country you're in)? Doesn't work at night, obviously (I don't think using the stars is a feasible idea)... Or when inside, or its very cloudy.

Radu
05-26-2011, 06:37 PM
Just get a watch with a compass. Casio makes some relatively cheap ones, as well as more expensive ones with other features, such as a barometer/altimeter and thermometer. I have the Casio with those features, and it is very useful.

However, I think most digital compasses need to be kept at a certain angle (flat to the ground) to be accurate. if not flat, the error can be really big, like 40 degrees or so.

object
05-26-2011, 07:45 PM
Can you attach a real compass to front camera some how in a better way than this and use the camera to generate compass data?

http://www.shapeways.com/materials/frosted_detail

May be with help of super glue to make a water based one (floating in watertight cylinder)

Ken-Young
05-26-2011, 07:49 PM
Can you attach a real compass to front camera some how in a better way than this and use the camera to generate compass data?

The rear camera can focus down to 6 cm. You could move that tiny compass to the other side, mount it 6 cm away, capture an image, and write some image processing software to derive the needle's orientation.

object
05-26-2011, 07:53 PM
The rear camera can focus down to 6 cm. You could move that tiny compass to the other side, mount it 6 cm away, capture an image, and write some image processing software to derive the needle's orientation.

does the image need to be focused? I'm thinking of something like solid black coin with axis hole that let light shine through it.

MartinK
05-26-2011, 08:07 PM
does the image need to be focused? I'm thinking of something like solid black coin with axis hole that let light shine through it.
So basically using the front camera as a light-intensity sensor & have the light intensity depend on the rotation of the compass disk ? :)

object
05-26-2011, 08:12 PM
yes, thanks. the disc could be printed like this.

lardman
05-27-2011, 04:21 AM
Without focusing your angular accuracy will be rather poor I'd have thought.

Also note that this will only give you a compass bearing if you hold the device flat. The appeal of an e-compass is that it works in 3 dimensions.

My preference is for a time and location based overlay of e.g. the sun or moon, which one drags into the right location to set the compass heading. Realistically nothing we do unless you make your own Bluetooth e-compass (or find a gps with one included and Bluetooth comms capabilities) is going to make this day to day usable. Unfortunately.

object
05-27-2011, 01:17 PM
may be one like a sphere floating in water could improve that, but the shine-through method also need some improvement. I kinda want this for helping augment reality though.

EDIT: I just test with mirror app, black paper with 2 small pin size holes, i think it wont be that poor.

mohd012z
11-30-2011, 07:44 AM
when the compass for n900 will came out......huh....

tuxsavvy
12-01-2011, 01:09 AM
If you have been following in the thread you would know that the people were talking about having an actual hardware compass for N900.

nokia will never manufacture N900 anymore so I fail to see if nokia or any other companies would be willing to produce a compass for N900.

In other words the last few posts on this thread was heading more of a do-it-yourself solution rather than asking some company to do it.

If you're keen, you can probably hack your N900 to include a digital compass through the ways probably mentioned in this thread or in the hardware hacking section of the wiki page for N900.

Otherwise, there's Columbus which is not a true compass tool but it heavily relies on locking via GPS satellites for navigation.

Thalass
12-06-2011, 04:47 AM
I've been thinking about this a bit, and i think perhaps you could use audio tones to represent the heading info from a digital compass. Something cheap like a picaxe chip can take the I2C serial data from an electronic compass and convert it to some kind of audio tone. Maybe three tones whose relative amplitude represents the heading. Or maybe even morse or PSK31 to send text to the phone. It would only have to be a 3 digit number Maybe 4, if you wanted higher accuracy.

Then you need software to interpret the audio input, and then serve it to other programs as heading.

Of course you would lose your microphone input, and the speakers wouldn't work while the headphone jack was plugged in, but other than the practicality problems i'm sure it'd work! haha.