LD2420 with esp8266

I’m not very successful at getting the LD2420 working reliably with an esp8266 and ESPHome. It seems like it should just come up and detect movement in a room without a lot of fiddling around. Mine is either showing Clear or Detected all the time. Occasionally it might have spurts of seeming to work but it never lasts. Is there some secret to setting it up? I can run Calibration and see numbers like these in the log.

Gate:  0 Avg: 36260 Peak: 65517
Gate:  1 Avg: 37735 Peak: 65050
Gate:  2 Avg: 43980 Peak: 60778
Gate:  3 Avg: 35054 Peak: 44808
Gate:  4 Avg: 18019 Peak: 34978
Gate:  5 Avg:  9501 Peak: 17873
Gate:  6 Avg:  6786 Peak:  9665
Gate:  7 Avg:  5955 Peak:  7157
Gate:  8 Avg:  3334 Peak:  6401
Gate:  9 Avg:  3035 Peak:  4100
Gate: 10 Avg:  2518 Peak:  3428
Gate: 11 Avg:  1473 Peak:  3001
Gate: 12 Avg:  1785 Peak:  2605
Gate: 13 Avg:  1164 Peak:  2378
Gate: 14 Avg:   982 Peak:  1625
Gate: 15 Avg:  1022 Peak:  1682

Any help would be appreciated.

1 Like