Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??
Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??
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 ..??
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 ..??
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.
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 1781 times
Regards,
Kewal Shah
Kewal Shah
Re: Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??
Sorry, but what exactly do you want?
Because with code of Kolban above, you can read raw data from MPU6050 already.
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 ..??
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 ..??
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
Re: Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??
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 slaveReeshma 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..?
Re: Hi , is there any sample code to interface the mpu-6050 with the esp32 ..??
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 - perhaps with the right .h- and .cpp-files?
Thanks!
Oli
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 - perhaps with the right .h- and .cpp-files?
Thanks!
Oli
Who is online
Users browsing this forum: Baidu [Spider], ghmyers and 78 guests