I'm attempting to get a Pi 3 to instruct a coin hopper
to dispense coins using nodejs. So far I'm having some success. I have a relay hat that turns on the hopper from external power and a sensor output from the hopper is being read from a pin. Cool!
I can't seem to get accurate sensor readings from the hopper. The Pi GPIO input pin reads true/false values from hopper IR sensor output (cool), but not as many false readings as coins being spit out of the hopper. I've tried a couple of nodejs modules with similar/samish results. I get more than double coins for sensor readings (percentage varies).
Is it possible that the Pi can't read sensor input fast enough for the hopper output signals? It seems like the Pi could be missing something.
Is it possible that my refurbished coin hopper may have a malfunctioning sensor (it looks great, so clean and new-like)?
I'm connecting hopper sensor output (Open collector-active low 25mA-35V ) directly to a GPIO pin. Is this an issue? See this post
From the manual, here is the timeline of coin dispensing events. My hopper may be an older model (will update if I can find the exact manual again), but I remember the times being the same (interested in coin exit):
I'm open to ideas!
Thanks for taking a look and let me know if I can fill in any gaps. It's late and this is looking pretty generalized at the moment.
Worlds to explore. Worlds to create.