Git Product home page Git Product logo

fastimu's People

Contributors

alanvictor48 avatar deemdeem52 avatar jx5s avatar liquidcgs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fastimu's Issues

How to change sample rate

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

Support for BMI160+BMM150

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?

MPU6886::calibrateAccelGyro() failure

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

image

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)

MPU9250 crashes.. Here's the fix :)

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!

Hope Support BMI270

I have a BMI270, want it word on Arduino nano, other library is too big, hex too large, can't upload to Nano.

The magnetometer issue in F_MPU6500.cpp

The magnetometer for my unit cannot use the the set pass mode from the code. Hence I suggest we used this code

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.

Not Working With LSM6DSL

I am using arduino nano 33 iot board and when IMUIdentifier Example is run,
Output is
=========== IMU Identifier =========== No IMU detected ======================================

So I am thinking if all the IMU's structure components are assigned correctly?
IMU {Address1, Address2, Register, ExpectedID, IMUName, IMUCapabilities} ==> {0x6B, 0x6A, 0x0F, 0x6A, "LSM6DSL", "3A,3G"}

Divide by Zero during Calibration

Using FastIMU 1.2.6, Calibrated_sensor_output example, on Arduino 2.3.2 with MPU6886 built into M5StickC Plus2. Runs fine if I comment out the Calibration line. If I let it try to calibrate I get:

FastIMU calibration & data example
Keep IMU level.
Guru Meditation Error: Core 1 panic'ed (IntegerDivideByZero). Exception was unhandled.

Core 1 register dump:
PC : 0x400d1d0e PS : 0x00060c30 A0 : 0x800d18a0 A1 : 0x3ffb21f0
A2 : 0x00000000 A3 : 0x3ffc1068 A4 : 0x00000000 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x00000002 A11 : 0x00000072 A12 : 0x00000002 A13 : 0x3ffb2200
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x0000001c EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x4008700c LEND : 0x40087022 LCOUNT : 0xffffffff

Backtrace: 0x400d1d0b:0x3ffb21f0 0x400d189d:0x3ffb2230 0x400d5982:0x3ffb2290

ELF file SHA256: 5ee44eb45d02f904

Rebooting...


Update 6/3/2024
The Calibration works fine with an IMU6050 connected via I2c on a Wemos D1 Mini.

Does this work with BMX160?

Does this library work with BMX160? and give our calibrated Quaternion output?

Because the sensor is not mentioned in the comments.

Thanks.

An error occurred while compiling

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.

MPU-6050 not recognized

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)
image

(Image of output from the IMU identifier)
image

Units of Measurement

What units of measurement does this library output? Is the acceleration in Gs or m/s^2? Is the gyro data in rad/s?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.