Advertisement

Video: Man creates real-time magnet position detection system using an iPhone



As smartphones have gotten smarter their insides have had to get smarter with them. Right now the iPhone in your pocket contains an accelerometer, magnetometer digital compass, gyroscope, microphone, proximity sensor, camera, GPS, and more. Ivo Leko is a developer who was inspired by the possibilities inside our phones to create a new way of interaction with the device.

Using the iPhone's magnetometer, accelerometer and microphone Leko has written a library in Objective-C and C that allows you to detect the position of a magnet in real time. While that may not sound impressive actually watching it in action is another story. The program can detect the magnet across both a 2D and 3D plain, meaning in the future this could be used for a number of active real world situations like virtual keyboards, styluses, and game controllers. In the mean time it's simply a stunningly interesting demo. Enjoy.