liquidcgs / fastimu Goto Github PK
View Code? Open in Web Editor NEWthe IMU library to rule them all (wip)
License: MIT License
the IMU library to rule them all (wip)
License: MIT License
Hi,
During testing, I found that my esp32 was crashing when using the MPU9250 from your library.
I found the issue to be that in F_MPU9250.cpp, the function int MPU9250::initMagnetometer() doesn't return an int.
Cheers!
I have a BMI270, want it word on Arduino nano, other library is too big, hex too large, can't upload to Nano.
Qmi8658 is low price and high performance 6dof imu.
Hi,
trying Calibrated_sensor_output.ino with an esp32 and an MPU6886
MPU6886::calibrateAccelGyro() fails to read back the FIFO sample count here - the readBytes() request is NAK'd, hence fifo_count is zero, resulting in a divide-by-zero here
not sure what to do about it, short from replacing gyro calibration with averaging
thanks!
Michael
ps: using Platformio, esp_wrover_kit 4.1 with JTAG, Salea LA
versions are:
Platform espressif32 @ 6.1.0 (required: espressif32)
├── framework-arduinoespressif32 @ 3.20007.0 (required: platformio/framework-arduinoespressif32 @ ~3.20007.0)
├── tool-cmake @ 3.16.4 (required: platformio/tool-cmake @ ~3.16.0)
├── tool-esptoolpy @ 1.40500.0 (required: platformio/tool-esptoolpy @ ~1.40500.0)
├── tool-mkfatfs @ 2.0.1 (required: platformio/tool-mkfatfs @ ~2.0.0)
├── tool-mklittlefs @ 1.203.210628 (required: platformio/tool-mklittlefs @ ~1.203.0)
├── tool-mkspiffs @ 2.230.0 (required: platformio/tool-mkspiffs @ ~2.230.0)
├── tool-ninja @ 1.9.0 (required: platformio/tool-ninja @ ^1.7.0)
├── tool-openocd-esp32 @ 2.1100.20220706 (required: platformio/tool-openocd-esp32 @ ~2.1100.0)
├── toolchain-esp32ulp @ 1.23500.220830 (required: platformio/toolchain-esp32ulp @ ~1.23500.0)
├── toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 (required: espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch5)
└── toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5 (required: espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5)
I have a MPU-6050 and was trying to make it work with FastIMU, unfortunately i get an error code of -1, that lead me to thinking that my sensor was broken, but when I try to read raw data from it I get a response, also when I scan i2c connections i get a positive one at address 0x68
(Image of output from Nick Gammon's i2c scanner)
writeByte(IMUAddress, MPU6500_INT_PIN_CFG, 0x02); //enable Magnetometer bypass
writeByte(IMUAddress, MPU6500_INT_ENABLE, 0x01); // Enable data ready (bit 0) interrupt
**Before this the code use 0x22 to enable Magnetometer to bypass.
What units of measurement does this library output? Is the acceleration in Gs or m/s^2? Is the gyro data in rad/s?
The BMM150 can be connected to the BMI160, allowing for the magnetometer data to be read via the BMI160 along with gyro and accel.
I have searched and been unable to find any libraries supporting this properly, will you consider adding support for this?
Hi! First of all, thank you very much for your very versatile library.
I tried to search before posting the question, without any luck, but still I fear this is a common question which I am going to ask again...
Is there any way to change the sample rate with this library?
I'd like to modify the frequency of my MPU6050
FastIMU does not work with the builtin IMU of the Nano 33 IoT because the "who am i" value of the LSM6DS3 on the 33 is (or can be?) 0x6C instead of 0x69.
Ardunio 2.1.1
Fast IMU 1.2.1
An error occurred while compiling
In file included from c:\Users\11984\Documents\Arduino\libraries\FastIMU\src/FastIMU.h:18,
from C:\Users\11984\Documents\Arduino\sketch_jul25a\sketch_jul25a.ino:1:
c:\Users\11984\Documents\Arduino\libraries\FastIMU\src/F_QMC5883L.hpp: In member function 'virtual int QMC5883L::setGyroRange(int)':
c:\Users\11984\Documents\Arduino\libraries\FastIMU\src/F_QMC5883L.hpp:45:40: error: no return statement in function returning non-void [-Werror=return-type]
45 | int setGyroRange(int range) override {};
| ^
c:\Users\11984\Documents\Arduino\libraries\FastIMU\src/F_QMC5883L.hpp: In member function 'virtual int QMC5883L::setAccelRange(int)':
c:\Users\11984\Documents\Arduino\libraries\FastIMU\src/F_QMC5883L.hpp:46:41: error: no return statement in function returning non-void [-Werror=return-type]
46 | int setAccelRange(int range) override {};
| ^
cc1plus.exe: some warnings being treated as errors
exit status 1
Compilation error: exit status 1
The file with compilation error is examples/Calibrated_HadesVR/Calibrated_HadesVR.ino
My current setup is preferences->compiler warnings->none
Is my problem?🤔
Thanks.
Does this library work with BMX160? and give our calibrated Quaternion output?
Because the sensor is not mentioned in the comments.
Thanks.
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.