Page 1 of 2

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

Posted: Fri Apr 07, 2017 10:08 am
by Reeshma
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..

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

Posted: Sat Apr 08, 2017 6:09 pm
by Scalpel78

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

Posted: Mon Apr 10, 2017 4:00 am
by Reeshma
Hi , am tried with the above code , i did'n get any sort of output, can anyone please help me ..?

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

Posted: Mon Apr 10, 2017 8:46 am
by ESP_Kewal
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.

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

Posted: Mon Apr 10, 2017 9:01 am
by QuangPhu
Sorry, but what exactly do you want?
Because with code of Kolban above, you can read raw data from MPU6050 already.

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

Posted: Mon Apr 10, 2017 9:20 am
by Reeshma
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..?

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

Posted: Thu Apr 13, 2017 3:04 am
by kolban
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?

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

Posted: Thu Apr 13, 2017 8:06 am
by preetam
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

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

Posted: Tue Jun 11, 2019 4:27 pm
by osesp32
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

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

Posted: Tue Jun 11, 2019 8:49 pm
by chegewara