Ping False triggers on noise
T Chap
Posts: 4,223
I have two pings in a noisey envronment ( restaurant ) as an alternative to a passive IR motions sensor. The area of detection needs to be controller better than the PIR style sensor. In this case, there is a loop that cycles constantly, firing ping 1 then 2. The distance can be preset per sensor in the gadget software setup menu. This morning there was some nailgun activity ( air ) and each time the gun went off, the Ping triggered for a detection below the preset threshold set in the Propeller. I assume that since the cycles are so close together, that any other noise that shows up is false triggering the device. I wanted to see if this effect made sense to anyone else, the first test is to slow down the cycle and see if that helps. Any other advice appreciated.
Comments
-Phil
I don't know how median applies when the results will only be 1 or 0?
Say there are 5 samples from the Ping, whereas a 1 represents a positive detection of an object below a preset distance:
Ex. with noise interference:
1 = 0
2 = 1
3 = 0
4 = 0
5 = 1
The median would then be to arrange the numbers from lowest to highest: 00011, then pick the middle number which is 0?
Or:
Ex. with noise interference:
1 = 1
2 = 1
3 = 0
4 = 0
5 = 1
00111, in which case the median is a 1, even though false triggers. So why not just test a number of Pings, and make a rule that the must ALL be true?
Checking for coincident readings from multiple sensors is also valid.
-Phil
It shouldn't be too hard to convert to Spin.
-Phil