You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Writing 80h to PWR_MGMT_1 register results in the MPU to restart in sleep mode. Instead 00h shall be written.
As shown below:
staticvoidmpu6050_reset() {
// Two byte reset. First byte register, second byte data// There are a load more options to set up the device in different ways that could be added here// uint8_t buf[] = {0x6B, 0x80};uint8_tbuf[] = {0x6B, 0x00}; // Clear the SLEEP bit, do not(!) RESET the device.i2c_write_blocking(i2c_default, addr, buf, 2, false);
}
The text was updated successfully, but these errors were encountered:
Writing 80h to PWR_MGMT_1 register results in the MPU to restart in sleep mode. Instead 00h shall be written.
As shown below:
The text was updated successfully, but these errors were encountered: