Questions tagged [accelerometer]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 views

How to know if mobile is tilted upward or downward in Android?

I am making an game where I need to know if the phone is tilted upward (towards sky) or tilted downwards (towards ground) when in landscape. I have used this answer Answer Link as my starting point. ...
Vikalp Ranjan's user avatar
0 votes
1 answer
37 views

Accelerometer Data Classification

I am trying to classify accelerometer data (sampled with a frequency of 100Hz) into 4 different transportation modes (0,1,2,3). I have 41 different CSV files, each representing a time series. I stored ...
Maxl Gemeinderat's user avatar
0 votes
0 answers
13 views

Human Activity Recognition - Train-Test-Split and Modeling

I have a list of CSV files that contains accelerometer (Frequency 100Hz) data from several subjects. I first read in all CSV-files into a list called "subjects". Here is a short snipped on ...
Maxl Gemeinderat's user avatar
0 votes
0 answers
47 views

How can I have Android on the RasPi with Accel/Gyro?

For a project, I want to use a Raspberry Pi (or similar) running Android. Just using a mobile device is not an option (due to ruggedness, always-on, breakout-options etc.) The other thing my project ...
isync's user avatar
  • 537
-1 votes
0 answers
32 views

Using ADXL345 with Arduino Uno as vibration sensor to detect vibration on machine

When connecting one ADXL345, I managed to get the result. Upon working on two ADXL345 on the arduino uno, I can't seem to get the result and serial monitor shows no result. Expected result is that the ...
Benjamin's user avatar
0 votes
0 answers
12 views

What could be the problem on why the computation in the getCurrentLocation returns 0.0000 or -0.0000?

At debug it works at first but after some restart or after testing the values will be 0.0000, -0.0000 where in fact there is new and previous data for accelerometer. void getCurrentLocation() async { ...
Polly's user avatar
  • 37
0 votes
0 answers
31 views

Determining the displacement of a Phone (Android)

I want to determine how far a phone has been displaced. However, I want to determine this information to an semi accurate scale (couple of centimetres). I've already toyed around with the idea of GPS, ...
Frankvp11's user avatar
0 votes
0 answers
17 views

Compensate acceleration changes in a load cell's readings using an accelerometer

I'm reading weight with a load cell that's fixed on a moving body. Said body drives arround many uneven trails. I've tried using an accelerometer to compensate the vertical acceleration, making it so ...
user22360489's user avatar
0 votes
0 answers
17 views

Accelerometer Status is SENSOR_STATUS_UNRELIABLE

I am using accelerometer data in my android project but I found the sensor's data is bit off. When I checked for event.accuracy it returns SENSOR_STATUS_UNRELIABLE. When I perform calibration using ...
Harshit Jain's user avatar
1 vote
1 answer
48 views

How to apply calibration to accelerometer in android?

I am using rotation vector sensor to calculate the orientation of my device. There seems to be an error in the output of rotation vector sensor due to some offset in accelerometer data. I am able to ...
Harshit Jain's user avatar
1 vote
0 answers
30 views

How to ensure stability on all device that can use the Android TYPE_GAME_ROTATION_VECTOR sensor

I am using TYPE_GAME_ROTATION_VECTOR as sensor in Android project. However, on some devices (Example S22 Ultra), I saw a difference in rotation angles from the sensor. For example, while most devices ...
Sina's user avatar
  • 31
2 votes
1 answer
74 views

How to estimate angles from acceleration and acceleration from angles in 3 dimensions?

I saw several questions about this in lots of forums, but none of them resulted me clear enough or precise enough for my needs. Or I just didn't understand them, that's another possibility. Well, ...
Cheloute's user avatar
  • 813
0 votes
0 answers
21 views

Use camera and accelerometer to work like gyroscope

recently I installed HomeTheaterVR on my android device , in which i noticed this feature which uses camera and accelerometer to work like gyroscope. It is built with unity. Im trying to replicate ...
ANDuser's user avatar
  • 91
1 vote
2 answers
39 views

Best way to take the values of a column that are all related to multiple rows with the same index [duplicate]

I'm currently try to take accelerometer data samples and combine them into a single dataframe for use with machine learning. There are 100 entries per sample saved to csv's and each gets loaded in ...
Grimsbear's user avatar
0 votes
0 answers
39 views

Unity iOS gyroscope always returns constant value

I'm reading the gyroscope on a Unity iPhone app but however I move the phone it returns the same value it returns is always the constant value of (0.00000, 0.00000, 0.70711, -0.70711). I'm reading it ...
Tim MB's user avatar
  • 4,423
0 votes
1 answer
66 views

Add rows to pandas dataframe in loop

:) Hi everyone! I wanted to do something very specific. I have some accelerometer data with A LOT of gaps due to hardware malfunctions, and I wanted to artificially fill in those gaps so I can do a ...
Francisco Barroca's user avatar
0 votes
1 answer
75 views

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; ...
Operator's user avatar
0 votes
0 answers
26 views

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 ...
Mez's user avatar
  • 61
