50 questions
0
votes
0
answers
59
views
an example of linker script in Nordic_nRF_Connect_SDK. don't understand why it could work
I have copied here a piece of code from Nordic_nRF_Connect_SDK\v2.4.2\zephyr\arch\common\ramfunc.ld
As some background info: memory sections used for MPU needs to meet following:
section start ...
0
votes
0
answers
70
views
Cortex M self-protects its own MPU registers
Is it possible the Cortex M MPU to disable write access to its own registers for privileged code.
I want to setup the MPU once and disable MPU modifications forever. This will prevent someone to ...
1
vote
0
answers
220
views
ARM Cortex-M4 : MPU and unprivileged switching
I am trying to use the MPU in an ARM Cortex-M4 device. The device was running without MPU and was in privileged mode. When I enable the MPU and try to switch to unprivileged mode there is a hard fault ...
1
vote
0
answers
118
views
Zephyr, defeating C_NULL_POINTER_EXCEPTION protection
I'm working on a project that uses Zephyr on a Nordic nRF52840 ARM CortexM. In the build they have the C NULL pointer exception protection enabled with:
CONFIG_NULL_POINTER_EXCEPTION_DETECTION_MPU=y
...
0
votes
1
answer
2k
views
ESP32 not connecting to MPU9500/6500
I am currently using a ESP-32s WROOM dev board v1.1 as a control module. I have connected this to a MPU9250/6500 as an IMU, using the following connections:
As code for the ESP-32s WROOM dev board v1....
0
votes
0
answers
143
views
No source available for "g_pfnVectors() at 0x0"
I'm trying to debug a firmware in production mode using STM32cudeIDE, running on the cortex M4 on the stm32MP157F. When debugger starts it seems g_pfnVectors isn't properly created. When I stops ...
0
votes
1
answer
209
views
FreeRTOS MPU: privileged access to bss?
I am using FreeRTOS 10.5.1 with MPU support on a Cortex M4 microcontroller (STM32F4).
I created some tasks (all privileged -> portPRIVILEGE_BIT set) and my system is running fine.
Now I tested ...
1
vote
1
answer
775
views
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 ...
2
votes
2
answers
872
views
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 ...
1
vote
0
answers
768
views
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 ...
0
votes
1
answer
3k
views
How can I configure MPU(Memory Protection Unit) for an OS_Task in Vector AUTOSAR Conguration Tool?
I want to protect an OS_Task using MPU in Vector AUTOSAR Conguration Tool. How can I do?
0
votes
0
answers
69
views
Large capacity, SPI storage for PIC12f1840?
I'm using a PIC12F1840 chip with an MPU9250 accelerometer to collect movement data. I'm currently using a 1Kb, SPI RAM chip, but it gets full quite quickly, and there is also data loss while trying to ...
2
votes
3
answers
3k
views
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.
<Error><Code>...
1
vote
0
answers
685
views
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 ...
1
vote
1
answer
1k
views
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 ...
0
votes
0
answers
679
views
Quaternion to degrees MPU9250
I use the library https://www.google.com/url?sa=t&source=web&rct=j&url=https://github.com/arduino-libraries/MadgwickAHRS&ved=2ahUKEwiGrpOakcvjAhWOlIsKHXsQD_EQFjAAegQIBRAB&usg=...
1
vote
1
answer
3k
views
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 ...
0
votes
0
answers
749
views
How to correct the drift in MPU9250 IMU using DMP MotionApps v4.1
I'm trying to provide a visual orientation of a device in 3D using Qt. For this,I have integrated the DMP MotionApps v4.1 for a MPU9250 and obtained the Quaternion values from the MPU's FIFO register. ...
1
vote
2
answers
625
views
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 ...
1
vote
0
answers
2k
views
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 ...
1
vote
0
answers
501
views
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 ...
0
votes
1
answer
2k
views
No data from magnetometer on MPU9255
I have a problem with reading data from the magnetometer on an MPU9255. The accelerometer and gyroscope work properly, but I do not receive any data from the magnetometer. I am working on the ...
1
vote
1
answer
3k
views
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(); ...
0
votes
0
answers
676
views
how to remove gravity from real accelaration 3-axis?
I wanted to remove gravity from my 3-axis data, Please help me fixing it.
mpu9250_read_accel(&AccValue);
AX = ((AccValue.x *9800)/(16384));
AY = ((...
-2
votes
1
answer
183
views
how to change MPU9150 sensitivity?
I want to know what sensitivity I am working with on an mpu 9150 (+ Raspberry PI).
this is the library I am using: linux-mpu9150
mpu 9150 page
I want the accelerometer to have more sensitivity(so ...
0
votes
1
answer
2k
views
Improved calculation of Tilt and Roll angles for an accelerometer and gyroscope
I'm developing a 2axis gyro-stabilized Gibmbal. I use a 10DOF sensor :
MPU6050 (gyro & accelerometer)
HMC5983 (magnetometer)
MS5611-01BA (altimeter)
I've already calculeted the tilt and roll ...
1
vote
1
answer
151
views
Why "fifoBuffer" values of indexes 2,3,6,7,10,11 are not passed in the teapotPacket[] array ?
I'm using the MPU6050 library by Jeff Rowberg. In the code, whole fifobuffer is not passed to the 'teapotPacket' array (for processing ,i.e, graphics emulation). Why only certain indexes are passed in ...
0
votes
2
answers
1k
views
Can I cancel out gravity only with gyro and magnetometer?
On a device I want to detect a range of forces: small forces (Minimum around 0.01g) but also stronger forces like 0.1g - 0.15g.
This device will have different positions in 3d space so in order to ...
0
votes
0
answers
317
views
Why mpu 9150 yaw values are not accurate?
Downloaded MPU library from https://github.com/jrowberg/i2cdevlib.
I graphed yaw values and its not accurate.
The graph has kept increasing,I don't think it's a right way.
Please check the below ...
1
vote
0
answers
48
views
Hanging moving gestures (Left/normal/right/up/normal/down) using mpu9150 sensor
We tried (Arduino+mpu9150) using gestures LEFT-NORMAL-RIGHT, UP-NORMAL-RIGHT.
We can able to get these gestures, but not accurately.
Its HANGING in middle, and sometimes values are also Incorrect.
...
1
vote
1
answer
926
views
How to get gravity values from real acceleration date using MPU 9150 sensor
Please kindly help me to learn
I can get acceleration values using below code
#ifdef OUTPUT_READABLE_REALACCEL
//display real acceleration, adjusted to remove gravity
mpu....
0
votes
1
answer
380
views
Getting/Processing the right values U get from the MPU-6050 with Arduino Due
for my project for school that decides if I pass this year or not I have to work with an MPU-6050 and an Arduino Due. The MPU works via I2C and ive got that part working. I can get values and its ...
1
vote
0
answers
3k
views
High Performance with RaspberryPi and MPU6050
I have a problem in performance (scanning speed) with my Pi and the MPU6050.
The task of the code is to log the data from the MPU as fast as possible and in an accurate interval.
To reach a high ...
2
votes
0
answers
859
views
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 ...
0
votes
1
answer
9k
views
How to get position in 3D cordinates using mpu 6050?
I am working in a project using MPU6050 with my designed chip to detect object movement.
Project is divided into 2 phases:
Phase I: visualize object orientation (DONE)
Phase II: visualize object ...
1
vote
0
answers
420
views
How to detect steps and squats from accelerometer or magnetometer or gyroscope
I am working on mpu9150 sensors data (3 axial acceleration, 3 axial magnetic field and 3 axial gyroscope data). I have raw data in my database called, influxDB. I want to detect (monitor) steps and ...
1
vote
1
answer
2k
views
MPU9150 data (gyro, mag, acce, e.g 9DoF) to Quaternion
I faced a serious problem yesterday. I am trying to find absolute position of an object using MPU9150. It has gyroscope, accelerometer and magnetometer. Each of them providing information in 3 axises(...
1
vote
0
answers
6k
views
Yaw calculation from RAW data of MPU 6050
I am trying to calculate yaw pitch and roll for my Quadcopter project. I have taken the code from Here.
I have been succeeded in calculating roll and pitch in degrees and applying complimentary ...
0
votes
1
answer
1k
views
SI Unit of acceleration in JRowberg's MPU6050 library
I can't find the or don't really get what SI unit the values will have.
It's the acceleration component with gravity removed and adjusted for the world frame.
line 109 in https://github.com/jrowberg/...
4
votes
0
answers
3k
views
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 ...
0
votes
1
answer
1k
views
Powering MPU-6050 with Arduino digital pins
I have been trying to use MPU-6050 (specifically GY-521) with an Arduino Nano v3.0 but am not getting any readings when I try to power the MPU-6050 with the VCC and GND hooked up to digital pins on ...
3
votes
2
answers
16k
views
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 ...
1
vote
0
answers
165
views
Issues reading accelerometer data from Mpu9150
I am trying to get accelerometer data from mpu9150 and pass it to android for screen rotation.
My initialization is as follows:
Reset Mpu9150
Clear sleep bit
Set Sample Rate Divider to 7 (for 1KHz)
...
6
votes
2
answers
18k
views
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. ...
0
votes
1
answer
1k
views
Get static values from MPU6050 DMP
I have a problem in getting clear and not jumping values from MPU9050 DMP. I used Jeff Rowberg's code. The problem is when I use the code all is perfect, YPR is very smooth. But when I use that in my ...
0
votes
1
answer
564
views
Error when building project using Atmel Studio 6, for Atmega2560(with HMC5883L, MPU6050 and I2Cdev libararies)
This is my code:
#include <Wire.h>
#include <I2Cdev.h>
#include <HMC5883L.h>
#include <MPU6050.h>
#include "Arduino.h"
void setup();
void loop();
MPU6050 accelgyro;
HMC5883L ...
1
vote
0
answers
454
views
How to get RAW IMU data from the Google Glass?
I am trying to get RAW acceleration and gyroscope data from the Google Glass IMU module.
I tried aSensormanager module in the NDK, but it sometimes gives output with some wierd bias adjustment. So I ...
0
votes
1
answer
4k
views
issues accessing magnetometer data from MPU9150
Output: -What I am getting is 0xFF on reading every register (corresponding to magnetometer). On the other hand I am able to access the registers of the accelerometer and the gyroscope perfectly. I ...
1
vote
3
answers
6k
views
Arduino freezes after x seconds
I was reading the data from an MPU-6050 inertial measurement unit, using I2C, from an arduino at a sample rate of 25Hz and it worked fine. Then I added a second MPU-6050 that I also read at a sample ...
0
votes
1
answer
204
views
Has anyone used Arduino Fio with an MPU 6050?
I am having trouble using the MPU 6050 DMP with my Arduino Fio. I have been using the code provided by https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050 and I am having a really tricky ...