kriswiner / ESP32

Arduino sketches for the ESP32
163 stars 46 forks source link

esp32 mpu9250 #14

Open carbonadam opened 6 years ago

carbonadam commented 6 years ago

Any chance for a version without the sensor hub? eek:)

kriswiner commented 6 years ago

A version of what?

On Fri, Mar 16, 2018 at 2:16 PM, Adam notifications@github.com wrote:

Any chance for a version without the sensor hub? eek:)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/ESP32/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qrKcYjbEqM2iWK8OBE1165MM-KTlks5tfCvLgaJpZM4SucvD .

carbonadam commented 6 years ago

A sketch for the mpu9250 for the esp32 using the Madgwick and/or Mahony filters

kriswiner commented 6 years ago

https://github.com/kriswiner/ESP8285/tree/master/MPU9250

close enough

On Fri, Mar 16, 2018 at 2:50 PM, Adam notifications@github.com wrote:

A sketch for the mpu9250 for the esp32 using the Madgwick and/or Mahony filters

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/ESP32/issues/14#issuecomment-373854528, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qofNWXCuZDObEaaX9_Dh14Aae-Xrks5tfDObgaJpZM4SucvD .

carbonadam commented 6 years ago

I managed to get this one of yours to work https://github.com/kriswiner/MPU9250/blob/master/MPU9250BasicAHRS.ino

Though its not written specifically for the esp32. I wonder how this compares to the sensor fusion hub output?

kriswiner commented 6 years ago

4 degree heading accuracy rather than 2 degree with the EM7180.

On Fri, Mar 16, 2018 at 3:11 PM, Adam notifications@github.com wrote:

I managed to get this one of yours to work https://github.com/kriswiner/MPU9250/blob/master/MPU9250BasicAHRS.ino

Though its not written specifically for the esp32. I wonder how this compares to the sensor fusion hub output?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/ESP32/issues/14#issuecomment-373858834, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qr06jb3U1vMY9tYs0wGhd2-CHps8ks5tfDiWgaJpZM4SucvD .

carbonadam commented 6 years ago

Outstanding:) Any increases in accuracy if I was to use the floating point available on the esp32? Preferring this for the moment over the bno55.

kriswiner commented 6 years ago

Accuracy will depend more on how well you calibrate the sensor, but if you can run the fusin algorith at >> 1 kHz this can only help.

The BNO055 is not a good solution.

On Fri, Mar 16, 2018 at 3:48 PM, Adam notifications@github.com wrote:

Outstanding:) Any increases in accuracy if I was to use the floating point available on the esp32? Preferring this for the moment over the bno55.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/ESP32/issues/14#issuecomment-373865277, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qr8di1_TCr7qJt7CarVjPg9wmJRqks5tfEFDgaJpZM4SucvD .

carbonadam commented 6 years ago

Right Calibration. Any tips to calibration using the code version I used?

kriswiner commented 6 years ago

Use the code version I linked to.

On Fri, Mar 16, 2018 at 3:57 PM, Adam notifications@github.com wrote:

Right Calibration. Any tips to calibration using the code version I used?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/ESP32/issues/14#issuecomment-373866746, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qj0Qkn5NLy-z2KIEcHUdmJ_57pbmks5tfENWgaJpZM4SucvD .

carbonadam commented 6 years ago

Hmm, compiling that seems to give me a bunch of problems with the librarys..any hints?

kriswiner commented 6 years ago

Put the quaternion filter file in the main sketch tab?

On Fri, Mar 16, 2018 at 4:47 PM, Adam notifications@github.com wrote:

Hmm, compiling that seems to give me a bunch of problems with the librarys..any hints?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/ESP32/issues/14#issuecomment-373873890, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qhnuqsM-JO6fJu6O_j3WwWEpQIcFks5tfE8jgaJpZM4SucvD .

carbonadam commented 6 years ago

more todo with the ESP8266WebServer.h: and queue.h..file not found..even though I copied in those libs

