An accelerometer is a device that measures the proper acceleration of the device.

learn more… | top users | synonyms

1
vote
2answers
26 views

Allowing both landscape options and accelerometer with libgdx

I've completed the SimpleApp tutorial for libgdx. I have changed the controls for the game to use the accelerometer instead of touch input, in the following way: In MainActivity.java ...
0
votes
1answer
23 views

calculating position with the LinearAcceleration

I am trying to calculate a new X position based on Sensor.TYPE_LINEAR_ACCELERATION that i will be applying to my android game. I an starting with the following variables all set to 0: float ...
0
votes
0answers
15 views

Which sensor type for most accurate rotation result?

I'm working on a project where I need to know the rotation of an android phone. If it's tilted too much to one side or the other, it should give me a message. Until now I have used the ...
1
vote
2answers
52 views

LocationRequest in Google Play Services isn't updating for interval set as less than 1 second.

I'm developing an android app in which I need to show location updates with some 30-40 updates per second. I'm using the Location APIs of Google Play Services, introduced in Google I/O 2013. It uses a ...
0
votes
0answers
8 views

Translating AIR accelerometer features to simulate W3C motion and orientation

I'm working on an API in Haxe that will hopefully unify accelerometer events in AIR/NME and HTML. Ideally I would like to have most of the features available in W3C DeviceOrientationEvent and ...
0
votes
1answer
26 views

Android Game Programming — Accelerometer vs. Compass

Hello StackOverflowers, I am designing a game for Android where I plan on allowing the user to move in four different directions (up, down, left, and right). I would like to implement this using ...
0
votes
0answers
8 views

swap with accelometer in tablelayout

