2024-03-21 02:53 AM
When STHS34PF80 detects the human body for a period of time, TPRESENCE cannot fall back normally, and pres_flag is always 1。
code:
2024-03-28 08:43 AM
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 :)
2024-03-28 05:59 PM
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
2024-09-11 07:25 AM - edited 2024-09-11 07:26 AM
enable the bit SEL_ABS of register ALGO_CONFIG (28h)
https://community.st.com/t5/mems-sensors/sths34pf80-sensor-detects-false-presence-after-inanimate-object/td-p/712603