ESP32 - AirTag Documentation
Loading...
Searching...
No Matches
MPU-6500 Common Values

Useful constants for MPU-6500 operation. More...

Macros

#define WHO_AM_I_MPU6500   0x70
#define WHO_AM_I_MPU9250   0x71

Power Management 1 bits

#define PWR_DEVICE_RESET   0x80
#define PWR_SLEEP   0x40
#define PWR_CYCLE   0x20
#define PWR_CLKSEL_INTERNAL   0x00
#define PWR_CLKSEL_PLL_XGYRO   0x01
#define PWR_CLKSEL_PLL_YGYRO   0x02
#define PWR_CLKSEL_PLL_ZGYRO   0x03

Detailed Description

Useful constants for MPU-6500 operation.

Macro Definition Documentation

◆ PWR_CLKSEL_INTERNAL

#define PWR_CLKSEL_INTERNAL   0x00

Internal 20 MHz oscillator

◆ PWR_CLKSEL_PLL_XGYRO

#define PWR_CLKSEL_PLL_XGYRO   0x01

PLL with X gyro reference

◆ PWR_CLKSEL_PLL_YGYRO

#define PWR_CLKSEL_PLL_YGYRO   0x02

PLL with Y gyro reference

◆ PWR_CLKSEL_PLL_ZGYRO

#define PWR_CLKSEL_PLL_ZGYRO   0x03

PLL with Z gyro reference

◆ PWR_CYCLE

#define PWR_CYCLE   0x20

Cycle between sleep/active

◆ PWR_DEVICE_RESET

#define PWR_DEVICE_RESET   0x80

Reset entire device

◆ PWR_SLEEP

#define PWR_SLEEP   0x40

Enter sleep mode

◆ WHO_AM_I_MPU6500

#define WHO_AM_I_MPU6500   0x70

Expected WHO_AM_I response for MPU-6500

◆ WHO_AM_I_MPU9250

#define WHO_AM_I_MPU9250   0x71

Expected WHO_AM_I response for MPU-9250