I am using an arduino uno, a gy-521 mpu 6050 and the Jeff Rowberg library. While the code is perfect the results are less than desirable. I am using the RealAccel option but when I move the accelerometer to the right the data is first correctly positive numbers increasing because of the rightward movement. But once I stop moving the device there are negative values appearing. For the most part there is an equal value for both positive and negative values, meaning if I moved the accelerometer the equivalent of '100' in the positive direction once I stopped moving there would also be multiple other negative values adding up to about a '-100'value. I assume this is because for every action there is an opposite and equal reaction but if not I would like to know why this happens and even if this is there case there must be a way around this, right ? I previously solved this by multiple if statements basically saying if any of the last 7 numbers were positive(because of noise) then the next x number of numbers would be zero but I would like to hear any other ideas or solutions for this problem.Thank you.
mpu 6050 accelerometer value gives positive and negative values for one movement?
1.8k views Asked by AaronBettle At
1
There are 1 answers
Related Questions in ARDUINO
- How to fix python serial monitor parsing error?
- How can I break bricks?
- Soft WDT reset on Wemos D1 Mini
- Arduino TFT module 240x320 OLED not working
- Async Web Server RP2040 returning ERR_CONNECTION_REFUSED?
- ESP32 Consequtive Interrupt WDT Timeout Exception
- Adafruit BNO08x Lib Not working with PicoRP2040 - PlatformIO
- SPI - R/W to ST95P08 EEPROM
- arduino disambungkan ke konputer nyala dan mati lagi
- How to correctly read POST REQUEST body on ESP32?
- How do I publish sensor data to EMQX broker on Ubuntu from a remote Arduino (no WiFi) interfaced with SIM800L?
- Portenta H7 Baremetal Development and a Little Guidance on Embedded System Learning Roadmap
- Wifi disconnects and connects again and again while using esp8266, max30100 and oled display
- Arduino-cli commands are not found in vscode using WSL, why is this occuring?
- Implementing Image Processing for Dimension Measurement in Arduino-based Packaging System
Related Questions in ACCELEROMETER
- Wheel rotation frequency from accelerometer data
- Andriod phone accelerometer reading: native code vs. Android API
- Calculate Velocity from Accelerometer of Android Phone
- Buffersize to small
- Convert IMU data into trajectory data
- ERROR in rc_mpu_calibrate_accel_routine, center of fitted ellipsoids(in beagle bone blue)
- How to implement EKF (Extended Kalman filter) for INS GPS sensor fusion in a mobile application?
- Velocity from Accelerometer data
- Calculating pitch and roll from XYZ accelerometer data collected from a wildlife collar
- MC3635 convert Gs to delta and mux for interupt threshold
- problem with the Majwick filter when processing data from the gyroscope
- How to calculate device translation from accelerometer values?
- Extracting IMU sensitivity/accelerometer scale range in an app
- Accelerometer shows the same exact behavior as roll, pitch and yaw extracted from gyroscope
- Function for shaking the phone on the PWA mobile application
Related Questions in GYROSCOPE
- Convert IMU data into trajectory data
- How to visualize data from a 6-axis gyroscope using a 3D model in WPF?
- Velocity from Accelerometer data
- problem with the Majwick filter when processing data from the gyroscope
- Can I get the gyroscope data from my phone to make a makeshift racing sim rig for pc
- Accelerometer shows the same exact behavior as roll, pitch and yaw extracted from gyroscope
- Calculating precise heading using raw magnetometer, accelerometer and gyroscope data
- Simulating Gyroscope with ARW, BI, and Spectral Density Using Physical IMU Data
- MPU6050 raw z-axis data is always zero
- How to know if mobile is tilted upward or downward in Android?
- How can I have Android on the RasPi with Accel/Gyro?
- run ADIS16465-1BMLZ on raspberry pi 4 with kuiper linux
- How to ensure stability on all device that can use the Android TYPE_GAME_ROTATION_VECTOR sensor
- MPU6050 Quaternion calculation with stm32
- Unity iOS gyroscope always returns constant value
Related Questions in I2C
- Adafruit BNO08x Lib Not working with PicoRP2040 - PlatformIO
- msp430f5438a reading multiple sensor tmp117
- Raspberry pi 4, ina219 Bi-Directional DC Current Power Supply Sensor
- read block data with smbus2 is slow on Raspberry Pi
- I2C problems communicating with I2C Analog Devices AD5112 Digital Pot
- How to receive a float array using esp8266 via I2c
- I2C Communication with Tiva TM4C123GXL
- GPIO I2C IMU on OrangePi CM4 Running Android Doesn't Interface With Native Apps
- I2C LCD1602 interfacing with PIC16F877A
- Sets huskylens modes
- Find out which protocol to communicate with a TFT LCD display
- Why does one of the arguments in this MPU-6050 code mean something different from the official Arduino documentation?
- I want to change the slave address in runtime again after the first configuration of i2c SLAVE. Is this possible , I'm getting errors while doing that
- Issue with MAX32664 breakout board from Protocentral on STM32L476RG Nucleo-64: Fixed SpO2 value
- enabling cdc-acm uart and I2C at the same time on zephyr OS
Related Questions in GY-521
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
If you accelerate an object in one direction, the object will never slow down or stop. It will keep going in that direction forever. The only way to slow down or stop is to have negative acceleration. You're right about the negatives equaling positives in your case - it's because you're starting at velocity zero and ending at velocity zero.
I think you're actually trying to calculate velocity in that direction, which will start at 0, go above 0, and then return to 0. To get that number, sum (accerations * (time difference)) from time=0 to whatever time you need the velocity. This is called a Riemann sum of accelerations.
For further reading, look for 'kinematics in one dimension'.