Questions tagged [mpu6050]

The MPU6050 is an accelerometer, commonly available 6DOF IMU (inertial measurement unit).

The MPU6050 is a 6DOF IMU from Invensense. It contains a 3-axis accelerometer, a 3-axis MEMS gyroscopic sensor, and a temperature sensor.

117 questions
0
votes
1 answer

I have two i2c devices. Both alone work well, but when I read from one, and then write to the other, the second one is not an ancknowledging

I have two devices MPU6050 and EEPROM 24C256. I can write and read from both alone. But when I try to read from MPU6050 and than write data to EEPROM in the same session, the EEPROM does not respond. I am using mbed OS libraries. And my question…
0
votes
0 answers

Raspberry Pi will not detect mpu6050

I have an mpu6050 and I am trying to get it to work with my raspberry pi. I the following pins connected to the raspberry pi like this: vcc --------- 5V (pin 4) gnd --------- Ground (pin 6) scl --------- scl (pin 5) sda --------- sda (pin 3) xda…
0
votes
0 answers

How to read a block of data from MPU6050 by I2C using C++

I use the MPU6050 device and get accelerometer and gyroscope data. Now I need to read a block of data from the MPU6050 using cpp language. It was easy to do this in Python: data_tmp = bus.read_i2c_block_data(Device_Address, ACCEL_XOUT_H, 14) This…
Natal04ka
  • 45
  • 6
0
votes
1 answer

I can't get data with I2C from mpu6050 on STM32F103

I am new I2C communication. I examined some running code. And I used function their used. But I can't get any data. I wonder if I2C have to do initial config? Where is the problem. This is function I wrote: void GetI2CAccelerometer(uint8_t…
Alperen
  • 1
  • 3
0
votes
0 answers

STM32L072CZTx mpu6050 i2c No ACK after some successfull transmitting

i made a customboard with a MPU-6050 & STM32L072CZTx on it. My problem is, that the MPU-6050 doesn't ack after some successfull transmision. I have two 4,7k pull-ups on SCL and SDA. Restarting the MCU doesn't fix it. I have to unplug the power to…
0
votes
1 answer

How to read data from MPU6050 using STM32F4

I need to monitorate the acelleration of a object. I'm using the MPU6050(accelerometer and gyroscope) and the controller STM32F401RBT6. The code below is the solution that i'm using for this. #define MPU6050_ADDR 0xD0 #define SMPLRT_DIV_REG…
Felipe Mateus
  • 127
  • 2
  • 11
0
votes
1 answer

MPU6050 not responding on address 0x68 but shows up in I2C Scanned addresses

When i run the I2C scanner on STM32F303, i see both devices connected to the bus. Names a device on address 0x3C (OLED) and address (0x68) MPU6050. Both addresses, specifically agree with what the datasheet says. However, when i try to read the…
Hakim Marley
  • 330
  • 2
  • 5
  • 19
0
votes
1 answer

How can I use mpu6050 and arduino uno to control cube so the cube will move with mouse position?

When I first tried the arduino code with my mpu6050, the serial monitor showed the readings. However, when I tried to connect it with unity, the readings cannot be showed or used in unity. I was stuck at this problem. I was trying to make the cube…
0
votes
1 answer

How to send MPU6050 device data to IoT Hub

I am trying to send accelerometer data from MPU6050 which is connected to a ESP8266 to the Azure IoT Hub. I am using the Arduino IDE. I followed this tutorial from Microsoft:…
es_jm
  • 33
  • 1
  • 5
0
votes
1 answer

MPU 6050 accelerometer sends 16bit unsigned values

I'm using the GY-521 breakout board to get it's accelerometer data on a teensy 3.6. From what I understand, I should expect signed (so positive and negative) values from it, but instead I get values from 0 to 65535. So here is what I get: When the…
middels
  • 1
  • 2
0
votes
1 answer

Is it possible to measure the distance with the mpu6050 from the starting point?

Is it possible to mark the distance with mpu6050 (e.g gy521) in centimeters or other values?
gonzo
  • 549
  • 1
  • 8
  • 14
0
votes
0 answers

Converting vector from relative coordinate system to an absolute one

I'm trying to make a quadcopter drone. I'm using an mpu6050 to get acceleration & angular speed and then convert them to Roll / pitch / yaw With the acceleration, i'm also trying to get the speed & position by integration. However , i need them to…
0
votes
2 answers

MPU6050, No I2C devices found, arduino nano

I received a sensor (the accelerometer mpu6050) and I cannot use it. After several tests, I tried to do a basic test with it to see if the I2C Scanner could see it whereas I know that its address is 0x68 or 0x69. However, I got this…
E.B
  • 141
  • 3
  • 15
0
votes
1 answer

How to convert raw data of mpu6050 to control mouse cursor?

I have a project to complete which is about " Controlling PC mouse cursor using sensor " in which I have to use Java, Arduino and MPU-6050 as sensor. I planned to use the code of below for mouse cursor movement public void moveRight() throws…
0
votes
2 answers

MPU-6050 changing X and Z axis values when only one axis is moved

I am building a drone and using an Arduino Uno to mostly control it. However, when I tilt the drone to test it, for example on the X axis, the program says it's been tilted on both the X and Z axis. I am using an MPU6050 gyroscope. Here is the code…