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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
151 views

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 ...
Sayantan Das's user avatar
1 vote
2 answers
639 views

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 ...
Mahmoud Salah's user avatar
1 vote
2 answers
1k views

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 ...
Aivion2000's user avatar
-2 votes
1 answer
657 views

''Wire1' was not declared in this scope' in I2C_MPU6886 library

I recently purchased a 6-axis IMU MCP6886 module by M5Stack. Product link: https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/IMU_Unit. The example code provided by the manufacturer is ...
aninini's user avatar
-1 votes
1 answer
81 views

Getting more Hz while working with 3 serial ports (IMU sensors)

im doing a university project where we use 2 IMU sensors and a SD card reader to save the data from sensors. As you will probably see from the code, we specify the sensor port we listen to, save data ...
Aivion2000's user avatar
2 votes
0 answers
60 views

Bug in code of Self-Balancing Bot [closed]

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 ...
Aditya Raj's user avatar
3 votes
1 answer
180 views

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 ...
Guillermo Benito's user avatar
1 vote
0 answers
31 views

How to connect multiple MPU-9250 IMU sensors to a single Arduino Uno? [duplicate]

The datasheet says the I2C bus limits itself to only two MPU-9250 sensors. How can I control multiple (>2) MPU-9250 through a single Arduino Uno? Is it possible to add another bus? Please, help.
Juan's user avatar
  • 11
0 votes
1 answer
81 views

Best way to obtain angular velocity from a 9 DoF sensor

I have been using a BNO055 sensor (9° dof IMU) for a project which will use angular velocity to the mouse cursor on screen. So far, I have gotten quaternion output from the sensor and been able to ...
Zhelyazko Grudov's user avatar
2 votes
1 answer
255 views

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 ...
Zhelyazko Grudov's user avatar
1 vote
1 answer
79 views

What pins to use on a Teensy to get data from multiple peripherals?

I'm using a Teensy to keep records on the location, speed, altitude, and direction of a weather balloon I'm hoping to launch. I have an Adafruit LSM9DS1 and a Ublox NEO-M8N with compass (HMC5833L) so ...
chiya's user avatar
  • 11
2 votes
1 answer
302 views

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 ...
Ajay Raj's user avatar
2 votes
2 answers
1k views

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 ...
karnyrocks's user avatar
2 votes
2 answers
3k views

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 ...
Jonathan Seffinga's user avatar
3 votes
1 answer
395 views

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 ...
Jonathan Seffinga's user avatar
-1 votes
2 answers
2k views

Arduino Nano 33 IoT LSM6DS3: get gyro angle in degrees

I have an Arduino Nano 33 IoT and I want to get the angle of it using the built-in gyro but I can't seem to find any example code that does this. The default gyro and accelerometer example code doesn'...
DragonflyRobotics's user avatar
0 votes
1 answer
221 views

IMU (MPU9250) and Ticker on ESP32

I want to read the data from an IMU (MPU9250) periodically. To do that I use a ticker as shown in the following code: #include <Ticker.h> #include "MPU9250.h" constexpr int ...
R. Ho's user avatar
  • 9
1 vote
0 answers
199 views

Understanding the pin diagram for MPU6050 IMU

I was reading this tutorial about the MPU6050 IMU and I was unable to understand why the pin configurations vary so much when compared to this schematic for EasyEDA. The tutorial has this pin ...
idunno's user avatar
  • 67
1 vote
1 answer
64 views

Setup/Debug affordable 9DOF IMU

