Questions tagged [gyroscope]

Typically refers to a device which measures orientation.

Filter by
Sorted by
Tagged with
1 vote
0 answers
33 views

MPU9250 and MPU6050 not working on SAMD21 board

I am trying to use an MPU6050 with my SAMD21 based board (actually LightAPRS W-2), but it doesn't work. The sensor definitely works, as I can get data from another 3.3v logic-level board, and the ...
Charlie Nicholson's user avatar
2 votes
1 answer
86 views

GY-521 output and degrees

I am trying to make an observatory through 2 GY-521 gyroscopes and using the outputs I have to make a motor move, but I have a problem. When I move one of the two gyroscopes the outputs change, but ...
Liam Ferretti's user avatar
1 vote
2 answers
642 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
1 answer
136 views

Quaternion values from Arduino 9-axis motion shield seem very wrong

I am currently usinga BNO055 sensor fitted on the Arduino Nine-axis motion shield to measure ocean wave heights and periods. To do this, I'd like to use the quaternions provided, however I have a ...
Kajitrim's user avatar
0 votes
1 answer
250 views

How often does a mpu6050 gyro sonsor need calibration?

I want to use it in my real car for daily use to measure yaw angle when needed. Is is ok to only calibrate it once at first then use it every day when driving without any problem? if not, how often ...
sadegh yeganeh zadeh's user avatar
1 vote
2 answers
390 views

Stabilize data from four gyros/accelerometer [closed]

I am currently working on a university project. My aim is to get a rough estimate of the posture of a person's back. For this I have built a system that collects the data from 4 MPU6050 at a central ...
Trojan's user avatar
  • 123
2 votes
0 answers
189 views

Extract Static Acceleration from MPU6050 using Formula

I am trying to implement a research paper for my project and there is a formula which I am failing to interpret: According to the research paper, we extract the static acceleration component for each ...
Noman Aziz's user avatar
3 votes
1 answer
649 views

Can I use an accelerometer to measure the velocity of a car in a curve?

I am making an application that is used to measure the velocity, it has an accelerometer that measures the component acceleration in the XYZ-axis. When the car is moving just straight the measurement ...
Ghedim's user avatar
  • 51
1 vote
0 answers
239 views

Trying to use a gyro sensor and having issues

My setup is Arduino Mega. I have a gyro sensor that I'm trying to use to measure the acceleration or G force in X axis (forward movement). So far I'm trying to figure a way to use the value of Acc or ...
Andy Morgen's user avatar
2 votes
1 answer
945 views

Wire.endTransmission(false) hanging the program after running once when using MPU6050

For this project, I was using an Elegoo Car V3 and I was trying to add a gyroscope onto it. When I run the code for the car, my loop code iterates once and it is always able to read the sensor data. ...
Akash Dubey'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
35 views

need to make my partners pill box turnover sensitive

ive done some arduino stuff back in uni like 7 years ago; and reserached premade items-ive looked online at many pill organisers and the best and cheapest one is $149 and isn't shipping to the UK rite ...
tori's user avatar
  • 1
1 vote
0 answers
41 views

connect gy512 is not visible by i2c bus

I am a newbie. Please help to make gy512 visible on i2c interface. i did sda - a4 scl - a5 vcc - 5v gnd - gnd I have used i2c sticker scatch and use PC monitor.
Alexander Ushakov's user avatar
1 vote
0 answers
173 views

Better version of MPU6050

I need really good gyroscope for my quadcopter and now I have MPU6050. I don't like how it works, after some time of use, data is absolutely wrong. So I need good gyroscope, could you pls advice the ...
Alexander's user avatar
1 vote
1 answer
232 views

Help reading orientation from gyroscope

I recently bought a L3GD20H Triple-Axis Gyro to use it to measure orientation, but found out it instead reports the rate of rotation in degrees per second. I was told this means that to detect the ...
Max's user avatar
  • 19
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
56 views

Rocket deploy system

I found a code from Astronomica Messier that allows to activate a servo from a Gyroscope MPU 6050 change in direction. I followed the wiring and uploading correctly. The thing is that the MPU is ...
Luis's user avatar
  • 11
0 votes
2 answers
247 views

SparkFun BasicAHRS_I2C giving unstable readings

