795 questions
0
votes
1
answer
119
views
"Yaw Drift Issue in STM32F103 Integration with MPU6050 and HMC5883L"
I integrated an STM32F103RT6TR with an MPU6050 and HMC5883L to calculate acceleration, gyroscope, pitch, roll, and yaw values. While everything else is working fine, the yaw value is drifting. Can ...
1
vote
0
answers
30
views
Yaw incrase slowly without moving the sensor
I try to use MPU9250 and MPU6050 ... The problem is just with Yaw, I don t understant why the value of yaw increase slowly even I don t move the sensor , I tryed to control with just Gyroscope and ...
0
votes
1
answer
233
views
Problems with BNO055 (Arduino)
I'm facing a problem that I've tried everything and it doesn't solve it. I just want to read the acceleration on the serial monitor and plotter for now, the code runs, works and is OK, I've already ...
-1
votes
1
answer
247
views
How to visualize data from a 6-axis gyroscope using a 3D model in WPF?
I have a PS4 game controller, and I can now read data from it using HID, including 6 axes as shown in the image below.
Three axes represent acceleration, and the other three represent angular rate.
...
1
vote
0
answers
481
views
Simulating Gyroscope with ARW, BI, and Spectral Density Using Physical IMU Data
I'm currently working on a state estimation project that relies on IMU data. While I have access to a physical IMU, I'd like to simulate gyroscope data with specific parameters, including Angle Random ...
0
votes
0
answers
347
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 ...
1
vote
0
answers
48
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 ...
1
vote
1
answer
62
views
Blocking the movement of the gyroscope along the Y axis (Unity)
I'm making a game where by tilting my smartphone I can rotate an object in the z-axis. I made sure that the rotation is correct at different angles of the smartphone, but the problem is that if you ...
0
votes
1
answer
378
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;
...
0
votes
1
answer
1k
views
How to add a gyroscope control binding to Input Actions panel in Unity's new Input System
I would like to add gyroscope/accelerometer control binding to the Input Actions panel in Unity's new input system.
On the Input Actions panel, I see we can bind all kinds of inputs from game ...
0
votes
1
answer
168
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 ...
1
vote
0
answers
653
views
Gyro controls in Unity (Android) - setting an initial offset OR achieving consistent results with rotationRateUnbiased
I want my game's control scheme to assume the position in which the phone is held at the start of the game as the default around which the gyroscope then rotates around. As far as I can tell, there ...
1
vote
1
answer
821
views
Detect the speed of the vehicle using MPU6050
i have been trying to get speed of the vehicle using MPU-6050 but couldn't find my way to do it so,
in the end i am stuck here
def stateCondition():
while True:
acc_x = read_raw_data(ACCEL_XOUT_H)
...
0
votes
1
answer
328
views
Arduino/Wokwi buzzer activates on digitalWrite(LOW) too
I am trying to make a buzzer play when the gyroscope attached to the Arduino passes a certain rotation threshold on the x axis. The problem is: it also activates when I simulate to go back under the ...
0
votes
0
answers
341
views
micro:bit calculate yaw on maqueen
Basically, I need use micro:bit accelerometer to move straight forward avoiding curved movements.
So far I have calculated roll and pitch using the code below
X = Sensors.acceleration(Sensors.X) / ...
0
votes
1
answer
88
views
how to plot forward/backward tilt on y axis?
I have a line (UIView with width = screen width and height = 2), I need to move this line up and down the screen with forward tilt and backward tilt. I know I need to use Gyroscope, how can I achieve ...
0
votes
1
answer
112
views
How to detect orientation with accelerometer while vehicle has variable acceleration?
According to my research, I saw that, in order to detect the angular orientation AHRS uses gyro and accelerometer. Only gyro does not work well because of integration drift. Only accelerometer also ...
0
votes
1
answer
814
views
Could not find a valid MPU6050 sensor
I am using the below code with arduino-uno, but often getting "Could not find a valid MPU6050 sensor
#include <Wire.h>
#include <MPU6050.h>
MPU6050 mpu;
void setup() {
Serial....
-2
votes
1
answer
888
views
Reading SPI gyro values from IIM-42652
Has anyone on here ever used a IIM-42652 before? I am trying to communicate to it but have trouble reading gyroscope values.
I have verified all the SPI signals on both MISO and MOSI lines, alongside ...
0
votes
0
answers
639
views
Improve compass heading calculations using 9DoF IMU
I've been implementing a compass using raw data from a ICM-20948 IMU. It provides me with Accelerometer, Gyro, and Magnetometer data, but I've been using only Accelerometer and Magnetometer data to ...
1
vote
0
answers
43
views
Android Accelerometer event interpretation
I'm trying to figure out in what direction (roughly) a phone has moved over a period of a couple of seconds. Is it possible ?
I'm using the gyroscope to track what direction the phone is facing. This ...
0
votes
1
answer
153
views
how to build gyroscope above the current phone direction
public class GyroControl : MonoBehaviour
{
private bool gyroEnabled;
private Gyroscope gyro;
private GameObject cameraContainer;
private Quaternion rot;
private void Start()
{
...
0
votes
0
answers
505
views
Trying to get acceleration using Accelerometer And/Or Gyroscope
I am creating a project on react-native (I'm a newbie)
I'm trying to understand the data I'm getting from this code
Expo documentation (code available)
Main goal to get the acceleration and direction ...
-1
votes
2
answers
661
views
Exactly which library are we supposed to use if we want Roll, Pitch and Yaw data from the ISM330DLC acc and gyro sensor?
Currently, I'm working on a project where my job is to take Accelerometer, Gyroscope data and convert it into Roll, Pitch and Yaw.
So to achieve this we started working on the ISM330DLC sensor. To get ...
1
vote
1
answer
899
views
How to generically track relative position, velocity and orientation from IMUs?
For a light painting project (could be s.th. else, too) I'd like to calculate relative position, orientation and velocity from 6-axis IMUs (I have a MPU6886 connected to an ESP32, but I hope, that ...