kriswiner commented 6 years ago

Commen out the offending lines then.

On Fri, Mar 16, 2018 at 4:58 PM, Adam notifications@github.com wrote:

more todo with the ESP8266WebServer.h: and queue.h..file not found..even though I copied in those libs

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/ESP32/issues/14#issuecomment-373875191, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qm3oZF4XdVLh705JYDkmXmobYNa7ks5tfFGggaJpZM4SucvD .

carbonadam commented 6 years ago

got as far as commenting out the offending temperature and pressure reading..it compiles but no sensor readings updating ax = 0.00 ay = 0.00 az = 0.00 mg gx = 0.00 gy = 0.00 gz = 0.00 deg/s mx = 0 my = 0 mz = 0 mG q0 = 1.00 qx = 0.00 qy = 0.00 qz = 0.00 Gyro temperature is 28.7 degrees C Digital temperature value = 0.00 C Digital temperature value = 32.00 F Digital pressure value = 0.00 mbar Altitude = 145366.45 feet Yaw, Pitch, Roll: 13.80, 0.00, 0.00 Grav_x, Grav_y, Grav_z: 0.00, 0.00, 1000.00 mg Lin_ax, Lin_ay, Lin_az: 0.00, 0.00, -1000.00 mg rate = 158308.53 Hz ax = 0.00 ay = 0.00 az = 0.00 mg gx = 0.00 gy = 0.00 gz = 0.00 deg/s mx = 0 my = 0 mz = 0 mG q0 = 1.00 qx = 0.00 qy = 0.00 qz = 0.00 Gyro temperature is 28.7 degrees C Digital temperature value = 0.00 C Digital temperature value = 32.00 F Digital pressure value = 0.00 mbar Altitude = 145366.45 feet Yaw, Pitch, Roll: 13.80, 0.00, 0.00 Grav_x, Grav_y, Grav_z: 0.00, 0.00, 1000.00 mg Lin_ax, Lin_ay, Lin_az: 0.00, 0.00, -1000.00 mg rate = 158305.33 Hz

kriswiner commented 6 years ago

Use the calibration functions then in the first sketch that you got to work.

On Fri, Mar 16, 2018 at 5:30 PM, Adam notifications@github.com wrote:

got as far as commenting out the offending temperature and pressure reading..it compiles but no sensor readings updating ax = 0.00 ay = 0.00 az = 0.00 mg gx = 0.00 gy = 0.00 gz = 0.00 deg/s mx = 0 my = 0 mz = 0 mG q0 = 1.00 qx = 0.00 qy = 0.00 qz = 0.00 Gyro temperature is 28.7 degrees C Digital temperature value = 0.00 C Digital temperature value = 32.00 F Digital pressure value = 0.00 mbar Altitude = 145366.45 feet Yaw, Pitch, Roll: 13.80, 0.00, 0.00 Grav_x, Grav_y, Grav_z: 0.00, 0.00, 1000.00 mg Lin_ax, Lin_ay, Lin_az: 0.00, 0.00, -1000.00 mg rate = 158308.53 Hz ax = 0.00 ay = 0.00 az = 0.00 mg gx = 0.00 gy = 0.00 gz = 0.00 deg/s mx = 0 my = 0 mz = 0 mG q0 = 1.00 qx = 0.00 qy = 0.00 qz = 0.00 Gyro temperature is 28.7 degrees C Digital temperature value = 0.00 C Digital temperature value = 32.00 F Digital pressure value = 0.00 mbar Altitude = 145366.45 feet Yaw, Pitch, Roll: 13.80, 0.00, 0.00 Grav_x, Grav_y, Grav_z: 0.00, 0.00, 1000.00 mg Lin_ax, Lin_ay, Lin_az: 0.00, 0.00, -1000.00 mg rate = 158305.33 Hz

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/ESP32/issues/14#issuecomment-373879065, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qhwXgjLroh-PEwKWw1YSrs65c-Vlks5tfFkhgaJpZM4SucvD .