Sinapse-Energia / talking-fiber

Firmware for optic fiber activity detection. Based on M3 MCU
0 stars 1 forks source link

[Photodiode] To avoid false positives reading photodiode sensor #15

Open ralcaide opened 6 years ago

ralcaide commented 6 years ago

We've observed in a real installation the device is reading a very low value (provoking an alert) with the fiber has not a problem. How is performed the reading of the sensor? only one sample?. It is necessary to read it N times, for example (N=10), discard the 2 extreme samples and perform a mean. The reading of the sensor should be done very fast in order to avoid high energy consumption