-
Notifications
You must be signed in to change notification settings - Fork 13
Description
First of all I'd like to thank you to put freely available the design of the board and the code to run it.
Looking at the Arduino code I saw that your counter is based on time threshold (200 ms and 600-650 ms) to avoid some bouncing in the reading.
This gave me the idea to try to detect the entering or the exiting pattern in a way that is robust with respect to the bouncing of a single sensor of the gate at a time. This gist ( https://gist.github.com/svavassori/431e78c2d9f1ff55adb63623408eb033 ) implements a state machine that detects the entering or exiting of a bee for a gate, the extension to multiple gate can be easily done be extending the State current[] array to the desired size.
Unfortunately I have no access to a beehive until some months, so I was wondering about these two possibilities:
- if you could test it on your board (the integration shouldn't be difficult) to see if it actually works, or
- if you could share some unfiltered captures of a single-gate sensors (in-out) in order to have real sequences, so I can test it by myself and see if it works.
Regards,
SV