I bought a 9 DOF IMU from AliExpress (pictures below), asking because this seems to be somewhat of a common issue (and I'm a bleeding noob). I tried setting up this board using example codes from ...
user2305193's user avatar
1 vote
1 answer
221 views

MPU6050 Problem with NodeMCU

I am using MPU6050 as a part of IMU of my drone, and I wrote this program for Arduino Nano to fetch the orientation of the MPU6050 module in 3D space. And that works perfectly fine, but when I ...
prikarsartam's user avatar
0 votes
0 answers
282 views

SPI communications with an IMU

I am pairing an Arduino UNO with a Yost Labs 3-Space Sensor Nano, the user manual for said sensor can be found here: 1. This is my code, pretty straight forward (although this is my first time working ...
hat_tr1ck's user avatar
0 votes
1 answer
273 views

Relative position using Accelerometer

I have a simple scenario please: Two Arduino Nano 33 IoT devices started moving randomly from the same exact origin(Point = [X0, Y0, Z0]); Can I use the coordinates queried from each device ...
Mike's user avatar
  • 113
0 votes
1 answer
65 views

Is it possible to preform VIO from two cameras/IMUs on a dual-core ESP32?

Like the title says, I want to take in the synchronised data from two NXP breakout boards and two Ueye 1220LE cameras, and use VIO to fuse their data and get positions for both setups. A lot of people ...
TryingMyBest's user avatar
0 votes
1 answer
486 views

MPU-9250 compass always returns to zero

I am trying to build a 9-DOF IMU using the MPU-9250 chip which contains a gyro, accelerometer and compass. I have successfully realized 6-DOF sensor fusion using the DMP chip and Sparkfun's library, ...
Twometer's user avatar
  • 123
1 vote
0 answers
225 views

Saving Power :: Reducing Power Consumption

For Arduino Nano 33 IoT, I want to turn off everything except Bluetooth and Wireless since I don't use them. My question please: Can I switch off / deactivate the IMU sensors completely? If yes, How ...
Mike's user avatar
  • 113
0 votes
1 answer
173 views

How can I declare custom pins when using with ESP8266 in MPU9250 library

I want to declare SCL and SCK pins like Wire.begin(sda_pin, scl_pin); to use with ESP8266 to integrate a MPU 9250/6500 sensor. I can't figure out a way to declare that in this code exaample provided ...
Isara De Silva's user avatar
1 vote
0 answers
80 views

10 DOF gyro and accelerometer to x,y,z displacement

I have a 10 DOF sensor with wire outputs labeled "VIN", "GND", "SCL", and "SDA". I would like to wire these into my arduino and ultimately obtain x, y, and z displacement. This might sound like a ...
Nick Knapp's user avatar
1 vote
0 answers
130 views

MKR 1000 not found in ports when MKR IMU Shield is connected

I am trying to connect my MKR IMU Shield to my MKR1000 by placing the IMU shield in the MKR1000. When I do this, however, the Arduino IDE and Simulink are unable to find the port that my Arduino is ...
tennis25's user avatar
0 votes
1 answer
405 views

Is there a library for non-SAMD Arduinos to use the DMP on MPU9250

I would like to use the DMP of the MPU9250 with my BTLE Feather board but the docu of the official library says that only SAMP-Processors are supported. Is the a different library I can use?
FooTheBar's user avatar
  • 182
-1 votes
1 answer
87 views

Trouble in sensor data reading sequence

I am reading from two MPU6050 sensors using Arduino Uno but it give trouble in squence. The code is perfect and also sensors reading is done. See image of serial monitor. You can see the above ...
Yawar's user avatar
  • 1
0 votes
1 answer
282 views

Remote Controlled Self-Balancing Robot - how to mix control input with IMU input?

I'm building a two-wheeled, self-balancing, remote-controlled robot. I'm familiar enough with the IMU and PID to get it working to just stand up but I need to drive it via remote control. I've got no ...
circuitBurn's user avatar
-1 votes
1 answer
131 views

How to power and switch on / off multiple boards at the same time?

I have many nodes. Each node consists of an MPU9250 and ESP32. Each node functions independently. They don't interact with each other. How can I power all of them at the same time, and switch them ...
Kaizer Sozay's user avatar
0 votes
1 answer
441 views

GY91 IMU module, Interrupt?

Are there interrupt Pin in the GY91 Module? If not, are there good alternative for periodic sensor reading? (apart from mcu schedule/external timer)
somebody4's user avatar
  • 103
6 votes
1 answer
3k views

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 ...
muyustan's user avatar
  • 175
1 vote
0 answers
659 views

using two mpu6050 to get more accurate and precise angles

i have been using this gyro for a while, now i am aware of all measures taken, to improve the outcome of this board. my question is: would using two at the same time improve the results? if yes how ...
Allaw Hussein's user avatar
0 votes
1 answer
655 views

Possible to connect 3 MPU9250 to Node MCU without multiplixer?

Is the idea of connecting AD0 pins of MPU9250 is still valid like the 2nd answer of this question? - How to change i2c address for mpu9250? I have connected 2 sensor as test. SCL & SDA of both ...
suu's user avatar
  • 85
2 votes
3 answers
7k views

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/...
suu's user avatar
  • 85
1 vote
0 answers
111 views

How to connect 3 MPU9250 to Node Mcu together?

I don't know how to connect 3 MPU9250 together on Node Mcu. There is not much information available. I am using bolder flight library for imu sensor - https://github.com/bolderflight/MPU9250 Can ...
suu's user avatar
  • 85
1 vote
1 answer
386 views

Not able to convert String to Integer when receiving data from pubnub?

I did managed to upload mpu9250 sensor data on PubNub and nodeMcu but not able to use the received data to control servo Look at the Port reading and see that servo angle is still showing '0' Code:-...
Sultan Morbiwala's user avatar
0 votes
1 answer
1k views

Not able to find right library for MPU9250

I am using an Arduino Uno and learning to use the motion sensor. Currently I was not able to find the library which looks simple and would like to get your suggestion. I found this https://github.com/...
Sultan Morbiwala's user avatar
0 votes
3 answers
1k views

Determining direction from IMU accelerometer data

I am learning how to integrate sensors on arduinos and read their data. My ultimate purpose is to place the IMU on a robot and use it in determining the robots location in an environment. Using the ...
sisko's user avatar
  • 109
1 vote
0 answers
2k views

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 ...
Z4-'s user avatar
  • 111
1 vote
1 answer
679 views

Does the position in which you mount an IMU matter?

Forgive me, I'm sure this is a total noob question, but I have never seen it actually addressed in any example or demo. When using something like a MinIMU-9 board (https://www.pololu.com/product/...
ThatAintWorking's user avatar
1 vote
1 answer
216 views

Circuit works on breadboard but has power problems on protoboard

I'm building a simple circuit that takes data from an IMU (using MPU6050), sends it to a microprocessor (Arduino Pro Mini 5V) to apply data smoothing and averaging, and then this data is sent using an ...
auphynne's user avatar
  • 125
0 votes
1 answer
8k views

'import' does not name type ERROR

I am working with a group of people on an arduino controlled BB8 robot. We are using an IMU unit (accelerometer+gyroscope). I found a processing example for the IMU unit we are using. The code is ...
Veronika's user avatar
0 votes
1 answer
329 views

MPU9250+arduino pro micro strange behaviour after reset

I have an arduino pro micro + mpu9250. For test sketch I'm using https://github.com/sparkfun/SparkFun_MPU-9250-DMP_Arduino_Library It works as intended after the first sketch upload. After that if I ...
MonZon's user avatar
  • 11
0 votes
1 answer
818 views

Store values in array

I'm trying to implement the "BNO055 9 Axes Motion Shield". There is an existing Arduino sketch GitHub that reads out the Euler data, I changed it a bit to print out quaternion data. #include "...
mascail's user avatar
1 vote
1 answer
4k views

Getting stable measurements with the BNO055 IMU

I bought the BNO055 "smart" IMU from Adafruit, thinking it would be a simple way to get orientation data for a small mobile robot project, but I've found the thing to be very difficult to use and ...
Cerin's user avatar
  • 1,598
0 votes
1 answer
25 views

rev id and read_rev_id() function

What is a rev id? I have looked everywhere for a proper definition but I haven't found anything. I am trying to understand the code below. I don't understand why this read_rev_id function is necessary ...
Катя's user avatar