Skip to content

Instantly share code, notes, and snippets.

@alva-seal
Last active April 27, 2019 09:26
Show Gist options
  • Select an option

  • Save alva-seal/b5c3a225d6b7b79d7d609a31bc45ce17 to your computer and use it in GitHub Desktop.

Select an option

Save alva-seal/b5c3a225d6b7b79d7d609a31bc45ce17 to your computer and use it in GitHub Desktop.
esphome_mpu_6050.yaml
esphome:
name: mpu6050
platform: ESP32
board: nodemcu-32s
debug:
# Enable logging
logger:
level: VERY_VERBOSE
# Enable Home Assistant API
i2c:
sda: 21
scl: 22
frequency: 100kHz
scan: False
sensor:
- platform: mpu6050
address: 0x68
accel_x:
name: 'MPU6050 Accel X'
accel_y:
name: 'MPU6050 Accel Y'
accel_z:
name: 'MPU6050 Accel z'
gyro_x:
name: 'MPU6050 Gyro X'
gyro_y:
name: 'MPU6050 Gyro Y'
gyro_z:
name: 'MPU6050 Gyro z'
temperature:
name: 'MPU6050 Temperature'
update_interval: 2s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment