Pin names
Voltage supply
Ground
I2C clock line
I2C data line
Unused - not currently implemented in the simulator
Unused - not currently implemented in the simulator
Address select pin
Interrupt
The XDA and XCL pins are not currently implemented in the simulator. If you need them, please open a request, and describe your use case.
Attributes
Initial x acceleration value (g)
Initial y acceleration value (g)
Initial z acceleration value (g)
Initial x rotation value (deg/sec)
Initial y rotation value (deg/sec)
Initial z rotation value (deg/sec)
Initial temperature value (celsius)
Units
All the acceleration values (x/y/z) use g-force units, where 1g = 9.80665 m/s². The gyroscope measures angular rotation and returns the number of degrees per second.Arduino code example
The example below uses the Adafruit MPU6050 library to read and display the acceleration values from the sensor. On Arduino Uno, connect the SDA pin to A4, and the SCL pin to A5.Automation controls
The mpu6050 sensor can be controlled using Automation Scenarios. The names of the controls match the names of the attributes defined above:Set the x acceleration value (g)
Set the y acceleration value (g)
Set the z acceleration value (g)
Set the x rotation value (deg/sec)
Set the y rotation value (deg/sec)
Set the z rotation value (deg/sec)
Set the temperature value (celsius)