Model Library Gy 521 Mpu6050l Upd 2021 — Isis Proteus
void setup() Wire.begin(); Serial.begin(9600); // Wake up sensor Wire.beginTransmission(MPU6050_ADDR); Wire.write(0x6B); // PWR_MGMT_1 register Wire.write(0x00); // Set to 0 to wake Wire.endTransmission(true);
: Supports programmable ranges for acceleration ( ±2gplus or minus 2 g ±16gplus or minus 16 g ) and rotational velocity ( Isis Proteus Model Library Gy 521 Mpu6050l UPD
Here is a simple example using Arduino: