cancel
Showing results for 
Search instead for 
Did you mean: 

STHS34PF80 proximity application

dhruvit
Associate

Hi everyone,

I'm developing a tamper detection circuit for a meter enclosure. I'm considering the STHS34PF80 infrared proximity sensor, but I'm struggling to find reference materials or application notes specifically related to tamper detection using this sensor.

My goal is to use the sensor as an interrupt generator, similar to a switch. When someone opens the enclosure lid, the sensor should detect the change in proximity and trigger an interrupt signal to the microcontroller, indicating tampering.

Can anyone recommend reference materials or alternative sensor options suitable for tamper detection in this application?

Thanks.

1 REPLY 1
Federica Bossi
ST Employee

Hi @dhruvit ,

We don't have specific reference material for this application but, as far as I can tell from your post, you can use a presence library to detect if someone is in proximity.

You can tune the algorithm following the AN.

 

For the presence detection library, you can refer to X-CUBE-MEMS1

https://www.st.com/en/embedded-software/x-cube-mems1.html?icmp=tt33855_gl_lnkon_jul2023

 

Here an example for presence detection:

https://github.com/STMicroelectronics/X-CUBE-MEMS1/tree/main/Projects/NUCLEO-F401RE/Applications/CUSTOM/PresenceDetection_STHS34PF80

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.