Hi All
I have finished working on a compass app and I have used orientation sensor.
my question is, is it better to use magnetic sensor or orientation sensor?
What's the difference between the two? Any help or comment will be highly appreciated. Regards. Shiraz
Sent from my Desire HD using XDA App
Well, the orientation sensor will need to be calibrated to give any meaningful information on what direction it is pointing, but I think it would be more accurate, based on my experience, than the magnetic sensor. Keep in mind that "magnetic north" varies wildly depending on your place on the globe and varies locally depending on ferrous materials in the vicinity of the device.
Thanks Gene
Sent from my Desire HD using XDA App
Related
when the nexus s is flat /horizontal the compared seems fairly accurate. However if I point the device say due east and slowly tilt the device 90° in the vertical direction, still pointing east, the reading is off by about 15°.
This is very noticeable when I use the compass app or google sky maps. anyone else noticed this?
Sent from my Nexus S using XDA App
I have noticed the compass is terrible and noisy in general. There's supposed to be a new sensor fusion API, but as far as I can tell that is currently broken and reports NaNs...
There are many factors that could contribute to your compass being wrong, the first being that compasses are wrong! The first, Magnetic Declination is the offset between magnetic north and true north. Mine is about -8 degrees.
wikipedia.org/wiki/Magnetic_declination
The second, and probably more important factor is the Magnetic Inclination: the actual angle of the magnetic field relative to the ground. Here in Ohio, the field is mostly 60% or so vertical!
wikipedia.org/wiki/Magnetic_inclination
If the coders do not correct for the actual rotation of the sensor, then what you see is the large Z axis (coming out of the screen) become the new Y measurement, while X stays the same. Since the first trivial calculation of heading is: atan2(y,x) you can see what happens when y becomes much larger, but x stays the same.
So it all depends on if they are using the accelerometers/gyros to correct for orientation and then calculate heading or at the very least relabel axes at some point.
You can read more about what Android actually provides developers here
developer.android.com/reference/android/hardware/SensorEvent.html
But without access to the source code, I can't know what's actually causing your problem.
I have the same issue
please report this bug at here:
http://www.google.com/support/forum/p/Google+Mobile/thread?tid=37f2dd3261d20d1f&hl=en
and add a star if you have this issue as well here:
http://code.google.com/p/android/issues/detail?id=15999
check my issue video here:
http://www.youtube.com/watch?v=l-9lehX8u2U
Google please fix this!!!
Hello everyone,
Does anyone knows which technology uses the Desires Z compass.
Is it a hall effect sensor (without raw magnetic pieces)?
I got a case with a magnetic closure and I m affraid with time that it might
demagnetize the sensor.
Thank you for your replies.
Just installed this app:
https://market.android.com/details?id=com.itsme4ucz.screenoff
But can't seem to find any info on where this sensor is located?
Xoom doesn't have a proximity sensor (the intended purpose of including one is to prevent you from pushing buttons with your face)
I think its next to the front camera but have you tried just moving your hand around the xoom? I'm about to install that app, I'm curious now.
sent from the honey moto
Pretty sure sangreal told it like it is.
sent from the honey moto
fob burt said:
Pretty sure sangreal told it like it is.
sent from the honey moto
Click to expand...
Click to collapse
there isn't a proximity sensor, but there is an ambient light sensor.
yep, there are not prox sensors on tablets
what you need is this app:
http://forum.xda-developers.com/showthread.php?t=976805
we are nearing release and will be on the market within a few days!
Oh no, say it isn't so! They could at least added it for motion sensing in lieu of adding motion sensors.
Sent from my Xoom using XDA App
sangreal06 said:
Xoom doesn't have a proximity sensor (the intended purpose of including one is to prevent you from pushing buttons with your face)
Click to expand...
Click to collapse
We could use a proximity sensor to show an auto hidden clock/app bar.
Hello, I was wondering if anyone knew what the sensors on the fron of the galaxy s4 are. It obviously has a camera, and one is a proximity sensor. I think one is a light sensor, but whats the 4th?
Anyone know? Is it something for motion tracking? (and if so is there an api for it?)
(On an unrelated note, is there any api for the hover above the touchscreen?)
Thanks. I'm just curious. It seems like these phones have more sensors that there are things to sense lol. (seriously does a phone need a pressure sensor and barometer? )
firesoul453 said:
Hello, I was wondering if anyone knew what the sensors on the fron of the galaxy s4 are. It obviously has a camera, and one is a proximity sensor. I think one is a light sensor, but whats the 4th?
Anyone know? Is it something for motion tracking? (and if so is there an api for it?)
(On an unrelated note, is there any api for the hover above the touchscreen?)
Thanks. I'm just curious. It seems like these phones have more sensors that there are things to sense lol. (seriously does a phone need a pressure sensor and barometer? )
Click to expand...
Click to collapse
Sensor for air gestures.
Here. Pretty cool picture with lots of info about the sensors on the GS4. As always, GOOGLE SEARCH FIRST!!
Joe0113 said:
Sensor for air gestures.
Click to expand...
Click to collapse
Oh so it does have a dedicated one. People on the internets seemed to think the gestures were combinations of the camera and proximity sensor.
But is there anymore info about it? I would love to know more details. And any api?
firesoul453 said:
Oh so it does have a dedicated one. People on the internets seemed to think the gestures were combinations of the camera and proximity sensor.
But is there anymore info about it? I would love to know more details. And any api?
Click to expand...
Click to collapse
I edited/updated my post... check it out!
Has anyone been able to work with the infared cameras in the S4? If anyone could figure out how to use them we would have some seriously awesome uses at our fingertips. Why has no-one paid attention to these sensors? One is clearly an optical camera!
Sent from my Galaxy S4 i337m
IR as in the IR on the end of the phone? It's pointing in a different direction than the camera.
On the front of the phone the two ir sensors one is an optical camera. . They are just left of the front facing camera
Its what samsung uses for the air gestures. ..
Sent from my Galaxy S4 i337m
Don't know why this was moved, people need to be working on this it isn't really a question
Sent from my Galaxy S4 i337m
It was moved because its a question. I count two question marks. It'd be different if you're sharing information such as links as to how to utilize them (source code?) (Hardware information to the device?).
Sent from my GT-I9505G using Tapatalk 2
Okay well anyways this needs to be addressed. Freaking IR Camera not being used.. Air gestures are a useless feature for such a useful piece of hardware!
Sent from my Galaxy S4 i337m
MavereXx said:
Okay well anyways this needs to be addressed. Freaking IR Camera not being used.. Air gestures are a useless feature for such a useful piece of hardware!
Sent from my Galaxy S4 i337m
Click to expand...
Click to collapse
It's an ir sensor, not a camera. It doesn't have the resolution to do anything but sense heat.
Wow... IR does not sense heat. This is not a camera. An infrared camera is a camera that detects IR. So... Both the front facing and rear facing camera can detect IR. Just point your remote for your TV at them.
IR is invisible to the human eye. It is a lightwave. It does not have anything to do with heat. Please read up on this stuff before posting false info.
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
graydiggy said:
Wow... IR does not sense heat. This is not a camera. An infrared camera is a camera that detects IR. So... Both the front facing and rear facing camera can detect IR. Just point your remote for your TV at them.
IR is invisible to the human eye. It is a lightwave. It does not have anything to do with heat. Please read up on this stuff before posting false info.
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It sure does, you need to do a little more research.
Let me rephrase.
The S4 does not have infrared thermal detection camera's. It has an infrared blaster and an IR blaster/receiver.
The IR blaster/receiver does not detect heat of any kind. What it does is put out light that when interrupted by an object on any kind has the light reflected back sending a signal to do whatever action depending on the motion.
Thermal IR is a very costly technology that is completely impractical and stupid in a phone. Any change in temperature would cause undesirable actions to be carried out.
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
Yes I agree
MavereXx said:
Okay well anyways this needs to be addressed. Freaking IR Camera not being used.. Air gestures are a useless feature for such a useful piece of hardware!
Sent from my Galaxy S4 i337m
Click to expand...
Click to collapse
I do agree with you here. It is a powerful feature. If the infrared camera had no real resolution then it would not be able to detect gestures. Also there would be no reaosn to have the emitte be offset from the reciever. This is usually used to determine the depth of objects, kind of like the eyes are setup. Also there would be no real way to detect eye movement.
You will also notice that the three sensors are placed in the same fasion as an Xbox Kinect. This would be the front picture camera (used for pictures only), the paired IR camera and Color camera next to eachother on the right, and the IR emitter offset to the right.
It shoudl be possible to generate low resolution depth images, but the main problem here is the view range. If you have ever viewed an infared cameras output you will find that the falloff of the IR is quite high, meaning that you might only be able to detect depth for a few inches or foot from the top surface of the device. You would need a much more powerful IR emitter to detect depth past a fopot or so. If you use a kinect, you will notice that the IR Emitter is quite large and powerful. Still worth investigating.