makerportal / mpu92-calibration Goto Github PK
View Code? Open in Web Editor NEWCalibration procedure for the MPU9250's accelerometer, gyroscope, and magnetometer using Python and a Raspberry Pi Computer
License: GNU General Public License v3.0
Calibration procedure for the MPU9250's accelerometer, gyroscope, and magnetometer using Python and a Raspberry Pi Computer
License: GNU General Public License v3.0
When running acc.'s integration script it always shows an error around 0.8m displacement in the y-axis, doesn't matter if I move it or not.
I commented mag's values because it makes rpi zero to work really slow and not sample fast enough, which results in error in the signal filtering later too.
I also load the calibration coeff's after the calibration is done.
the output:
Data Acquisition Stopped
1540 - number of samples
5 - seconds
308.0 - division (1540/5)
Sample Rate: 308Hz
Displace in y-dir: 0.90m
I'm getting the following error after moving the IMU:
python3 accel_integration.py
Starting Data Acquisition
Start Moving IMU...
Data Acquisition Stopped
Traceback (most recent call last):
File "accel_integration.py", line 189, in <module>
imu_integrator()
File "accel_integration.py", line 128, in imu_integrator
b_filt,a_filt = signal.butter(4,5,'low',fs=Fs_approx)
File "/home/pi/imu_project/venv/lib/python3.7/site-packages/scipy/signal/filter_design.py", line 2957, in butter
output=output, ftype='butter', fs=fs)
File "/home/pi/imu_project/venv/lib/python3.7/site-packages/scipy/signal/filter_design.py", line 2423, in iirfilter
"must be 0 < Wn < fs/2 (fs={} -> fs/2={})".format(fs, fs/2))
ValueError: Digital filter critical frequencies must be 0 < Wn < fs/2 (fs=6.0 -> fs/2=3.0)
Any idea why this happens?
raspberrypi?
when I use GY-91 as imu , this github code can not be applied on this type of MPU9250
It will always pop out that GY-91 not wired correctly.
Is there anything wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.