코딩정보


● HA작업) esp32 에 센서및 led와 레이져센서 구성 모듈 스마트폰 BLE 구성 하기


  • 링크


  • 컨텐츠 정보


    본문

    ● HA작업) esp32 에 센서및 led와 레이져센서 구성 모듈 스마트폰 BLE  구성 하기


    1차 구성 제품

    https://11q.kr/www/bbs/board.php?bo_table=co3&wr_id=2118


    WeActStudio.ESP32C3CoreBoard

    https://github.com/WeActStudio/WeActStudio.ESP32C3CoreBoard

    3232235521_1711873291.4147.png


    센서 보드

    3232235521_1711873268.312.png



    binary_sensor:

      - platform: gpio
        pin: GPIO2
        name: "PIR Sensor"
        device_class: motion
        id: pir_sensor_only_GPIO2
        on_press:
          then:
            - text_sensor.template.publish:
                id: pir_countup
                state: !lambda |-
                  static int pir_counter = 0;
                  pir_counter++;
                  id(pir_last_trigger).publish_state(std::to_string(pir_counter));
                  // 매 60분마다 초기화
                  if ((millis() / 60000) % 60 == 0) pir_counter = 0;
                  return std::to_string(pir_counter);



    led 구성

    3232235521_1711873634.0098.png

    output:
      - platform: gpio
        pin: GPIO10
        id: led_output
        inverted: true

    light:
      - platform: binary
        name: "LED_Off_GPIO10"
        output: led_output


    인간 존재 감지 레이더 모듈, 밀리미터파 모션 센서, 5 핀 케이블 CE, 24GHz, HLK-LD2410, 2410B, 2410C, LD2450, LD2411S, FMCW

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

    3232235521_1711873874.7181.png



    Grove 스피커 사운드 출력 모듈, 소형 스피커 액세서리, Arduino 조정 가능

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

    3232235521_1711874480.4659.png


    ☞ https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠1.png

    뷰PDF add1,add2



    관련자료

    댓글 2

    11qkr님의 댓글

    Grove 스피커 사운드 출력 모듈, 소형 스피커 액세서리, Arduino 조정 가능 의 esphome의 소스 구성 정보 찾아 주세요
    # Grove Speaker Component Configuration
    output:
      - platform: gpio
        pin: GPIO_SPEAKER_PIN_NUMBER
        id: speaker_output

    # Example automation to play a sound when triggered
    automation:
      - id: play_sound
        alias: "Play Sound"
        trigger:
          platform: state
          entity_id: binary_sensor.motion_sensor
          to: "ON"
        action:
          - script.execute: play_sound_script

    script:
      play_sound_script:
        sequence:
          - output.turn_on: speaker_output
          - delay: 1s  # Adjust delay time as needed
          - output.turn_off: speaker_output

    11qkr님의 댓글

    인간 존재 감지 레이더 모듈, 밀리미터파 모션 센서 2410B  의 esphome의 소스 구성 정보 찾아 주세요

    binary_sensor:
      - platform: gpio
        pin:
          number: GPIO_PIN_NUMBER
          mode: INPUT_PULLUP
          inverted: True
        name: "Motion Sensor"
        device_class: motion

    output:
      - platform: gpio
        pin: GPIO_LED_PIN_NUMBER
        inverted: True
        id: motion_led

    automation:
      - id: motion_detected
        alias: "Motion Detected"
        trigger:
          platform: state
          entity_id: binary_sensor.motion_sensor
          to: "ON"
        action:
          - output.turn_on: motion_led
          - delay: 1s
          - output.turn_off: motion_led



    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-05-18 07:26:21

    오늘의 홈 현황


    • 현재 접속자♨ 236 명
    • 오늘 가입자※ 0 명
    • 어제 가입자※ 6 명
    • 주간 가입자※ 13 명
    • 오늘 방문자 1,207 명
    • 어제 방문자 1,667 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,329,219 명
    • 전체 게시물※ 8,574 개
    • 전체 댓글수※ 24,621 개
    • 전체 회원수 10,973 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