Sensor ID 읽기

Step 1. ETH-01D I2C command 전송

  • Device에서 command(i2c Address(0x44),0xa0,0x00,0x00)를 ETH-01D로 전송

Step 2. 상위 Sensor ID 요청 Command

  • Device에서 Command((i2c Address+Write bit),0x1E(ID 상위 바이트), 0x00, 0x00)를 ETH-01D로 전송 후 120 μs 기다림

Step 2.1. 상위 Sensor ID 응답

  • Sensor ID 상위 바이트(16bit)를 읽음

Step 3. 하위 Sensor ID 요청 Command

  • Device에서 Command ((i2c Address+Write bit),0x1F(ID 하위 바이트), 0x00, 0x00)를 ETH-01D로 전송 후 120 μs 기다림

Step 3.1 하위 Sensor ID 응답

  • Device에서 Command ((i2c Address+Write bit),0x1F(ID 하위 바이트), 0x00, 0x00)를 ETH-01D로 전송 후 120 μs 기다림

소스 코드

  • Sensor id 읽기 시리얼 모니터

Last updated