eddy HODAK Posted January 1, 2024 Report Share Posted January 1, 2024 I am replacing all my projects with Arduino MEGA boards and have selected to use the Espressif ESP32-S3 dev kit. It appears that the <wire.h> called is linked to the Arduino Mega pins SDA = 21 & SCL = 22. Unfortunately GPIO pin 22 does not exist on the pin headers for Espressif and many other board makers. MPU6050 will not initialize because the I2C comms can't be established. What I seek is a version of the "wire.h" that calls all the relevant files yet permits defining SDA and SCL using something like wire.begin(SDA, SCL); where the pin numbers are previously defined as #define SDA 4 as an example. I want to run the example code "MPU6050_DMP6_using_DMP_V6v12.ino" The latest github repository does show an ESP32 flavor but it is for the ESP-IDE not the Arduino IDE ( I use PlatformIO IDE). Quote Link to comment Share on other sites More sharing options...
eddy HODAK Posted January 10, 2024 Author Report Share Posted January 10, 2024 After a very deep dive into the pins_arduino.h files for each mcu type, I located the SCL and SDA for the ESP32-S3 which are Pin 8 and Pin 9 respectively. Problem sorted as the library is now happy and I am working again. Quote Link to comment Share on other sites More sharing options...
Rutish Posted July 2, 2024 Report Share Posted July 2, 2024 Can you please Send your sketch file please I also tried pin 8 and 9 I ESP32-S3-WROOM-1 still not working with MPU 6050 please send your file for reference and also please if possible link of the library you used in that sketch Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.