im trying using accelometer to moving/swaping tile, i got the row n coloumn but cant do swap here is the accelerometer java @Override public void onSensorChanged(SensorEvent event) { ...
0
votes
2answers
25 views

How to receive acceleration-related data from the onboard hardware, when application in background mode?

Am developing application for calculate count of user moved steps and draw the user activities in the map. And we are using UIAccelerometer delegate for receive acceleration-related data from the ...
2
votes
1answer
31 views

iOS Coremotion accelerator updates in background/ sleepmode

I need accelerator updates when the app is running in background/ the device is in sleep mode. Some apps do this, I could not make it working. For this I have a CoreMotion property in my appdelegate ...
0
votes
1answer
14 views

Why does creating Media Player object crash my android code?

I'm creating a little program that plays the mario jump sound when someone jumps. I can use the Z acceleration to make the program display a message when it reaches a certain value like 10 m/s^2. I ...
0
votes
1answer
19 views

How Log accelerometer Value

What's the best way to log accelerometer values? I wrote a program that gets the accelerometer and uses a clock calculates the velocity and acceleration of the phone. Is it possible the store all ...
1
vote
2answers
30 views

How to swtich Accelerometer Axis based on Device?

My android application uses the Y Axis accelerometer to control the character in the game. This is working fine on most mobile phones, however on my Galaxy Tab 2 10.1, the axis seems to be reversed ...
0
votes
1answer
33 views

applying accelometer to moving textview

its possible to moving textview with accelometer? im trying and get forceclose slidame4.java public class Slidame4 extends Activity implements SensorEventListener { private Bitmap bit,bi,bitm; ...
1
vote
0answers
23 views

detecting a mobile device flat movement in 2D space - is it possible?

I program mobile apps using Adobe AIR but i guess this question refers to mobile development in general. I would like to do something like a 2d drawing app with the movement of the mobile device ...
0
votes
0answers
33 views

Detect the motion of the Android Device

I want to implement a situation in which I want to reset my counter watch when the device is moved a little or tilted in any direction, I am using accelerometer for the same, but it is not giving me ...
0
votes
1answer
25 views

Can I use Python (with pyfirmata) to read and use data from a gyroscope connected to an Arduino?

I have my Arduino hooked up via serial to my computer and can do basic digital writes and stuff to the Arduino with Python (using the pyfirmata library). So what I'd like to know is whether or not I ...
3
votes
2answers
67 views

Detect Movement Accurately using Accelerometer in Android

I am implementing a demo TIMER, with Vibration ( at a particular condition ), When I press start my timer starts running.. and when I stop it using stop button, it simply stops. Now I have to ...
0
votes
0answers
38 views

Phonegap - Measure Acceleration from car

I am using phonegap and i would like to measure Acceleration/deceleration and cornering forces in a car using iPhone and Android. Accessing the Accelerometer values via phonegap (Y values for ...
0
votes
0answers
51 views

Data from accelerometer to achartengine in realtime

I'm new to android and still just playing with it. However, recently I ran into a problem and I got stuck. I'm trying to take data from an accelerometer and then plot it using achartengine in real ...
0
votes
1answer
30 views

CMDeviceMotion userAcceleration is upside down?

I'm seeing some unexpected readings from the userAcceleration field in CMDeviceMotion. When I look at the raw accelerometer data from CMAccelerometerData, I see that if the iPhone is flat on a table ...
0
votes
1answer
68 views

iOS Accelerometer-Based Gesture Recognition

I want to create a project that reads the user's gesture (accelerometer-based) and recognise it, I searched a lot but all I found was too old, I neither have problems in classifying nor in ...
0
votes
1answer
28 views

javaNullPointer on display.getRotation()

After having comment all my code to know from where the error was, i found that it came from mDisplay.getRotation(). The general idea of my code is to get the good information from the accelerometer ...
1
vote
1answer
29 views

Is it possible to use the accelerometer outside of the context of an activity?

Hi I am new (I have only been programming for a few months, so my grasp is shaky) to eclipse and am trying to create a game where the player's avatar is moved with the accelerometer and they must ...
-1
votes
0answers
17 views

Android Accelerometer

im developing an app like when the X,Y,Z axis change the beeping should start. anyone go through my code and check for any errors and how to specify the path of beep.wav r how to store the beep.wav ...
1
vote
1answer
67 views

Moving ball with accelerometer inside a view on camera preview in android

I have been searching and coding for 3 days now on this problem, no result :( I made a camera overlay which the code is here + the Accelerometer public class CameraActivity extends Activity ...
0
votes
2answers
86 views

Add together two UIAccelerationValue's?

I am not sure if this is a stupid question or not so please bear with me here. Anyway I have two UIAccelerationValue's. When I individually NSLog their results I get values like this respectively: 1. ...
4
votes
3answers
164 views

Android Accelerometer Profiling

I have written a simple Activity which is a SensorEventListener for Sensor.TYPE_ACCELEROMETER. In my onSensorChanged(SensorEvent event) i just pick the values in X,Y,Z format and write them on to a ...
1
vote
1answer
34 views

Can't work with accelerometer coordinates

I'm trying to develop a small android app. You are controling your character, which is astronaut, and you are supposed to gather air bubbles to survive. Well, I got stucked at the very beginning. I ...
1
vote
1answer
24 views

Blackberry Accelerometer calculations

I'm playing with the "AccelerometerDemo" in SDK7.0 and have a question regarding the calculation of "rotation" extracted from the XYZ data. What I want to accomplish is have a virtual "pendulum" that ...
1
vote
0answers
24 views

Reorientation of Accelerometer axes to car's axes

I am working on an application where I need to reorient accelerometer axes according to car's axes. Could anyone help me out how I can achieve this ? What I mean by this is : If I keep my phone in ...
1
vote
1answer
84 views

Android Accelerometer store data in file

I am writing an app in which I have to store data in a file for accelerometer values. How do I do that ? I have to create a file only once and append the data in that file. This is the flow of ...
0
votes
1answer
73 views

Android collect and send data

I am working on application where I need to collect accelerometer and location data & send them over web-server. I have to collect the data on sensor changed event. Right now I am trying to ...
0
votes
1answer
71 views

Access and use the values of the accelerometer in the Android kernel level

How can I access the accelerometer in the android kernel space and use it's data? I'm working on a project where I need to control some of the phone's functionality while the phone is moving (in a ...
2
votes
0answers
32 views

Which motion sensor would consume less battery [duplicate]

As long as my app is active, I need to detect movement, meaning, when the device has started to move. I'm requesting updates in a fixed frequency, and the tracking of sensors is working when the ...
1
vote
1answer
42 views

Rotate UIView without deformation

I'm rotating a UIView based on the accelerometer data, and it works fine except that the UIView is deformed. I'm not sure how to fix the issue. Here's the code in my didAccelerate method: float ...
0
votes
1answer
36 views

Android accelerometer detects only two dimensions changes

I'm learning about accelerometer in android. I'm getting new values when tilting the phone around the green and the blue arraw, but not the red one! That's actually my problem. And here's the code ...
0
votes
0answers
71 views

Understanding accelerometers and gravity compensation

I have a sensor that provides both accelerometer and quaternion readings. If the accelerometer is on a flat surface, I get [0,0,1]. But as I move it, the vector changes. Does that mean that the sensor ...
0
votes
1answer
27 views

Accelometer different sensitivity at different tilts?

In my cocos2d game I would like to use tilt controls. The game is in landscape left only, for keeping it simple. Now, if the user tilt device backwards, eg, tilt the screen upwards, the player ...
0
votes
0answers
29 views

Taking a picture with accelerometer measurement on iphone

I'm thinking to make an iPhone app that can take a picture and measure the acceleration. it needs to be done at a time that I can capture the motion on the picture. Is anyone knows it is possible or ...
0
votes
1answer
42 views

Making a teeter totter/ chopping motion in Flash AS3 with away 3D

I am trying to make a choppping motion based on the accelerometer of my tablet and showing it using away3D box. Essentially what I want to do it every time the user shakes the device on accelerationY ...
0
votes
0answers
27 views

Motion detection versus conserving battery

In my app, I have a service that is constantly running in the background, in time ranges the user determines. In theory, I need to constantly know the user's distance from some destination. So for ...
1
vote
0answers
83 views

Calculation User speed and distance using device accelerometer android

Hi I am developing small android application in which i wanted to calculate user speed and distance covered by user using device accelerometer. So what I did I take samples of acceleration in time ...
0
votes
3answers
42 views

Register a receiver to listen to the shake event [duplicate]

Can we Register a receiver to listen to the shake event ? Is there any receiver intent to do that ,I am not able to find it . My requirement is to to launch my app on shaking the phone .
0
votes
0answers
68 views

Android Accelerometer controlled car [closed]

So, I am making (actually I'm very close to being finished) an Android app to control a car I made using the accelerometer Everything is working but there is an annoying thing when controlling the ...
1
vote
1answer
26 views

UIAccelleration value range

The AppleDeveloper guide seem to imply that UIAccelerationValue can range between a double value of -1.0 and +1.0. I have logged the values from a real device whilst "shaking" with crazy gestures my ...
0
votes
0answers
78 views

Detect iPhone movement up/down left/right with CMDeviceMotion

I'm developing an app that needs to be notified when the device is moved swiftly up, down, left or right on a 3-dimensional plane. Obviously, you would turn right to the Core Motion framework and the ...
0
votes
0answers
30 views

Fusion of sound and acceleration android [closed]

I am trying to implement a android class which takes sound and acceleration measurement, i want to take this measurements and make a fusion of them so I can get one value and plot a graph. Has anyone ...
4
votes
1answer
207 views

how can we measure distance between object and android phone camera

I want to calculate the distance between the camera and the recognized object.For this I tried a lot of methods, I tried to find the angle between the object and the camera using accelerometer and ...
0
votes
1answer
57 views

How to register a sensor listener inside a button's onClick method?

I have an application in which I want to start a listener for the accelerometer when a button is clicked, so I tried this way: private SensorManager sensorManager; @Override public void onCreate ...
0
votes
1answer
97 views

I2C Sampling Rate

I'm having trouble trying to sample I2C slave devices using a dsPIC33f microcontroller. I am using the PICs internal timer1 timer to 'tick' over at a defined sampling rate and grab the necessary ...

1 2 3 4 5 22
15 30 50 per page