Skip to main content
Visitor II
March 21, 2024
Question

STHS34PF80 Abnormal operation

  • March 21, 2024
  • 2 replies
  • 1149 views

When STHS34PF80 detects the human body for a period of time, TPRESENCE cannot fall back normally, and pres_flag is always 1。

 

code:

top_0-1711014368016.png

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    March 28, 2024

    Hi @top ,

    Welcome to ST Community!

    You can refer to section 7.1 of AN5867. You You need to tune the parameters to fit the algorithm to your application, especially the PRESENCE_THS.

    Let me know if this helps :)

    topAuthor
    Visitor II
    March 29, 2024

    I've tried changing various parameters, but nothing works. The problem now is that when I stand in front of STHS34PF80 for some time, which may be 5 minutes or 15 minutes later (this time is uncertain) and leave, PRES_FLAG is always 1, and the value of TPRESENCE does not fall back as if it is working normally, as if I am still there. That doesn't seem to happen if I show up intermittently before STHS34PF80

    Visitor II
    September 11, 2024