General Gravity

Gravity: SEN0626 and counting

userHead StighAarstein 2025-09-18 01:42:59 440 Views3 Replies

Hi,

 

Been playing with the SEN0626 and it does what it is supposed to do.

Though, on the product page, there is an image where it is used as a door counter(?)

 

I've not found anything in the library files that corresponds to such functionality, and when installing the SEN0626 at the top of the door pointing downwards, it doesn't detect me when passing…

 

Have anybody got this to work and can provide a sample code on how it was resolved?

 

Thx!

2025-09-21 19:40:21

Yes, it can be used from above, but you must:

Confirm the cone footprint actually covers the doorway at your mounting height.

Use the coordinate output mode (not just distance mode).

Possibly tilt the sensor so you hit torso/chest, not just the top of the head. The SEN0626 you’re using is a 2D ToF ranging sensor (Lidar-based), not just a single-point IR sensor. That means you should be able to mount it overhead and track movement below by watching its X/Y coordinate frame — in theory, that’s exactly how the “door counter” image was meant.

 

Here is a simpler approach to make a visitor counter https://www.pcbway.com/project/shareproject/VISITOR_COUNTER_WITH_AUTOMATIC_LIGHTING_8e688f1b.html

userHeadPic ahsrab.rifat
2025-09-18 03:58:46

These sensors have a limited detection cone. Mounting it at the top of a doorway pointing straight down may place you outside the sensor’s detection range. Most of these sensors work best when you’re in front of them within a few tens of centimetres.

These are analog or digital proximity sensors. They output a distance or a HIGH/LOW signal depending on the detected object. There’s no built-in “person counting” logic; you have to implement that yourself.

userHeadPic ahsrab.rifat
StighAarstein wrote:

Hi,

 

I get most of what you said already - my question was the setup to actually detect from above. I was not able to successfully see myself at all passing under it in the doorway. The counting part is not difficult as we have the x and y and I can measure the direction passing meaning I can count + or -.

 

Are there any particular way for the code to to “see” me passing from above?

2025-09-20 09:35:02
1 Replies