Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??

Reeshma
Posts: 37
Joined: Tue Mar 28, 2017 12:40 pm

Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??

Postby Reeshma » Fri Apr 07, 2017 10:08 am

Am tried with the arduino , it works well, but now i want to interface the mpu 6050 with esp 32 . am a beginner to this platform. can anyone help me with the sample code would be greatly appreciated..


Reeshma
Posts: 37
Joined: Tue Mar 28, 2017 12:40 pm

Re: Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??

Postby Reeshma » Mon Apr 10, 2017 4:00 am

Hi , am tried with the above code , i did'n get any sort of output, can anyone please help me ..?

ESP_Kewal
Posts: 4
Joined: Mon Apr 10, 2017 8:38 am
Location: India/China

Re: Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??

Postby ESP_Kewal » Mon Apr 10, 2017 8:46 am

Hi Reeshma,
You can extract and copy this to example folder of esp_idf. The MPU 6050 code is currently not in official release, but it will soon be.
Attachments
mpu6050.rar
(5.94 KiB) Downloaded 1780 times
Regards,
Kewal Shah

QuangPhu
Posts: 5
Joined: Wed Feb 22, 2017 2:16 am

Re: Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??

Postby QuangPhu » Mon Apr 10, 2017 9:01 am

Sorry, but what exactly do you want?
Because with code of Kolban above, you can read raw data from MPU6050 already.

Reeshma
Posts: 37
Joined: Tue Mar 28, 2017 12:40 pm

Re: Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??

Postby Reeshma » Mon Apr 10, 2017 9:20 am

Hi , now i can able to read only the accelerometer-x values and the y and z values remains 65535 throughout the process , can anyone say , what changes will am need to do..?

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??

Postby kolban » Thu Apr 13, 2017 3:04 am

Right now we don't know whether there is a software mistake or an error connecting your MPU6050 to the ESP32. Can you include some pictures and schematics of how you have attached your ESP32 and MPU6050? Do the pins you have chosen on the ESP32 connection to the MPU6050 match what the software expects?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

preetam
Posts: 49
Joined: Thu Jan 26, 2017 2:31 pm
Location: Germany

Re: Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??

Postby preetam » Thu Apr 13, 2017 8:06 am

Reeshma wrote:Hi , now i can able to read only the accelerometer-x values and the y and z values remains 65535 throughout the process , can anyone say , what changes will am need to do..?
if there is a stop i2c command after reading accelerometer-x values , may be the y and z values show 65535 . please remove the i2c stop command and read y and z. again without any stop between the reads and also no stop command after the z read. This is valid if all are present in the same register in the i2c slave

osesp32
Posts: 5
Joined: Thu May 31, 2018 7:04 pm

Re: Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??

Postby osesp32 » Tue Jun 11, 2019 4:27 pm

Hi there,
C-programm is ok - but, do you have an .ino code file to use it with the Arduino IDE an ESP32 DevKitC Board to get data from the MPU6050? It can be very simple for understanding :D - perhaps with the right .h- and .cpp-files?
Thanks!
Oli


Who is online

Users browsing this forum: No registered users and 101 guests