Questions tagged [imu]

An inertial measurement unit (IMU) is an electronic device that measures and reports a body's specific force, angular rate, and sometimes the orientation of the body, using a combination of accelerometers, gyroscopes, and sometimes magnetometers.

An inertial measurement unit (IMU) is an electronic device that measures and reports a body's specific force, angular rate, and sometimes the orientation of the body, using a combination of accelerometers, gyroscopes, and sometimes magnetometers.

53 questions
6
votes
1 answer

A proper way to get the roll, pitch and yaw values

TL, DR : What is the method (in terms of sensors and algorithm) to get the roll, pitch angles of an aircraft at any instant? I am planning to build a hobby aircraft. I am so confused about which kind of sensors should I use and how to use them in…
muyustan
  • 175
  • 1
  • 7
3
votes
1 answer

SPI synchronization with Arduino DUE and ADIS16364 IMU

I'm trying to use an Arduino Due to interface with an ADIS16364 IMU from Analog Devices (product info here) via SPI. There are two modes for retrieving the measurements from this particular IMU (six 16 bit values, 3 acc, 3 gyros): The first mode…
3
votes
1 answer

Getting Accurate Velocity Readings From IMU

Hi I am currently using a BNO055 for a design project. This sensor outputs a linear acceleration vector corresponding to three (xyz) directions. I am trying to "integrate" the acceleration to get a speed the object it is mounted to is traveling. I…
2
votes
1 answer

Why am I getting wrong compass heading using magnetometer readings?

I have been trying to calculate the compass heading using the magnetometer in an MPU9250 sensor. But the result is not making sense to me. I am completely new in this and do not have much understanding in how magnetometers work and just trying to…
Sayantan Das
  • 123
  • 6
2
votes
0 answers

Bug in code of Self-Balancing Bot

1)The values drifts to the extreme every time I run this , I guess this is due to my mistake in the calculation of angles or in the filter that I have applied which I have been trying to but can't find it. 2)I have tried to calibrate MPU many times…
Aditya Raj
  • 43
  • 4
2
votes
1 answer

Obtaining angular velocity from quaternion data (BNO055)

I'm able to get quaternion data from the BNO055 sensor, and would like to convert these to angular velocity for my project. I know you can pull the gyroscope directly for the data, but from what I understand using quaternions and converting those is…
Zhelyazko Grudov
  • 367
  • 2
  • 15
2
votes
1 answer

Changing address of MPU 9250 connected to ESP32

Can I change the I2C address of a device (MPU9250) connected to ESP 32 using int pin. I understand that in arduino board if we connect the int pin to A0 the default I2C address of MPU 9250 changes from 0x68 to 0x69. Is something similar possible…
Ajay Raj
  • 63
  • 6
2
votes
2 answers

Most precise way to measure linear distance travelled by a wheel

Suppose a bot with wheels is traveling in a a straight line, and we want to measure this linear distance traversed by it as accurately as possible. One of the ways is to use an optical encoder to measure the angle of rotation of the wheels and get…
2
votes
2 answers

Finding Relatively Accurate Velocity Using an IMU

I am currently working on a project where I am trying to accurately find velocity in a handheld device using an IMU for about 30 seconds. I have been having major issues doing this because of large amounts of drift from poor calculations due to…
2
votes
3 answers

How to connect MPU9250 with NodeMCU using SPI or I2C Slave?

I want to connect 3 MPU9250 sensors, but since there is just one I2C bus, so there are another 2 sensors I want to connect through SPI. Library used - https://github.com/bolderflight/MPU9250/blob/master/examples/Basic_SPI/Basic_SPI.ino There is an…
suu
  • 85
  • 1
  • 2
  • 9
2
votes
1 answer

MPU6500 via SPI

I'm trying to communicate with an MPU6500 sensor via SPI as I need the fastest possible update rate. I have trouble finding an easy to understand sample code, or perhaps a lightweight library how to configure and initialize the sensor and read gyro…
Z4-
  • 121
  • 1
  • 4
1
vote
0 answers

Not getting continuous motion data with Arduino Nano 33 BLE Sense Rev2 on Google's Tiny motion trainer

I'm using an Arduino Nano 33 BLE Sense Rev2 with the Tiny Motion Trainer by Google to train for certain movements. The original code was designed for the Arduino Nano 33 BLE Sense, which uses the LSM9DS1 IMU sensor. I have modified the code to use…
1
vote
0 answers

Sampling rate for Adafruit LSM6DSOX and Arduino MKR WIFI 1010

Please let me know if this post has the wrong tags, I will make sure to change it. My goal is to get the highest sampling rate possible from the Adafruit LSM6DSOX (6667Hz) using the Arduino MKR WIFI 1010 and I2C communication. This is the library I…
1
vote
2 answers

Gyro reading of MPU6050 drifts too much on fast changes only

I am trying to write a simple sketch for the MPU6050. The problem is that the sensor is pretty much solid when stationary or changing the angle steadily at slow to mid angular velocities but if I try to change the angle too fast there's a huge drift…
1
vote
2 answers

Using Software Serial on Arduino Mega

So Im using this sensor: https://wiki.dfrobot.com/Serial_6_Axis_Accelerometer_SKU_SEN0386 with this library https://github.com/DFRobotdl/DFRobot_WT61PC Im using 2 sensors but got poor frequency on Arduino Uno and decicded to switch to Mega since it…
Aivion2000
  • 13
  • 1
  • 5
1
2 3 4