Hi,
I am a beginner in Arduino, now I am trying to make a 6 channel bee counter.
Hydronics had made a 12-channel bee counter at https://www.instructables.com/id/Honey-Bee-Counter-II/. In his case, he used 3 shifting resgisters so he just use one I/O on the arduino.
In my case, I do not want use shifting registers due to the more work on soldering. So I should use 12 I/Os on the board. I will use 12 sensors to make 6 channel, each channel has two sensors: IN and OUT. If the IN sensor is triggered first, followed by the OUT sensor means the bee was going OUT. If the OUT sensor is triggered first, followed by the IN sensor is triggered, means the bee is going IN.
My question is: how the code should be? Hydronics code could be found here.Bee-counter-3.1/counter at master · hydronics2/Bee-counter-3.1 · GitHub
Thank you
WildPanda:
If the IN sensor is triggered first, followed by the OUT sensor means the bee was going OUT. If the OUT sensor is triggered first, followed by the IN sensor is triggered, means the bee is going IN.
Encoder signal. Anything jump out at you?