0 votes
0 answers
42 views

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 ...
bassem abidli's user avatar
0 votes
0 answers
11 views

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....
victorvila's user avatar
0 votes
0 answers
51 views

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 ...
pythonuser43343's user avatar
0 votes
1 answer
162 views

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....
XExplo's user avatar
  • 3
1 vote
0 answers
63 views

Distance calculation when accelerometer and gyroscope work in Unity

I am testing accelerometer and gyroscope in unity. In my game, 3d balls from the center of the screen fly to the target behind the screen (the target is an empty gameobject with adjusted coordinates). ...
Operator's user avatar
0 votes
0 answers
44 views

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 ...
stanley's user avatar
  • 1,113
0 votes
1 answer
29 views

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 ...
Chris_xx's user avatar
0 votes
0 answers
18 views

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. ...
user3288977's user avatar
0 votes
0 answers
40 views

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 ...
ezra_vdj's user avatar
  • 133
0 votes
0 answers
27 views

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 ...
Tom's user avatar
  • 1
0 votes
0 answers
20 views

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 ...
erkn's user avatar
  • 1
0 votes
2 answers
64 views

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 "...
Antonio Vscm's user avatar
0 votes
0 answers
99 views

georeferencing a trajectory from inertial sensors (IMU)

There are data from tracking a moving object based on inertial measurement unit (IMU), using sensors like accelerometer, gyroscope, magnetometer. From these data (by sensor fusion) is generated a ...
Vill's user avatar
  • 1
0 votes
0 answers
48 views

get device's motion trajectory from CMDeviceMotion data

I want to get CMDeviceMotion data and plot the device's motion trajectory after data processing. (I referred to Mack Raymond's article on implementing sensor data for Android devices in Python) https:/...
iWu's user avatar
  • 1
0 votes
0 answers
29 views

Best approach for detecting periods of vibration with an accelerometer

I'm working on a camera scanning application, and I've noticed that there is a degree of vibration after movement (some axes are worse than others). I've attached an I2C accelerometer/gyroscope (MPU ...
flimsy's user avatar
  • 204
0 votes
0 answers
237 views

Google Pixel 6 Pro Gyroscope and Accelerometer issue

The Gyroscope and Accelerometer sensors are defective. As a result, features that require these sensors do not work such as Auto-rotate, Compass, Flip to shh, Flip camera for selfie and games that ...
Grecko's user avatar
  • 1
0 votes
0 answers
32 views

Keep the identifier for each row in a rolling window of functions R

I have managed to apply a rolling window of functions per column of my accelerometer data where each row is associated with a behaviour. However, the output doesn't include the behaviour associated. ...
mari davies's user avatar
1 vote
1 answer
35 views

Applying a function per individual behaviour event R

I have accelerometer data with each row labelled for the behaviour an animal is displaying per second, simple example: Time X_accel Behaviour 1 0.01 Standing 2 0.01 Standing 3 0.01 Standing 4 0....
mari davies's user avatar
0 votes
0 answers
15 views

Animating accelerometry and depth data in relation to time

Thanks in advance for your help. I'm new to Python so bare with me. I have accelerometry and dive depth data from several seals that I'm aiming to animate. Here's a sneak peak of what the data looks ...
DeathByCode's user avatar
-1 votes
2 answers
367 views

