Go Down

Topic: ESP8266 + MPU6050 6-axis MotionTracking device (Read 7694 times) previous topic - next topic

trackerj

Dec 19, 2015, 12:53 pm Last Edit: Dec 21, 2015, 07:26 am by trackerj
As been requested by many people that have difficulties to use the MPU6050 Modules, I've done a more detailed ESP8266 Video Tutorial related with the MPU6050 GY-521 Module initialisation and basic usage.

   It is a detailed, step-by-step tutorial, showing all the needed init stages and tests for a proper and smooth usage of the MPU6050 GY-521 module.

https://www.youtube.com/watch?v=DDzIQ_6IQBY


Related Article: ESP8266 - MPU6050 GY-521 Module initialisation and basic usage


Have a nice, pleasant and relaxing Christmas Holliday!

http://www.esp8266-projects.com

trackerj

UPDATE: fixed broken Youtube link, should be OK now.
http://www.esp8266-projects.com

psycho82

Good trackerj!!!
I have a question: the interrupt line on the GY-521 board, it is not connected? The INT signal says to host that the data are ready for reading, right? The ESP8266 doesn't have another digital input.

trackerj

Good trackerj!!!
I have a question: the interrupt line on the GY-521 board, it is not connected? The INT signal says to host that the data are ready for reading, right? The ESP8266 doesn't have another digital input.

The example was done as a basic MPU6050 Board test, as a lot fo people had problems with I2C init and communication with the MPU6050 module.
Nobody will stop you to read RAW data without using the INT signal.
If you want DMP & stuff...it's another story :)

 

http://www.esp8266-projects.com

psycho82

Of course, I thought to connect it at ESP module and use DPM. The RAW data require a post processing operations. I never used ESP module, i'm studing it before. Can you suggest me the best method in according on your experience?

Tnx.

trackerj

Of course, I thought to connect it at ESP module and use DPM. The RAW data require a post processing operations. I never used ESP module, i'm studing it before. Can you suggest me the best method in according on your experience?

Tnx.
If you want to use DPM then you can use a extra ESP8266 pin for INT. Just attach the interrupt on the desired one. Also read carefully the datasheet, things become a liitle bit more complicated.
If of interest, I can do another tutorial about.
Now already in the queue the request for MPU6050 Temperature reading.
http://www.esp8266-projects.com

psycho82

I could read when the INT line (GY-521) is HIGH (on rise time) and stop it on falling time, like as a classical MPU-6050 Arduino Sketch provided with i2clib-dev. According to datasheet, i could connect SLC-->IO14, SDA-->IO2 and INT-->IOx.
Right?

trackerj

I could read when the INT line (GY-521) is HIGH (on rise time) and stop it on falling time, like as a classical MPU-6050 Arduino Sketch provided with i2clib-dev. According to datasheet, i could connect SLC-->IO14, SDA-->IO2 and INT-->IOx.
Right?
Yes, more or less the same as on Arduino. I will use GPIO4 & 5 for I2C BUS and GPIO12 for INT (ESP-12 Module on a nEXT Evo Board like this one: http://www.esp8266-projects.com/2015/11/new-esp8266-devboard-cbdb-next-evo.html.
http://www.esp8266-projects.com

vbiajo

I am trying to use this code, but my program returns "Device not found !!" on the status_MPU function, because 'c' is false. I run a similar program with Arduino with the same address (0x68) and it worked well. Can you elucidate me?

Go Up