SparkFun BasicAHRS_I2C giving unstable readings. I am using the SparkFun Arduino Sketch from here. It is giving me these results: X-acceleration: 91.43 mg Y-acceleration: 249.51 mg Z-acceleration: ...
Jordan Savage's user avatar
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
0 votes
2 answers
413 views

LSM9DS1 breakout - How to increase speed

With regards to the Adafruit LSM9DS1 breakout: enter link description here And using the Library: enter link description here I am trying to increase the sample rate, or speed of this chip. I am ...
MattG's user avatar
  • 117
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
2 answers
1k views

Using MPU-6050 without I2C

My target is to use multiple MPU-6050 at once, I searched on the internet and found that they can be hooked up really simply. Just connect in parallel and use I2C-Scanner. Then get those addresses and ...
Maifee Ul Asad's user avatar
1 vote
0 answers
182 views

Stop getting values from arduino after some time

I have a strange problem, I have Arduino UNO/MEGA and I need to get Gyro sensors's data and I want to see the data in the serial monitor. Seems like a simple task, I wrote a simple C program which ...
uvan's user avatar
  • 11
2 votes
1 answer
4k views

Remove gravity from accelerometer of MPU-6050

I am currently working with MPU-6050. Now I want to minus gravity from my accelerometer's value as we minus the offset. Here is the code: #include <Wire.h> #include <MPU6050.h> //read as ...
Maifee Ul Asad's user avatar
0 votes
1 answer
757 views

Changing Baud Rate not working

I have copied this code from Github : #include <Wire.h> #include <MPU6050.h> MPU6050 mpu; // Timers unsigned long timer = 0; float timeStep = 0.01; // Pitch, Roll and Yaw values ...
Maifee Ul Asad's user avatar
0 votes
2 answers
510 views

MPU-6050 with Arduino - postmortem

I'm working with MPU-6050 with Arduino Uno. I copied the code below from Arduino Playground - MPU6050. Code : // MPU-6050 Short Example Sketch // By Arduino User JohnChi // August 17, 2014 ...
Maifee Ul Asad's user avatar
0 votes
1 answer
1k views

How to read the raw data from GY-85 module?

This module has 3 sensors. Gyroscope, Accelerometer and Magnetometer. I think I'm reading the raw data in the wrong way. For example, for the magnetometer HMC5883L, I'm using this code which I ...
R1S8K's user avatar
  • 283
2 votes
1 answer
585 views

Arduino Mega and gyroscope erroneous values

I have Arduino mega2560 and MPU6050. I connected to Vcc pin of the gyro to +5V on the mega, the SDA to SDA pin, SDL to SDL pin, AD0 and GND to 2 GND pins. I used this code: #include<Wire.h> ...
alim1990's user avatar
  • 125
3 votes
1 answer
1k views

Why the MPU6050 gyroscope read write register value is 0x08 for a full scale of 500 degrees per second?

I am trying to connect a gyroscope MPU6050 to arduino ATmega2560 and read its raw values from its 6DOF (gyro and acc). I found the following code: //Activate the MPU-6050 Wire.beginTransmission(...
am909090's user avatar
0 votes
1 answer
45 views

Shutdown the LED of my GY-85 sensor [closed]

I would like to shutdown the LED of my GY-85 (gyroscope) component. Is it possible?
user avatar
1 vote
0 answers
279 views

Gyro not zero when returning to original position after random rotations

I am currently trying to make a self balancing robot. Making good progress but stumbled across an issue. My gyroscope readings do not return to zero if I return in to its original position after ...
potango's user avatar
  • 11
1 vote
1 answer
217 views

Problem connecting Android app to Arduino [closed]

Sorry for doing this, I really don't know where to post beacuse this is both Android Studio code and Arduino code so I've posted to both sites. I want to create a project of using controlling pan-...
Wyeth Gamba's user avatar
1 vote
1 answer
56 views

How to get location of the hand indoors

I made a glove that tracks the positions of the fingers, but I don't know how to get the location of the hand relative to the person using them. Any suggestions? It should be quite accurate but I ...
T3neppa's user avatar
  • 11
1 vote
1 answer
680 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
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
2 votes
0 answers
782 views

ATtiny85 and MPU-6050 Gyroscope

I'm doing a project that involves sending MPU-6050 gyroscope data via serial communication to the laptop. Is ATtiny85 micro-controller suitable for this job? Is it powerful enough to do it? I was ...
idk's user avatar
  • 21
