Does the Iphone 1/2 have a compass inside? - iphone

Can one be simulated by periodicly syncing with GPS and in the meen while working with the accelerometer? I know for example that the N95 accelerometer is invarient to rotation on the Y axis (while beeing face up/down).

The original iPhone and the iPhone 3G use GPS to calculate the heading, however the iPhone 3GS now has a 3-dimensional magnetometer compass in it.
This can only be done taking two GPS coordinates (while moving) and determining the direction from point A to B.

iPhone doesn't have a built in compass; but there is one created in software. It's called Compass Free, and unsurprisingly perhaps, it's free.

Extra info: The IPHONE 1 did not have GPS or compass.

Related

can we get location details(latitude,longitude)when iphone is in air plane mode?

I want to get latitude and longitude values using my app,when iphone is in Air Plane mode.Does GPS work in air plane mode?
http://support.apple.com/kb/ht1355
GPS is turned off in airplane mode, according to Apple.

How to implement an iOS metal detector app?

I want to implement a Metal Detector app which will react to a magnetic field in the phones surroundings.
How do I read the magnetic field readings from the magnetometer on the iPhone? Does anyone have sample code for accessing the magnetometer readings directly?
Thanks!
I would recommend you look at the O'Reilly book called iOS Sensor that is coming out. They have an entire chapter (6) on the magnetometer and a sample app.
iOS Sensor Programming
Apple Sample Code for Reading the Raw Values from the Magnetometer
No. You can't.
UPDATE : there is no metal detecting components in iPhone. However, there is a magnetometer available since iPhone 3GS. The Compass App makes use of the sensor to detect direction. It just reads magnetic North, but not reading magnetic fields surrounding. Therefore, you can't make a metal detector with it.
Physics Fact: Metal does not generate magnetic fields. Magnets do.
p.s. correct me if I am wrong.
There is already an app which does this. Check this and this blog.
This is what the description says,
The app has an adjustable sensitivity and makes an audible sound
signal if the sensitivity reaches a medium level. The phone needs to
be shook once to be calibrated if you intend to use the device again.
The app makes use of the magnetometer on the iPhone to find
interference with the compass to detect metal objects. Just hover the
backside of your mobile, the area under the camera, over the metal and
the app should find the metal and there should be an increase in
sensitivity.
However I am not sure if it is a fake app or it can be really done this way. Try downloading that and check it yourself. It is a free app.

html5 and heat sensors

I'm new to html5 programming and was thinking of building an html5 app for iphone. I was wondering if there was any information in the API about sensing temperature on touch in the api? My app depends on the temperature of ones finger when they touch the screen. Is there anyway to measure this? IF not, is there a way to measure the amount of pressure applied to the screen?
Thanks!
Room temperature: Yes.
The temperature of your thumb on the iPhone screen: no.
The pressure of your thumb on the screen: also no.
Remember - the iPhone "touch" works on capacitance, not "mechanical pressure".

Altitude value in iphone 3GS

I am using CLLocation to get altitude values. It is working fine with iphone4. But it takes long time to get the value in iphone 3GS (more than 5 min). I checked it using wi-fi on and off. In both cases, the output is same. Please help.
Try to change the CLLocationAccuracy when you configure the CLLocationManager.
It may changed the time needed to get a value, but in all case it depends on where you are and on the available GSM issuer and/or GPS satellites.
In all case, the altitude value isn't very reliable.
It is absolutely normal. In general, you should expect that the iPhone 4 GPS signal reception is far better than on the iPhone 3GS, that is far better than on the iPhone 3G:
iPhone 4 >= iPhone 3GS >= iPhone 3G
This means that on the iPhone 3GS, respect to the iPhone 4:
1) it takes longer to get the fix
2) it takes longer to get an accurate position
3) it takes longer to get an accurate altitude

Color consistency between Photoshop, iPhone Simulator, and iPhone

I've been working a lot with Photoshop .psd files recently and have been bouncing back and forth a lot to ensure colors look just right on the iPhone.
Can anyone offer some tips on calibrating macbook/apple cinema displays in regards to keeping color consistency between Photoshop, the iPhone simulator, and physical iPhones?
Have a look on LiveView created by Nicholas Zambetti.
You need to install it on your iPad/iPhone/iPod Touch and on your Mac. when synced (Mac and device) you can have a preview of the selected area of your screen (Mac), on your device.
Hope this will help you out!
Cheers,
vfn
Here's the problem: One day my graphic designer and I wanted to match colors with her calibrated Apple monitor. We compared several different devices (my 3GS, her iPod Touch, my iPhone4, and an iPad). The color temperature and calibration was different on all 4 devices. Furthermore, my 3GS showed a much cooler color temperature another friend's newer 3GS. And there are similar reports of differences between the production runs of other iDevice models.
So you will have to check your colors on several different devices.