코딩게시판

esp32 c3 와 5V 릴레이 구성 스위치 esphome 전원 스위치 구성하기

작성자 정보

  • 최고관리자 작성
  • 192.♡.0.1 아이피
  • 작성일

컨텐츠 정보


  • 링크

  • 첨부


  • 본문

    esp32 c3 와 5V 릴레이 구성 스위치 esphome 전원 스위치 구성하기

    IPEX 안테나가 포함된 새로운 ESP32-C3 SuperMini V2 Plus IOT 개발 보드 ESP32 C3 WiFi Bluetooth MicroPython Arduino 호환

    https://ko.aliexpress.com/item/1005007468374281.html


    3232235521_1780583530.8257.png



    3232235521_1780583524.8985.png

    DC 5V 12V 24V 1 2 4 6 8 채널 릴레이 모듈 보드 실드(옵토커플러 포함)/Arduino Raspberry용 고/저 레벨 트리거

    https://ko.aliexpress.com/item/1005007003070916.html?


    3232235521_1780583776.249.png



    구성

    3232235521_1780592042.8725.png


    3232235521_1780592058.4553.png


    <details>

    light:
      - platform: binary
        name: "LED_Light"
        output: output_gpio8_led
        id: led_light_gpio8
        restore_mode: ALWAYS_ON

    output:
      - platform: gpio
        id: output_gpio8_led
        pin:
          number: GPIO8
          inverted: true

    #  
    switch:
      # 릴레이 출력 1 - GPIO4
      - platform: gpio
        pin:
          number: GPIO4
          mode: OUTPUT
          inverted: true
        name: "Relay_O4"
        id: relay_o4
        restore_mode: ALWAYS_OFF

      # 릴레이 출력 2 - GPIO5
      - platform: gpio
        pin:
          number: GPIO3
          mode: OUTPUT
          inverted: true
        name: "Relay_O3"
        id: relay_o3
        restore_mode: ALWAYS_OFF

    binary_sensor:
      - platform: status
        name: "Connection Status"
     
      # 접점 스위치 1 → Relay_O4 토글
      - platform: gpio
        name: "Relay_O4 Toggle Switch"
        id: relay_o4_toggle_sw
        pin:
          number: GPIO6   # 권장 핀, GPIO6 대신 사용
          mode:
            input: true
            pullup: true
          inverted: true
        filters:
          - delayed_on: 30ms
          - delayed_off: 30ms
        on_press:
          then:
            - switch.toggle: relay_o4

      # 접점 스위치 2 → relay_o3 토글
      - platform: gpio
        name: "relay_o3 Toggle Switch"
        id: relay_o3_toggle_sw
        pin:
          number: GPIO7   # 권장 핀, GPIO7 대신 사용
          mode:
            input: true
            pullup: true
          inverted: true
        filters:
          - delayed_on: 30ms
          - delayed_off: 30ms
        on_press:
          then:
            - switch.toggle: relay_o3

     


    첨부 파일을 스킨보드에 구성 PDF보기( W:\g5\skin\board\BS4-Basic-Webzine_11q_pdf_php82\view.skin.php + view_pdf.php구성)



    관련자료

    댓글 0
    등록된 댓글이 없습니다.

    최근글


    새댓글