Skip to content

aalaei/esphome-icm42670

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ESPhome Custom Component for ESP32-S3-BOX-3

This repository contains a custom ESPhome component designed for the ESP32-S3-BOX-3, utilizing the ICM42670 sensor.

Features

  • Integration with the ICM42670(ICM42607P) sensor.
  • Easy configuration within ESPhome.
  • Supports real-time motion and orientation data.

Installation

  1. Clone this repository into your ESPhome project directory:
    git clone https://github.com/aalaei/esphome-icm42670.git
  2. Add the custom component to your ESPhome configuration:
    external_components:
      - source:
          type: local
          path: components
        components: [ icm42670 ] 

or directly

    external_components:
      - source:
          type: git
          url: https://github.com/aalaei/esphome-icm42670.git
          ref: main
        components: [ icm42670 ]

Configuration Example

sensor:
  - platform: icm42670
    i2c_id: bus_a
    update_interval: 200ms
    id: icm
    address: 0x68
    accel_x:
      name: "ICM42607P Acceleration X"
      unit_of_measurement: "g"
      accuracy_decimals: 3
    accel_y:
      name: "ICM42607P Acceleration Y"
      unit_of_measurement: "g"
      accuracy_decimals: 3
    accel_z:
      name: "ICM42607P Acceleration Z"
      unit_of_measurement: "g"
      accuracy_decimals: 3
    gyro_x:
      name: "ICM42607P Gyroscope X"
      unit_of_measurement: "°/s"
      accuracy_decimals: 2
    gyro_y:
      name: "ICM42607P Gyroscope Y"
      unit_of_measurement: "°/s"
      accuracy_decimals: 2
    gyro_z:
      name: "ICM42607P Gyroscope Z"
      unit_of_measurement: "°/s"
      accuracy_decimals: 2
    temperature:
      name: "ICM42607P Temperature"
      unit_of_measurement: "°C"
      accuracy_decimals: 2
      device_class: "temperature"
    pitch:
      name: "ICM42607P Pitch"
      unit_of_measurement: "°"
      accuracy_decimals: 2
    roll:
      name: "ICM42607P Roll"
      unit_of_measurement: "°"
      accuracy_decimals: 2

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributions

Contributions are welcome! Feel free to open issues or submit pull requests.

References

About

esphome external_component for ism42670 gyroscope / accerometer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 79.3%
  • Python 20.7%