실제 USB 릴레이 제품의 하우징을 여는게 가장 어려운 작업이고 10개의 제품이 겉 디자인은 같은데 뚜껑의 체결방식이 접착제를 쓴 것이 있고 단순 홈끼리 맞물림으로 결착시킨 것이 있음. 물론 후자가 훨씬 깔끔하게 뚜껑을 해체할 수 있고 버튼 위치도 가장자리에서 3mm정도 차이가 있어 하우징 호환이 안됨.
ONENUO ZHQ01은 BK7231N모듈을 쓰고 이후 다른 업체에서 생산한 듯한 제품은 BK7238모듈을 사용하는 것도 차이.
HC-S050-WIFI, ONENUO ZHQ01
BK7231N
Pinout:TP3 - CENTP4 - TX0TP5 - RX0
GPIO:전원LED: P6릴레이: P7버튼: P24
T1-U-HL
BK7238
GPIO:전원LED: P26릴레이: P9버튼: P24
BK7231N ESPHome YAML
bk72xx:
board: generic-bk7231n-qfn32-tuya
binary_sensor:
- platform: gpio
pin:
number: P24
mode:
input: true
pullup: true
inverted: true
on_press:
- switch.toggle: relay
switch:
- platform: gpio
pin: P7
id: relay
light:
- platform: status_led
pin:
number: P6
BK7238 T1-U ESPHome YAML
bk72xx:
board: t1-u
family: BK7238
binary_sensor:
- platform: gpio
pin:
number: P24
mode:
input: true
pullup: true
inverted: true
on_press:
- switch.toggle: relay
switch:
- platform: gpio
pin: P9
id: relay
light:
- platform: status_led
pin:
number: P26