1 vote
2 answers
875 views

Should I use an accelerometer or gyroscope in my project?

A friend and I are working on a sign language translation glove. Our glove currently successfully uses 5 flex sensors to determine the bend of each finger and can accurately detect letters in the ...
steeb's user avatar
  • 11
0 votes
1 answer
1k views

HMC5883L not working in continuous mode!

I'm just starting with the HMC5883L, I'm writing my code with C and also my own I2C library. I noticed that the values on the Arduino IDE's serial monitor are constant. Then I developed a function ...
R1S8K's user avatar
  • 283
0 votes
1 answer
287 views

Reading HMC5883L hex values in 2's compliment C code

I want to develop my C code for HMC5883L. I have 2 questions for my current code development. My first question is: But what I found in the datasheet is that the values are in the 2's compliment, so ...
R1S8K's user avatar
  • 283
2 votes
1 answer
545 views

How can I identify, debug or fix a faulty IMU?

I have an LSM9DS1 breakout board by Sparkfun, and am communicating with it using a Mega 2560 over I2C. The board is given 3.3 V power as defined in the data sheet, though there seems to be confusion ...
J Collins's user avatar
  • 295
1 vote
1 answer
1k views

Accessing two MPU-9250 DMP

I want to use both IMU at the same time using the Sparkfun Library on a SAMD21 mini breakout board. Can anyone help? The begin function is : inv_error_t MPU9250_DMP::begin(void) { inv_error_t ...
samibe's user avatar
  • 11
6 votes
2 answers
12k views

What does this notation stands for? Wire.read() <<8 | Wire.read()

I'm using the Arduino's site test code for getting raw values from a MPU-6050 accelerometer + gyro. In the loop, there are this lines for getting the next data from its registers: Wire.requestFrom(...
Julio's user avatar
  • 113
1 vote
1 answer
2k views

MPU6050 Sending Bad values for Angular Velocity

The mpu gives me perfectly fine values for the yaw, pitch, and roll position of the chip, but when I use mpu.getRotation(&gx, &gy, &gz) to obtain the current angular velocity of the chip, ...
Ember's user avatar
  • 83
0 votes
2 answers
144 views

Arduino rc plane logger [closed]

Well, I want to make an rc plane with an arduino that logs to an sd card A) Video B) Accelerometer data C) Tempature D) Humitity E) Atmospheric pressure F) Gyroscope Data What arduino/parts should I ...
Ubuntu User's user avatar
0 votes
2 answers
1k views

ADXL345 accelerometer doesn't work

I just got the ADXL345 accelerometer module. I tried everything I could find online but I can't get it work. Here's how I connect the pins to the arduino uno: ADXL345 -> ARDUINO VCC ...
DimChtz's user avatar
  • 121
1 vote
1 answer
129 views

It seems like the math of arduino is off

[SOLVED] By changing the offset for the incoming data into int16_t type there won't be any rounding errors and the values I'm getting are all back to zero in the sensor its base position This is my ...
Mathieu Brouwers's user avatar
4 votes
2 answers
13k views

MPU-6050 - angle drift

Setup Windows 7 Entreprise MPU-6050 : GY-521 breakout Arduino Nano (chinese) with CH340 FTDI driver Arduino IDE 1.6.12 Library for the gyro Problem When I run my code, the MPU will detect the ...
Dat Ha's user avatar
  • 2,913
2 votes
1 answer
2k views

Help with MPU-6050

I have bought MPU-6050 a month ago for a project, I have got a hang I2C protocol and register maps of MPU. I have learnt how to get raw values of accelerometer and gyroscope. What I needed for my ...
Teja Allani's user avatar
0 votes
2 answers
383 views

Main Idea of Gyro

I have a L3G4200D (GY-50 model) gyroscope. I have been trying to learn how a gyro sensor works. The circuit diagram is attached. I want to ask some questions; a) According to the datasheet of ...
Unforgiven's user avatar
0 votes
1 answer
1k views

Is there a way to combine a 3-axis accelerometer/gyroscope into one value?

I have a three-axis accelerometer that reads me its x, y, and z components. This results in three graphs. Is there a way to "combine" these components into one reading, hence, one graph? Same ...
noblerare's user avatar
  • 135