Skip to main content
Associate
March 21, 2024
Question

STHS34PF80 Abnormal operation

  • March 21, 2024
  • 2 replies
  • 1151 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

2 replies

Federica Bossi
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 :)

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
topAuthor
Associate
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

Associate III
September 11, 2024