ESP-WROOM with MPU6050 design

adesandr
Posts: 22
Joined: Sat May 05, 2018 10:51 am

ESP-WROOM with MPU6050 design

Postby adesandr » 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
(45.17 KiB) Downloaded 450 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.

MCUism
Posts: 52
Joined: Mon Jul 15, 2019 9:25 am

Re: ESP-WROOM with MPU6050 design

Postby MCUism » Tue May 12, 2020 11:32 pm

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.

adesandr
Posts: 22
Joined: Sat May 05, 2018 10:51 am

Re: ESP-WROOM with MPU6050 design

Postby adesandr » Wed May 13, 2020 6:20 pm

Thanks for your reply.

admaxtv
Posts: 2
Joined: Thu May 12, 2022 6:22 pm

Re: ESP-WROOM with MPU6050 design

Postby admaxtv » Thu May 12, 2022 7:46 pm

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.

admaxtv
Posts: 2
Joined: Thu May 12, 2022 6:22 pm

Re: ESP-WROOM with MPU6050 design

Postby admaxtv » Thu May 12, 2022 11:16 pm

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").

Who is online

Users browsing this forum: No registered users and 54 guests