Skip to content

Matter pressure measurement sensor (ESP32 + BMP180) example

License

Notifications You must be signed in to change notification settings

YOGYUI/matter-esp32-bmp180

Repository files navigation

Matter Barometer Example (ESP32 + BMP180)

Matter 기압계 센서 예제 프로젝트
다음 Matter 클러스터에 대한 코드 구현 방법을 알아본다

  • Pressure Measurement (Cluster Id: 0x0403)

2024년 2월 22일 기준 Apple Home에서는 Pressure Sensor Device Type 지원하지 않음

Software (Matter)

1개의 Endpoint가 아래와 같이 생성된다.

  1. Endpoint ID 1 Device Type: Pressure Sensor (Classification ID: 0x0305)
    [Clusters]
    • Pressure Measurement (Cluster ID: 0x0403)
      [Attributes]
      • Measured Value (Attribute ID: 0x0000)
      • Min Measured Value (Attribute ID: 0x0001)
      • Max Measured Value (Attribute ID: 0x0002)

Hardware

BMP180: I2C 통신 방식의 기압계 센서 IC 사용


I2C GPIO 핀번호 변경은 /main/include/definition.h에서 아래 항목을 수정
default: SDA = GPIO18 / SCL = GPIO19

#define GPIO_PIN_I2C_SCL 19
#define GPIO_PIN_I2C_SDA 18

SDK Version

Helper Scripts

SDK 클론 및 설치

$ source ./scripts/install_sdk.sh

SDK (idf.py) 준비

$ source ./scripts/prepare_sdk.sh

Build & Flash Firmware

  1. Factory Partition (Matter DAC)
    $ source ./scripts/flash_factory_dac_provider.sh
  2. Configure project
    $ idf.py set-target esp32
  3. Build Firmware
    $ idf.py build
  4. Flash Firmware
    $ idf.py -p ${seiral_port} flash monitor

QR Code for commisioning

qrcode.png

References

Matter 압력 측정 클러스터 개발 예제 (ESP32)

About

Matter pressure measurement sensor (ESP32 + BMP180) example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published