kriswiner / ESP32

Arduino sketches for the ESP32
163 stars 46 forks source link

general esp32 / mpu question #15

Open razor950 opened 6 years ago

razor950 commented 6 years ago

Hello

I have an esp32 from HiLetgo. I also have an MPU 9255. I want to know if the following log shows a working 9255. I mostly left it still on the table.

https://nopaste.xyz/?35c2cef5d570a4f6#rl1+EIpTHcsxTk90dUk3Zn9v7aqtTQD36r6SvTjkHDM=

kriswiner commented 6 years ago

looks OK, but did you move the sensor alla round during the mag calibration? Should do.

On Tue, Mar 20, 2018 at 5:08 PM, r00tz notifications@github.com wrote:

Hello

I have an esp32 from HiLetgo. I also have an MPU 9255. I want to know if the following log shows a working 9255. I mostly left it still on the table.

https://nopaste.xyz/?35c2cef5d570a4f6#rl1+EIpTHcsxTk90dUk3Zn9v7aqtTQD36r 6SvTjkHDM=

— 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/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qoB16S3_BquEEBRoRVT8hV4u9Quxks5tgZntgaJpZM4Sy11S .

razor950 commented 6 years ago

yes, I usually move it, I did not do it that time.

I need to poke your head then, I've wanted to test this code and so I got the esp32 to spit out the quaternion values like he did. https://github.com/virtuellerealitaet/WearableIMU/

I then use his unreal project to get the rotating cube to rotate but it seems to randomly spew data massively when I don't move the device and if I move it it doesn't really register due to the amount of data being sent / or spammed in this case.

kriswiner commented 6 years ago

Not a sensor problem...

On Tue, Mar 20, 2018 at 6:09 PM, r00tz notifications@github.com wrote:

yes, I usually move it, I did not do it that time.

I need to poke your head then, I've wanted to test this code and so I got the esp32 to spit out the quaternion values like he did. https://github.com/virtuellerealitaet/WearableIMU/

I then use his unreal project to get the rotating cube to rotate but it seems to randomly spew data massively when I don't move the device and if I move it it doesn't really register due to the amount of data being sent / or spammed in this case.

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

razor950 commented 6 years ago

Scanning... I2C device found at address 0x68 ! done

MPU9250 9-axis motion sensor... MPU9250 I AM FF I should be 73 Could not connect to MPU9250: 0xFF

I am getting this now and I have tried a few different cables :(

kriswiner commented 6 years ago

Are you using 0x68 as the MPU9250 address?

I don't quite understand since the last time everything was working. What did you change?

On Tue, Mar 20, 2018 at 10:22 PM, r00tz notifications@github.com wrote:

Scanning... I2C device found at address 0x68 ! done

MPU9250 9-axis motion sensor... MPU9250 I AM FF I should be 73 Could not connect to MPU9250: 0xFF

I am getting this now and I have tried a few different cables :(

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

razor950 commented 6 years ago

hey, sorry

I got it all working, my issue with the code I was having trouble with was that the delay of 10 was wrong when i2c clock speed is 400 kHz.