Page 1 of 1

ESP-WROOM with MPU6050 design

Posted: Tue May 12, 2020 5:30 pm
by adesandr
Hello,

I have developed a design with an ESP-WROOM-32 and a MPU6050 products and I attached the schematic in the attachment
ESP_MAD_RevE.pdf
(45.17 KiB) Downloaded 537 times
.

The design is based on the esp32 adafruit feather schematic, with the introduction of one SPDT switch to power on/off the board and the interface with an MPU6050.

All your comments will be appreciated.

Thank you in advance for your help.

Regards.

Re: ESP-WROOM with MPU6050 design

Posted: Tue May 12, 2020 11:32 pm
by MCUism
adesandr wrote:
Tue May 12, 2020 5:30 pm
Hello,

I have developed a design with an ESP-WROOM-32 and a MPU6050 products and I attached the schematic in the attachment ESP_MAD_RevE.pdf.

The design is based on the esp32 adafruit feather schematic, with the introduction of one SPDT switch to power on/off the board and the interface with an MPU6050.

All your comments will be appreciated.

Thank you in advance for your help.

Regards.

Hi,

Looks great and neat to me.

Re: ESP-WROOM with MPU6050 design

Posted: Wed May 13, 2020 6:20 pm
by adesandr
Thanks for your reply.

Re: ESP-WROOM with MPU6050 design

Posted: Thu May 12, 2022 7:46 pm
by admaxtv
I have tried all headers in the MPU6050 library. I have no compilation errors UNTIL I try to use any class references to the MPU6050.

Code: Select all

  mpu.Initialize();

Presents no errors but the code simply does not operate.

I can add a line of code below it

Code: Select all

Serial.print("Hey this is working!")
but it will never appear on the serial monitor...because the program freezes at mpu.initialize().

I've tried various headers such as MPU6050_6Axis_MotionApps20.h and all other listed in the folder.
All will fail without warning.

---
I know that the devices are connected together properly because I can use the wire.h library to call the stream with success.

I want to use the MPU6050 class and functions so that I can loop through and address multiple gyroscopes. The library I found that is working (so far) is the TinyMPU6050.

Just a little FYI. If other code works but not the MPU6050 library, then its the library...not you.

Re: ESP-WROOM with MPU6050 design

Posted: Thu May 12, 2022 11:16 pm
by admaxtv
Hi,
None of the MPU6050 library functions work. They will compile without error but when you call anything in the class it will crash. For instance mpu.initiate() will crash the program.

I have found that TinyMPU6050 will work, but with limited functionality (ergo "Tiny").