Integrating IMU accelerometer data to estimate position

I am trying to estimate position change using an MPU6050 IMU. I know that drift is a problem, but I am only trying to do this over short periods of less than a few seconds. I've adjusted for gravity ...
Paulius Velesko's user avatar
0 votes
0 answers
152 views

Acceleration/ gyroscope sensor data stopped working

i'm programming an app in Android Studio with flutter and need to access the acceleration data from the device. So far, i did that by using the package "sensors" and it worked nicely. But ...
icecase's user avatar
  • 33
0 votes
0 answers
25 views

Accelerometer Bubble Level Back to Center

I'm attempting to build a bubble level application but am having issues with the bubble coming back to center when phone is on a flat surface. I believe something needs to be added to the onPause ...
RUSKIED's user avatar
  • 39
1 vote
0 answers
171 views

Getting CHIP_ID from BMI_270 using SPI Interface from Arduino IDE

Fundamentally I'm trying to extract Accel and Gyro values from the sensor using SPI interface. However there are limited support for BMI270 available online, so I'm now reading the values using ...
Dian Basit's user avatar
0 votes
0 answers
33 views

Accelerometer Uncalibrated gives different values when also registering to Gyro Uncalibrated

I found out the weirdest thing. I'm dumping SensorEvent.values[2] to the console and when I'm just registered to the Uncalibrated Accelerometer this hovers / averages around 9.84 (slightly off on this ...
HerbertV's user avatar
  • 113
0 votes
1 answer
80 views

How to pass a variable sized array to TensorFlow Lite model

I am trying to find how I can pass a dynamic-sized array (not fixed size) into my TensorFlow. I am building an Android App to read Accelerometer values and predict an activity. I have built a ...
SyncMaster's user avatar
  • 9,744
0 votes
0 answers
27 views

How smartphone read accelerometer when togglw switch on in Flutter?

I make app to read accelerometer but I have difficult to read accelerometer sensor log. Anyway, I used toggle switch. The problem is when I turned on toggle switch, the accelerometer only read once ...
Rizki Oktavia's user avatar
0 votes
0 answers
20 views

unable to configure FF_MT_CFG register from MMA8452QR1 accelerometer

I am using MMA8452QR1 with STM32 and, for communication, the I2C protocol is used. I am trying to get the motion detection of accelerometer. But while configuring a register FF_MT_CFG (0x15) = 0xD8;, ...
pranal's user avatar
  • 1
1 vote
1 answer
203 views

Image displaying using Arduino- Processing connection and ADXL345 sensor

I am working on an artistic project that includes an ADXL345 sensor (accelerometer), Arduino Uno R3 Board, Arduino IDE 2.0.3 and Processing 4.1.2. I want Processing to display images randomly and ...
Livia Tice's user avatar
0 votes
1 answer
155 views

ADXL375Z Shock Threshold False Triggering

I am working on ADXL375 and interfacing it with Arduino UNO using I2C protocol. I get the values of X, Y, Z axis as mentioned in the datasheet, i.e., when placed horizontally I get x=0g, y=0g, z=1g(...
Diracx's user avatar
  • 71
0 votes
0 answers
14 views

How do I calculate the maximum sptio-temporal resolution of an IMU sensor?

I am trying to calculate the trajectory of an IMU sensor by integrating the acceleration twice, but I keep getting distorted data. I would like to know what is maximal resolution I can actually ...
Itay Pachelbel Jacob's user avatar
0 votes
0 answers
90 views

Android sensor logs accelerometer calibrated and gyroscope calibrated return constant values everytime

When I tried to log some values from Android sensor for calculation, testing on Xiaomi Mi A1, Galaxy S21 Ultra 5G, the results for accelerometer calibrated are always 0, 0, 0 even if i move the device,...
Duc Nguyen's user avatar
0 votes
1 answer
53 views

How do I stop accelerometer from detecting upward/downward motion when the phone is rotated between portrait-landscape modes

I have 2 booleans up and down for when I move the phone up and down. The default position of the phone is portrait. When I rotate the phone to landscape, even though I didn't move the phone downwards, ...
motty_here's user avatar

1
2 3 4 5
52