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
0 answers

Self balancing robot - how to obtain the elapsed angle from gyroscopic data?

I am trying to complete my University project building and programming a self balancing robot in python (using RPi) but have hit a road block in my knowledge. From the MPU6050 I am able to obtain both acceleration and gyroscopic data, furthermore…
0
votes
1 answer

Can Read from I2C, but not Write

I'm developing a mpu6050 library for learning purposes. To do so, I am using an stm32 mcu and I have created functions to read and write to its registers. They are as follows: static IOStatus_t Stm32f767zi_I2C_Write(uint8_t Address,uint32_t…
0
votes
1 answer

How to send more than one value to my MQTT Broker

I am using an ESP32 microcontroller to read data via the sensor MPU6050. I am sending the data directly to my MQTT broker and then to a database (using Node-red). My Question is, how can I send 100 values at once to the broker? I tried the…
ez.oez
  • 1
  • 1
0
votes
1 answer

How can i fix error 121 remote i/o error with mpu6050 on raspberry pi model 3 b ROS

I have issues on my mpu6050. I'm using a project called DextroBot on github as base for my final project. The problem is, that as soon as I run the roslaunch I'm get an error called remote I/O error. I don't know if it has something to do with the…
0
votes
1 answer

mpu6050 arduino uno stoping after a few seconds

I was trying to use MPU6050 and a servo motor. but mpu6050 arduino crashing after a few seconds . i used arduino uno and sg90 servo motor. this is my code. #include "Wire.h" #include #include Servo myservo; MPU6050…
simo
  • 9
  • 4
0
votes
0 answers

I'm getting USBD_BUSY when i try to transmit sensor readings from sensor to my computer via virtual com port

I'm trying to transmit MPU6050 sensor readings to my computer via virtual comport.I'm using STM32 Nucleo F446RE. As far as i can see in debug mode there is no issue in sensor and sensor readings. Problem is I can't transmit them using USB. Are there…
Erush
  • 1
  • 1
0
votes
0 answers

Encountering an I2C error 121 when interfacing an MPU6050 with a Raspberry Pi using Python

I am attempting to use an MPU6050 sensor with a Raspberry Pi, for the purpose of dectecting hte pitch, roll, and yaw of a DIY drone I'm building. The MPU has worked in the past, somehow I've managed to change something in software, and I am now…
Mblizzard
  • 171
  • 1
  • 1
  • 8
0
votes
1 answer

Raspberry pi pico with MPU6050 reading zeros

So I am working on a step counter using a raspberry pi pico and a MPU6050 when last night I had the code working fine so I unplugged the pico, then I went to plug the pico back in this morning and now it's displaying zeros. I configured the code…
0
votes
0 answers

Can MPU6050 implement hand lift detection in low power mode?

If i want to use mpu6050 intterrupt to wake up stm32. when i move my board,stm32 can wake up form stop mode. i have realized the iic communication between stm32 and mpu6050.and stm32 can already enter stop mode.
0
votes
0 answers

MPU6050 stuck in sleepmode (C/C++)/No raw data being transmitted

I have a MPU6050 hooked up to a raspberry pi pico, I am trying to read the data using the i2c protocol. But it only gives 0's, I assume this is due to the fact that its in sleep mode because from what I can tell everything is connected as it should…
0
votes
0 answers

How to get readings from raspberry pi and treating it as a blackbox to my laptop using zeroMQ?

I am just a beginner and I don't know where to begin, where will I code the publish code and subscribe code while I don't have access to my raspberry pi as it has different processes. I just need to get reading from sensor connected to it.
0
votes
1 answer

Could not find a valid MPU6050 sensor

I am using the below code with arduino-uno, but often getting "Could not find a valid MPU6050 sensor #include #include MPU6050 mpu; void setup() { Serial.begin(115200); Serial.println("Initialize MPU6050"); while…
Kamalesh P
  • 23
  • 7
0
votes
0 answers

Read MPU6050 accelerometer data directly using Android

I have a custom hardware that runs on Android 8.1. The hardware has an MPU6050 accelerometer sensor. Can I directly read the MPU6050 data through Android application? Or would I need a C program like this to read the actual data and then identify a…
SyncMaster
  • 9,754
  • 34
  • 94
  • 137
0
votes
0 answers

MPU6050 motion driver library function call cause hardfault exception

Hi I'm try to use mpu6050 on my stm32 project. I copy the motion driver library from SparkFun_MPU-9250-DMP_Arduino_Library and replace arduino function like arduino_i2c_write to stm32 write function. The replace part work fine. The stm32 board did…
Benycu
  • 11
  • 3
0
votes
2 answers

Failed to find MPU6050 with ESP32

I would like to use my MPU6050 together with my ESP32. (Link to the specific ESP Board) It is not the first time for me using the MPU6050. I used it before in a project with an Arduino Uno and the MPU6050_light.h library. That worked perfectly. Now…
BeneB
  • 37
  • 6