kriswiner / IIS3DWB

Arduino sketches for ST's IIS3DWB vibration analyzer accelerometer
21 stars 12 forks source link

What major modifications would be needed in the code to use it with ESP32? #7

Open Arakistech opened 1 year ago

Arakistech commented 1 year ago

What major modifications would be needed in the code to use it with ESP32? Thanks

kriswiner commented 1 year ago

Well, we are using STM32, which is an ARM device and we are taking advantage of standard ARM APIs for the FFT. ESP32 is not ARM. So you would have to find an FFT library that works efficiently on ESP32. Other than that, I think the rest of the sketch should work on the ESP32, maybe with slight modifications for I2C.

On Wed, Jan 4, 2023 at 5:48 AM Arakistech @.***> wrote:

What major modifications would be needed in the code to use it with ESP32? Thanks

— Reply to this email directly, view it on GitHub https://github.com/kriswiner/IIS3DWB/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKUUKD4QBNOGZ26RTRLWQV5RFANCNFSM6AAAAAATQ2CTPU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Arakistech commented 1 year ago

And would this code be directly portable to STM32wl55 mcu?

kriswiner commented 1 year ago

No idea, never done this...but since WL is an STM32, should work with minor mods...if there is an Arduino core for the WL...

On Fri, Jan 6, 2023 at 1:07 AM Arakistech @.***> wrote:

And would this code be directly portable to STM32wl55 mcu?

— Reply to this email directly, view it on GitHub https://github.com/kriswiner/IIS3DWB/issues/7#issuecomment-1373372920, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKWP5CJX346WNWJTWM3WQ7ODZANCNFSM6AAAAAATQ2CTPU . You are receiving this because you commented.Message ID: @.***>