Advertisement
Guest User

https://www.printables.com/de/model/767970-esp32-c3-super-mini-ld2410c-radar-mmwave-sensor

a guest
Feb 22nd, 2024
1,825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.63 KB | None | 0 0
  1. esphome:
  2.   name: radar
  3.   friendly_name: Radar
  4.  
  5. esp32:
  6.   board: esp32-c3-devkitm-1
  7.   framework:
  8.     type: arduino
  9.  
  10. # Enable logging
  11. logger:
  12. # Enable Home Assistant API
  13. api:
  14.   encryption:
  15.     key: "+Yk49FKNQgxeY3iuuhW235evgAFzxZwTYeabnxDlUmQ="
  16.  
  17. ota:
  18.   password: "2753b6728791b75b0aba282573dd471a"
  19.  
  20. wifi:
  21.   ssid: !secret wifi_ssid
  22.   password: !secret wifi_password
  23.  
  24.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  25.   ap:
  26.     ssid: "Radar Hotspot"
  27.     password: "HuMgEpXvIksg"
  28.  
  29. captive_portal:
  30. web_server:
  31.   port: 80
  32.   include_internal: true
  33.  
  34. # ---------------------------------------------------------------------------------
  35.  
  36. light:
  37.   - platform: binary
  38.     name: "Blue Status Light"
  39.     output: light_output
  40.     id: led_light
  41.     restore_mode: ALWAYS_OFF
  42.  
  43. output:
  44.   - platform: gpio
  45.     pin: GPIO2
  46.     id: light_output
  47.  
  48. uart:
  49.   id: ld2410_uart
  50.   tx_pin: GPIO21 # TX
  51.   rx_pin: GPIO20 # RX
  52.   baud_rate: 256000
  53.   parity: NONE
  54.   stop_bits: 1
  55.  
  56. ld2410:
  57.   uart_id: ld2410_uart
  58.   throttle: 1500ms
  59.   id: ld2410_comp
  60.  
  61. select:
  62.   - platform: ld2410
  63.     distance_resolution:
  64.       name: distance resolution
  65.     baud_rate:
  66.       name: baud rate
  67.     light_function:
  68.       name: light function
  69.     out_pin_level:
  70.       name: out pin level
  71.  
  72. button:
  73.   - platform: ld2410
  74.     factory_reset:
  75.       name: "factory reset"
  76.     restart:
  77.       name: "restart"
  78.     query_params:
  79.       name: query params
  80.  
  81. number:
  82.   - platform: ld2410
  83.     timeout:
  84.       name: timeout
  85.     max_move_distance_gate:
  86.       name: max move distance gate
  87.     max_still_distance_gate:
  88.       name: max still distance gate
  89.     g0:
  90.       move_threshold:
  91.         name: g0 move threshold
  92.       still_threshold:
  93.         name: g0 still threshold
  94.     g1:
  95.       move_threshold:
  96.         name: g1 move threshold
  97.       still_threshold:
  98.         name: g1 still threshold
  99.     g2:
  100.       move_threshold:
  101.         name: g2 move threshold
  102.       still_threshold:
  103.         name: g2 still threshold
  104.     g3:
  105.       move_threshold:
  106.         name: g3 move threshold
  107.       still_threshold:
  108.         name: g3 still threshold
  109.     g4:
  110.       move_threshold:
  111.         name: g4 move threshold
  112.       still_threshold:
  113.         name: g4 still threshold
  114.     g5:
  115.       move_threshold:
  116.         name: g5 move threshold
  117.       still_threshold:
  118.         name: g5 still threshold
  119.     g6:
  120.       move_threshold:
  121.         name: g6 move threshold
  122.       still_threshold:
  123.         name: g6 still threshold
  124.     g7:
  125.       move_threshold:
  126.         name: g7 move threshold
  127.       still_threshold:
  128.         name: g7 still threshold
  129.     g8:
  130.       move_threshold:
  131.         name: g8 move threshold
  132.       still_threshold:
  133.         name: g8 still threshold
  134.     light_threshold:
  135.       name: light threshold
  136.  
  137. text_sensor:
  138.   - platform: ld2410
  139.     version:
  140.       name: "presenece sensor version"
  141.     mac_address:
  142.       name: "presenece sensor mac address"
  143.  
  144. switch:
  145.   - platform: ld2410
  146.     engineering_mode:
  147.       name: "engineering mode"
  148.     bluetooth:
  149.       name: control Bluetooth
  150.  
  151. sensor:
  152.   - platform: internal_temperature
  153.     name: "Internal Temperature"
  154.  
  155.   - platform: ld2410
  156.     moving_distance:
  157.       name: "Moving distance (cm)"
  158.     still_distance:
  159.       name: "Still Distance (cm)"
  160.     moving_energy:
  161.       name: "Move Energy (%)"
  162.     still_energy:
  163.       name: "Still Energy (%)"
  164.     detection_distance:
  165.       name: "Distance Detection (cm)"
  166.     g0:
  167.       move_energy:
  168.         name: g0 move energy
  169.       still_energy:
  170.         name: g0 still energy
  171.     g1:
  172.       move_energy:
  173.         name: g1 move energy
  174.       still_energy:
  175.         name: g1 still energy
  176.     g2:
  177.       move_energy:
  178.         name: g2 move energy
  179.       still_energy:
  180.         name: g2 still energy
  181.     g3:
  182.       move_energy:
  183.         name: g3 move energy
  184.       still_energy:
  185.         name: g3 still energy
  186.     g4:
  187.       move_energy:
  188.         name: g4 move energy
  189.       still_energy:
  190.         name: g4 still energy
  191.     g5:
  192.       move_energy:
  193.         name: g5 move energy
  194.       still_energy:
  195.         name: g5 still energy
  196.     g6:
  197.       move_energy:
  198.         name: g6 move energy
  199.       still_energy:
  200.         name: g6 still energy
  201.     g7:
  202.       move_energy:
  203.         name: g7 move energy
  204.       still_energy:
  205.         name: g7 still energy
  206.     g8:
  207.       move_energy:
  208.         name: g8 move energy
  209.       still_energy:
  210.         name: g8 still energy
  211.     light:
  212.       name: light
  213.  
  214. binary_sensor:
  215.   - platform: ld2410
  216.     has_target:
  217.       name: Presence
  218.     has_moving_target:
  219.       name: Moving Target
  220.     has_still_target:
  221.       name: Still Target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement