Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gyroscope]

Typically refers to a device which measures orientation.

0
votes
1answer
34 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 ...
2
votes
1answer
83 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> ...
2
votes
1answer
49 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(...
0
votes
1answer
30 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?
0
votes
0answers
54 views

How to read and change value of registers of MPU6050 to change the default scale range of gyroscope and accelerometer?

I want to read the value of I2C register of MPU6050, and other registers like the scale range selected of a gyro. The I2C address according to MPU6050 datasheet is 0x68. I wrote this code: #include ...
0
votes
0answers
16 views

Arduino Mega and MPU6050: Reducing the code [duplicate]

I am trying to work Arduino Mega AT2560mega and gyroscope MPU6050. There is a premade code on Arduino forums, where all registers of MPU605 are defined and the code is about 800 lines. I can't find ...
0
votes
0answers
70 views

Reading raw values from MPU6050 using Arduino Mega

I am trying to connect Arduino Mega with a gyroscope/accelerometer with 6DOF, using MPU6050 micro ship. While searhing online, I found lots of codes with more than 200 lines, to just read raw values ...
0
votes
0answers
125 views

How to correct MPU6050 gyro GY-521 module 90 degree deviation

When I use the GY-521 MPU-6050 module, I get (0) ok values on the pitch axis and it goes to positive or negative values when I move it up or down. However, on the roll axis, I get (18000) max. value ...
0
votes
0answers
36 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 ...
0
votes
1answer
76 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-...
1
vote
1answer
42 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 ...
0
votes
0answers
161 views

Read LSM6DS33 3D Gyro via SPI

I'm trying to read 3 axes from this model gyro: Pololu LSM6DS33 3D Gyro via SPI with Arduino Uno. I did wiring as: SDA -> pin11 SCL -> pin13 SDO -> pin12 CS -> GND From documentation I found ...
1
vote
1answer
164 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/...
-1
votes
1answer
1k 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 ...
1
vote
0answers
282 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 ...
0
votes
2answers
501 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 ...
0
votes
0answers
253 views

Merging 2 sensors' code into one sketch

I have an IMU device (gyroscope, accelerometer, and magnetometer) and an ultrasonic range finder that I need to connect to an Arduino Uno. I can get both sensors to run individually, but I'm not sure ...
0
votes
1answer
579 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 ...
0
votes
1answer
114 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 ...
1
vote
1answer
197 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 ...
0
votes
0answers
408 views

How to change MPU 6050 Interrupt Pin number?

I'm working with MPU6050 and I want to use a different Interrupt pin(Pin18) in Arduino mega2560. How to use attachInterrupt() here? #include<Wire.h> const int MPU_addr=0x68; int16_t AcX,AcY,...
1
vote
1answer
759 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 ...
3
votes
2answers
3k 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(...
1
vote
1answer
719 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, ...
-1
votes
2answers
97 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 ...
-1
votes
1answer
307 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 ...
1
vote
1answer
107 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 ...
3
votes
2answers
4k 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 ...
1
vote
1answer
968 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 ...
0
votes
2answers
142 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 ...
1
vote
0answers
321 views

How to interpret accel/gryo values

I'm trying to measure acceleration and rotation using an MPU-6050 as explained in this tutorial. I'm able to read values, and they change proportional to how I might move the sensor. However, the raw ...
0
votes
1answer
444 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 ...
0
votes
2answers
3k views

exchanging data between two hc05 bluetooth modules

Iam working with gyroscope and Iam trying to send its values from one bluetooth(HC-05) module to another bluetooth module but the data exchange is not happening and I have used 2 arduino boards to do ...
0
votes
2answers
245 views

Using 6 axis accelerometers

I've been messing around with accelerometers for Arduino for a school project. I bought the SODIAL GY-521 accelerometer + gyroscope module for Arduino. It uses de Invensense MPU 6050. I managed to ...
2
votes
3answers
528 views

Smallest digital 3-axis gyroscope pcb for arduino?

What is the smallest size digital 3-axis gyroscope pcb compatible with an arduino that I can buy or maybe make if its simple enough. I need one really really tiny probably around 0.8x0.1x0.5 (doesn't ...
1
vote
0answers
3k views

Two MPU 9250 connected to one arduino (Code of the MPU6050 edited for MPU9250)

I have done a lot of tries to make my two IMU work with my arduino. I'm also done with many research about it and I found this code: // I2C device class (I2Cdev) demonstration Arduino sketch for ...
3
votes
4answers
3k views

How to use Multiple MPU9250 to Arduino Lilypad [duplicate]

Is it possible to connect more than one or to be specific 5 MPU9250 into 1 Arduino lilypad? How will I set the addresses, and where should I put the pins for SDA and SCL? I hope someone out there ...
0
votes
1answer
271 views

SDA and SCL problem with MEMS

I have a simple question to ask you about SDA and SCL pins. I have a gyro and I use these 2 pins to make it work; how can I use an accelerometer combined to a Gyro if these 2 pins are used? I should ...
1
vote
1answer
416 views

What's the difference between pow and sqrt in this code?

I'm not the best at Arduino so I'm sorry for my "noobiness". I'm extending some code that I found online to work on the gyroscope that I'm building. I'm wondering what the difference is between pow ...
2
votes
2answers
3k views

Linear acceleration from MPU 6050

When reading the MPU 6050 has accelerometer and gyro, I assumed it was linear acceleration, but now I second guess that. From this video https://www.youtube.com/watch?v=qmd6CVrlHOM it seems like they ...
1
vote
2answers
8k views

What does “LSB per degree per second” mean?

I'm currently working with a digital output gyroscope. Its sensitivity is given as 120 least-significant bit per degree per second. While every single component of that unit is easy to understand I ...
0
votes
1answer
123 views

What does a higher clock signal frequency actually mean for my AHRS?

I've got an Arduino with an ATmega328 processor. It can be operated at 3.3V which nets a clock signal frequency of about 12 MHz respectively 16 Mhz at 5V. I've got an IMU connected to the Arduino and ...
1
vote
1answer
124 views

Will it work ? MPU6050 Gyro etc. etc. module

Will this code read the values properly ? Using MPU6050.h. #include <MPU6050.h> #include <Wire.h> void setup() { Serial.begin(115200); Wire.begin(); MPU6050.initialize(); } void ...
1
vote
2answers
1k views

RC servo misbehave using arduino and MPU6050

I am a beginner.. I am trying to control RC servo using Arduino based of data from MPU6050. I am using library I2Cdev to communicate with gyro and to get yaw, pitch and roll. I am using example script ...
5
votes
2answers
13k views

What is the difference between Accelerometer, Gyro, and Magnetometer Sensor?

I'm starting in the arduino world and I'm building an autonomous smart vehicle. So, after some weeks building and adjusting the vehicle, I got to a point in this project that I want to log it's ...
1
vote
0answers
55 views

arduino leonardo stops transmitting once hdmi cable is connected to a screen

I am using arduino leonardo for moving mouse pointer with head tracking using MPU6050. It works fine in general. But as soon as I connect an external lcd screen to my laptop via hdmi cable, it stops ...
0
votes
1answer
269 views

Comparing orientation data obtained using gyroscope and accelerometer

Recently, I have been playing around with a gyroscope and accelerometer in the hopes of building a quadcopter. I have plotted some of the data the two sensors and I am noticing that the pitch from the ...
1
vote
0answers
219 views

Streaming IMU data over BLE using Sparkfun 6 DOF and Blend Micro

I am trying to use the RedBear Blend Micro to send data captured by my SparkFun 6 DOF IMU. I am completely lost, and if anyone has any documentation I can read, or even tutorials that work for this ...
1
vote
0answers
1k views

MPU-6050 giving strange data

I'm using an MPU-6050 chip in order to calculate orientation. It is connected to an Arduino Pro Mini. I am using code written by Jeff Rowberg that uses the internal DMP. The 57600 baud rate crashes ...
1
vote
1answer
4k views

Calculating Angles from MPU6050

I've been playing with a GY521 breakout recently with the MPU6050 chip on it, though i've hit a bit of a problem that I can't quite work out I know when I rotated the board I rotated ~90 degrees ...