windozeuser
Member
I've built a counter on the arduino, and used a 120V relay coil wired in parallel with the 120V motor to detect when this device powers on. The problem is the motor runs very brief anywhere from 800mS to 2 seconds at a time ( varys with the material) (only when the operator does something to operate it). I need to count only once every time it powers up so I made a NAND RS debouncer circuit which helps a lot, but it seems to still not count sometimes, I'm polling 4 times a second in the code for the trigger.
Is there a better way to do this? To detect the 120V motor running depite the time its running for and only counting it once for sure? It needs to be somewhat accurate not medical accurate but at least 98% accurate
Thanks
Is there a better way to do this? To detect the 120V motor running depite the time its running for and only counting it once for sure? It needs to be somewhat accurate not medical accurate but at least 98% accurate
Thanks
Last edited: