iPhone Magnetic Measurements
Modern smartphones have internal magnetic sensors that can detect magnetic fields. Learn more about how the output of these sensors can be useful in finding north, identifying the direction of the earths’ magnetic field, identifying poles of magnets and checking compliance with air shipment regulations. Neodymium MagnetsDetect Earth’s Magnetic Field
While most folks aren’t using this compass to figure out which way to go, they are using magnetic information indirectly. When using an iPhone for directions, the phone considers not only the GPS sensor data, but also the magnetometer and accelerometers. That’s part of how it can tell which direction you are pointed in.
The magnetic field sensed by the internal compass is not actually pointing to the north pole. In fact, unless you live near the equator, it is probably pointing mostly down into the ground!
There are a few applications that work well to detect the earth’s 3-dimensional magnetic field. We demonstrate a few in the video below.
What is the strength and direction of the magnetic field where I live?
- Intensity is the overall strength of the magnetic field.
- Declination is how far off from true north you would expect a compass to point, where true north points straight to the earth’s north pole (the top of the globe, where it rotates).
- Inclination is how much the field direction is pointing up (into the sky) or down (into the ground). Up is denoted as positive numbers, while down is negative.
Detect a Magnet’s Magnetic Field
You can also use the same apps to measure the magnetic field near a neodymium magnet. You can’t measure very strong magnetic fields very close to the phone – the sensor isn’t able to measure fields that strong. Plus, you want to be careful not to get too close to the phone, or it could magnetize parts in it and/or mess up the compass calibration.Identify a Magnet’s Poles
These applications can also help identify the poles of your magnet. Below, we demonstrate how to use a few of these apps to identify the poles on an iPhone 5.Don’t get a magnet too close to the phone, or it can temporarily mess up the calibration of the compass.
Estimate if a shipment meets air shipment requirements
In our article about Shipping Magnets, we describe the air shipment regulations pertaining to shipping magnets via air. We also described a few ways of how to estimate it, though the surest way is to actually measure it with a special, very sensitive magnetic instrument. Even though the sensors inside a smartphone are not sensitive enough to measure this directly, we can use them to estimate whether a package might meet these requirements.If you can measure a magnetic field of 2 milligauss or more (0.002 gauss or 0.2 microTesla) at a distance of 7 feet from your package, the IATA (International Air Transport Association) says it must be labeled as a Dangerous Good. We typically try to package magnets to be below this limit, avoiding the necessity of shipping as a Dangerous Good. Can we measure this weak magnetic field with an iPhone?
Unfortunately, no. The tiny measurement is beyond the resolution that the sensor is capable of.
However, if we place the smartphone at some closer distance, we might be able to infer the field strength farther away. Considering how the field strength drops off near a disc magnet (formula found in Surface Fields 101), we figure that a magnet that has a 2 milligauss (0.2 μT) at 7 feet should have a strength of 20 milligauss (2 μT) at about 39 inches away. This, the sensors can detect.
We are assuming that your package of magnets will have a magnetic field that drops off in this way. It’s not perfectly accurate in every situation, but it’s a fair approximation.
In the video below, we measure the field strength of a few magnets in a few different configurations, both below and above the limit. The output of the iPhone at 39 inches away, and an air shipment milligauss meter at 7 feet is shown.
DISCLAIMER: Using a smartphone like this is only an estimate. It is a great way to get a rough idea of how close you are, but might not be exact in all cases. If in doubt, check with a calibrated air shipment milligauss meter.
CAUTION: Messing with powerful magnets near your iPhone can alter the calibration of the sensor!
In researching this article, we experimented with a number of powerful magnets near the phone. While the compass can re-calibrate itself, it is possible to mess it up. In our case, it seems that we might have slightly magnetized some component inside the phone.While the compass still seems to work reasonably well, it doesn’t show the same overall field strength when we twist the phone around in different directions. This relatively new iPhone did agree with itself before we starting experimenting. There are a number of stainless steel shields inside an iPhone that might have been very slightly magnetized by the passing magnets. Hopefully they will demagnetize over time.
Avoid getting powerful magnets too close to your smartphone, or risk messing with your own compass calibration. Anything closer than a few inches is stronger than that sensor can measure anyway.
No comments:
Post a Comment