Questions tagged [accelerometer]

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

From Wikipedia:

An accelerometer is a device that measures proper acceleration. The proper acceleration measured by an accelerometer is not necessarily the coordinate acceleration (rate of change of velocity). Instead, the accelerometer sees the acceleration associated with the phenomenon of weight experienced by any test mass at rest in the frame of reference of the accelerometer device.

For example, an accelerometer at rest on the surface of the earth will measure an acceleration of g=9.81 m/s^2 straight upwards, due to its weight. By contrast, accelerometers in free fall or at rest in outer space will measure zero. Another term for the type of acceleration that accelerometers can measure is g-force acceleration.

Most questions regarding this tag deal with how to access, interpret, and process accelerometer data that is abundant in smartphones.

2578 questions
0
votes
1 answer

Problem with object rotation when using gyroscope in Unity

I use this code to track the movement of the gyroscope and rotate the object: Vector3 previousEulerAngles = transform.eulerAngles; Vector3 gyroInput = -Input.gyro.rotationRateUnbiased; Vector3 targetEulerAngles = previousEulerAngles +…
0
votes
0 answers

Detect if a device is rising or falling regardless of device orientation

I'm developing a PWA using Capacitor.js, that calculates the rate of rising/falling of the device in meters per second. I'm using Capacitor's Motion plugin, but I'm unsure how to perform the calculations to convert the devices coordinate system to…
0
votes
0 answers

Complementary filters-STM32

I want to use the complementary filter to get the roll and pitch angles using an IMU sensor with an stm32l4+ microcontroller but get (nan(0x400000). I get some values at first then it shows nan. this How I implement it. /* Read the Data of the…
0
votes
0 answers

Python code for BITalino accelerometry measurements

I have been trying to find information about what the Python script for extracting and ploting the accelerometry data measured by a BITalino device is, but I am not able to find any useful information. Does anyone have such script? Thank you very…
0
votes
0 answers

Javascript not Requesting Accelerometer Permissions Properly iOS

My website is trying to request accelerometer permissions. The main issue I am facing is that accelerometer permissions only work part of the time. Many times, the user is never prompted for permissions so nothing happens. I know currently the…
0
votes
1 answer

How to calculate rotation matrix for an accelerometer using only basic algebraic operations

There is a C function that gets the acceleration values of x,y,z of an accelerometer sensor (MEMS IMU) as input, and calculates the rotation matrix in a way that the z axis is aligned with the gravity. It is being used for calibrating the…
0
votes
2 answers

UIViewController shouldAutorotateToInterfaceOrientation - would like to add hysteresis

I would like to defer auto rotating the user interface until the device has settled on an orientation for a number of seconds, rather than driving the user insane and flicking willy nilly whenever they tilt the device a few degrees off axis by…
unsynchronized
  • 4,828
  • 2
  • 31
  • 43
0
votes
0 answers

convert accelerometer and gyroscope data from an Arduino into an iOS SCNNode position and rotation

Context: I have an Arduino Nano RP2040 Connect device which has a built-in IMU. I also have written an iOS app that utilizes SceneKit and can render/animate SCNNodes. Goal I want to move my Arduino around in real life and have a visualizer in…
stanley
  • 1,113
  • 1
  • 12
  • 26
0
votes
1 answer

Complimentary filter for Xsens sensor

I am trying to fuse Xsens MTi-20 sensor gyro with accelerometer using complementary filter, calculated angle looks okay, at least i think so, but the problem is that when sensor in not moved values for roll and pitch are increasing at a steady…
Chris_xx
  • 1
  • 2
0
votes
0 answers

3d accelerometer data for classification

I'm trying to train Wavelet neural network model for classification of 3d accelerometer data. I have signals along with x, y and z axis. I want the model process the 3d signals as one input signal. Any Idea of how to combine the 3 signals into one…
0
votes
0 answers

C - MCU code has 3 error prone regions on my graph output

I'm trying to output the tilt angle of an accelerometer, over serial with an MCU. The code works 99% smoothly for all angles, but I keep consistently getting errors in three regions and am not sure why. Here is a pic of the output data on a…
ezra_vdj
  • 133
  • 5
0
votes
0 answers

Normalizing android accelerometer data so that x,y,z are always referencing the same orientation regardless of device's orientation

I'm writing an Android app to gather the x,y,z forces from the accelerometer, and periodically transmit them back to a server. On the server, I have a program that runs through the data to determine hard braking, fast acceleraton and hard…
Tom
  • 1
  • 2
0
votes
0 answers

Can an iPhone Accelerometer/magnetometer be used to detect when an object has reversed direction?

I am trying to code for an application where when an iPhone is attached to a device, it can detect when the device has reversed direction. So far, I have been focused on trying to extract velocity information but now realize that 1) its challenging,…
erkn
  • 1
0
votes
2 answers

Attitude estimation using the unscented Kalman filter

I'm trying to determine the attitude of a rigid body in R3 fusing the data coming from an accelerometer, a gyroscope and a magnetometer. I've taken the UKF algorithm as written in the book "Optimal State Estimation: Kalman, H∞, and Nonlinear…
0
votes
3 answers

What motion does iPhone SDK give exactly?

I am a little confused about iPhone's accelerometer and gyro data. I had worked with SDK at iOS 3.x times and as far as I remember it only gives rotation around axes. But with iPhone 4 I saw that it has a gyroscope; which is used for rotation again.…
paul simmons
  • 5,568
  • 13
  • 51
  • 78
1 2 3
99
100