What it does:
The debounce filter helps your sensor ignore "false counts" caused by vibrations, electrical noise, mechanical bouncing, or physical product features that trigger the sensor multiple times.
Symptoms that you need to increase debounce:
- Counter jumps by 2-3 when only 1 item passed
- Each product with ridges/curves counts as multiple items
- Random counts when nothing is happening
- Count is consistently higher than actual production (e.g., 2x or 3x actual count)
Symptoms that debounce is too high:
- Two products close together are counted as one
- Missed counts when items pass quickly
- Counter is lower than actual production
Best practice:
1. Start with 5,000 µs (5 ms) for standard mechanical sensors
2. If you see double-counts on products with ridges/curves → increase to 50,000-300,000 µs based on product size and speed
3. Test with actual production: count 10 products manually, verify the counter shows exactly 10
4. Fine-tune: If you see false counts → increase the value; if you miss counts → decrease the value
Important:
Make sure the debounce time is:
- Shorter than the time it takes one product to fully pass