accelerometer

How to detect iPhone movement in space using accelerometer?

狂风中的少年 提交于 2019-11-27 10:11:14
问题 I am trying to make an application that would detect what kind of shape you made with your iPhone using accelerometer. As an example, if you draw a circle with your hand holding the iPhone, the app would be able to redraw it on the screen. This could also work with squares, or even more complicated shapes. The only example of application I've seen doing such a thing is AirPaint (http://vimeo.com/2276713), but it doesn't seems to be able to do it in real time. My first try is to apply a low

How to do Gesture Recognition using Accelerometers

女生的网名这么多〃 提交于 2019-11-27 09:38:23
问题 My goal is to recognize simple gestures from accelerometers mounted on a sun spot. A gesture could be as simple as rotating the device or moving the device in several different motions. The device currently only has accelerometers but we are considering adding gyroscopes if it would make it easier/more accurate. Does anyone have recommendations for how to do this? Any available libraries in Java? Sample projects you recommend I check out? Papers you recommend? The sun spot is a Java platform

Understanding FFT output

痞子三分冷 提交于 2019-11-27 08:58:17
问题 I need some help understanding the output of the DFT/FFT computation. I'm an experienced software engineer and need to interpret some smartphone accelerometer readings, such as finding the principal frequencies. Unfortunately, I slept through most of my college EE classes fifteen years ago, but I've been reading up on DFT and FFT for the last several days (to little avail, apparently). Please, no responses of "go take an EE class". I'm actually planning to do that if my employer will pay me.

Why is accelerometer:didAccelerate: deprecated in IOS5?

梦想与她 提交于 2019-11-27 08:37:36
The release of IOS5 has this core function listed as deprecated . Does anyone know what will replace it? I'm assuming that apple is not going to remove the accelerometer from iPhone 5. Kay I did not yet use iOS 5, but already in 4.x UIAccelerometer and UIAccelerometerDelegate were replaced by the CoreMotion framework. It is more sophisticated, takes gyroscope signals into account and performs a sensor fusion i.e. does calibrating stuff like bias calculation for you. Basically the CMDeviceMotionHandler block callback is now the equivalent. It is called every deviceMotionUpdateInterval seconds

Orientation from Android Accelerometer

五迷三道 提交于 2019-11-27 06:40:58
问题 I testing the accelerometer output on 2 different devices(Elocity A7 and Archos 7 Home tablet) but the sensor seems to be giving different results. I have it programmed to set to landscape mode but the x and y axis seem to be the oppisite between the 2 devices. The x axis returns 10 when held perpendicular to the ground and the Archos X axis returns 0. The Elocity tablet is android 2.2 and the Archos is 2.1. Can someone point me in the right direction as how to get orientation from the

How do I use the Android Accelerometer?

a 夏天 提交于 2019-11-27 06:37:51
I'm trying to build an app for reading the values from the accelerometer on my phone, which supports Android 2.1 only. How do I read from the accelerometer using 2.1-compatible code? Start with this: public class yourActivity extends Activity implements SensorEventListener{ private SensorManager sensorManager; double ax,ay,az; // these are the acceleration in x,y and z axis @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); sensorManager=(SensorManager) getSystemService(SENSOR_SERVICE); sensorManager.registerListener

Acceleration from device's coordinate system into absolute coordinate system

本小妞迷上赌 提交于 2019-11-27 06:12:54
From my Android device I can read an array of linear acceleration values (in the device's coordinate system) and an array of absolute orientation values (in Earth's coordinate system). What I need is to obtain the linear acceleration values in the latter coord. system. How can I convert them? EDIT after Ali's reply in comment: All right, so if I understand correctly, when I measure the linear acceleration, the position of the phone completely does not matter, because the readings are given in Earth's coordinate system. right? But I just did a test where I put the phone in different positions

Enable iPhone accelerometer while screen is locked

久未见 提交于 2019-11-27 06:02:30
问题 So apparently it is possible to keep the processor going processing stuff while the screen is locked, as indicated here: Running IPhone apps while in sleep mode However, after testing with the example code, UIAccelerometer will just stop giving value as soon as the device is locked pronto. Is there a way to force otherwise? 回答1: There was a bug in iPhone OS prior to 3.1.2 that caused the accelerometer to stop returning values as soon as the screen was blanked. You may be running into this

Get rotation and display in degrees

北慕城南 提交于 2019-11-27 05:52:50
问题 I need something very simple, but I could not find a suitable example to learn from. My sole purpose is the following: As the device is placed flat (on its back) on the desk, it should show 0 (or close to 0) for X and Y axis. When I lift it from the top part (where the speaker is) and the bottom part (where the microphone is) stays put down - it should show me how many degrees is the phone tilted. Mathematically described - show in degrees the angle between the back of the phone and the table

Using accelerometer to calculate speeds

若如初见. 提交于 2019-11-27 05:46:00
问题 I've been doing a bit of research on a problem we are trying to solve. I think this is the best approach but please add in your opinions We are trying to calculate reaction times in a real world driving scenario and would like to use a mobile phone as the data collection device. What we are trying to accomplish is how much acceleration and more importantly deceleration a driver exerts when exposed to certain prompts. I found this paper that has allot of useful information Accelerometer