Problem Gyroscope MPU6050

Hi everyone,

I got a problem with some librarys.. for the gyroscope MPU6050 I installed I2Cdev and some others for example emlib-master, in one is a problem its says "#error "em_device.h: PART NUMBER undefined"" I tryied to install others librarys but the problem stay :confused:

Can someone help me please ?

Post a link to where you downloaded the libraries from.

What do you have selected in the Tools > Board menu?

Thanks for the answer,
Here is the link where I downloaded the emlib library emlib library

And in Tools >Board I selected Arduino Mega 2560

noedu86:
Thanks for the answer,
Here is the link where I downloaded the emlib library emlib library

Are you sure? That repository doesn’t contain a file named em_device.h or that error message and it would require some modifications to even have a possibility of working with the Arduino IDE.

It’s much more helpful if you provide the FULL error output. When you encounter an error you will see a button on the right side of the orange bar “Copy error messages”. Click that button and then paste the error messages here using code tags (</> button on the toolbar).

I think this was one of the links that I used, but now i fixed the problem : I think my librarys where wrong because I found a tutorial that worked well : the link

Thanks for help :slight_smile: