Questions tagged [mpu]

Tag for "Micro-processor unit", smaller MCU/SOC. Generally a bad tag. Suggest [embedded]. For an ARM memory protection unit, use [arm-mpu].

48 questions
6
votes
2 answers

arm-none-eabi-ld: cannot find -lc

I'm trying to code for XMC1100 based development board. I'm trying this tutorial : http://eleceng.dit.ie/frank/arm/BareMetalXMC2Go/index.html I have downloaded the blinky.tar.gz file and unzipped. When I try "make" I'm getting this error :…
fobus
  • 1,938
  • 8
  • 29
  • 48
4
votes
0 answers

Invensense mpu 9250: dmp

I'm trying to use the dmp to calculate quaternions. I can't understand how to get the dmp data output. I think that they are stored in some registers reachable using i2c but i don't know their address or in general how to get them. Help please
Enrico Gizzi
  • 51
  • 1
  • 2
3
votes
2 answers

MPU6050 output yaw pitch and roll with Arduino

I'm trying to read yaw, pitch and roll with MPU6050 and Arduino, but I always get overflow, if I use the function yprx() in the loop without waiting for any input I get the correct values, the problem in this solution is that I need the three values…
Mitro
  • 1,230
  • 8
  • 32
  • 61
2
votes
1 answer

MPU-9250 sample rate lower than the one selected in register map

I'm using Arduino UNO and I2C protocol to read data from MPU 9250 in arduino IDE. But the sampling rate is lower than the one I selected, indeed, I try to use 1KHz but the maximum speed I can reach is by reading only one of the sensors and is 25 Hz.…
2
votes
3 answers

AWS Multipart Upload SignatureDoesNotMatch

I am trying to upload a PDF file to AWS S3 using multi part uploads. However, when I send the PUT request for uploading the part, I receive a SignatureDoesNotMatch error. SignatureDoesNotMatchThe request signature we…
Rachit Anand
  • 616
  • 5
  • 16
2
votes
0 answers

MPU 6050 DMP Output Values Units Issue

I'm running into an odd issue with a motion control processor (MPU 6050 / 9150) that is returning raw gyroscope values as specified between the -/+ 32768 which in the way this gyro is configured corresponds to -/+ 2000 deg / sec. This makes total…
Kevin R.
  • 336
  • 4
  • 14
1
vote
1 answer

In the RISC V Assembler, what does the ".weak" assembler directive do?

I'm learning RISC V Assembly language, and I have been going through some code (I like to see practical examples of how others do their coding). I found an odd Assembler directive in the startup code for the CH32003V (a new RISC V MPU). So far I…
S.E. Foulk
  • 111
  • 1
  • 9
1
vote
0 answers

ESP32 and MPU quaternion values are different - Unity3d shows different initial orentation of object

I am trying to build a 3D FPS game in unity. A friend of mine bought a (replica) gun and modified it to add an ESP32 and an MPU-9250 gyroscope/accelerometer in it to track and send the rotation of the gun (using quaternions) to unity. The problem is…
Kostas Letros
  • 53
  • 1
  • 11
1
vote
0 answers

How to avoid MPU9250 FIFO overflow?

I'm now working with mpu9250 for my master thesis, but I'm quite new to hardware device. My goal is to collect the data at the sample rate and postprocess these data via allan deviation. So I just want to get the data from 512 bytes fifo, but when…
段永旭
  • 11
  • 1
1
vote
1 answer

How to add a complementary filter for the gyro z axis using a magnetometer?

I am using a complementary filter for my gyro X and gyro Y values: float angle_x = alpha*gyro_angle_x + (1.0 - alpha)*accel_angle_x; However, due to Gyro Z drift, I am using a magnetometer to try and eliminate it. I have my local inclination angle…
savs apps
  • 15
  • 8
1
vote
1 answer

MPU6050 Quaternion math

Does anyone know how the MPU6050 internally calculates the quaternion values? I followed all of the steps to attempt and replicate this math by integrating the gyro degrees per second readings over time to get Euler angles and then converting those…
GNG
  • 1,341
  • 2
  • 23
  • 50
1
vote
2 answers

How to get an integer from a byte array which was send from an MPU gyroscope

I'm trying to read out MPU data on an HTML website. I'm using MQTT for the connection and an ESP8266 to send the data. This works pretty good, but my problem is that the esp is just sending byte arrays and I don't know how to convert them into…
Lennard
  • 25
  • 1
  • 4
1
vote
0 answers

Configuration of MPU6500 code?

I'm having difficulties configuring my MPU-6500. I'm not sure how to calibrate it to get accurate readings as I am still very new to this. I am using the MPU-6500 with my Arduino Uno. Below is the code that I have written after referencing to…
Arcadian
  • 11
  • 4
1
vote
0 answers

Quaternion issues

I'm working with a MPU9250 to control a 3D position. I have an object that can rotate in 3 axis ( Roll, Pitch and Yaw) but I found some problems. Initially I tried to calculate Euler Angles from Quaternions, but I discover that Euler Angles have 2…
Luca
  • 11
  • 1
1
vote
1 answer

need explanation acc_x = Wire.read()<<8|Wire.read();

what does wire.read()<<8|wire.read() do? while(Wire.available() < 14); until all the bytes are received acc_x = Wire.read()<<8|Wire.read(); acc_y =…
MrDeepak
  • 31
  • 2
  • 7
1
2 3 4