1559
« on: December 11, 2018, 01:32:33 PM »
Lag on CSMIO/Mach3 inputs doesn't allow me to stop the ATC on the cam signal (genevasensor).
made a Suggestion in the other thread
The max current from the cam sensor doesn't allow to drive typical relay directly, so can't use your idea from another thread
cam sensor -> optocoupler -> relay
So, I made a workaround, I'm switching the motor off after 160ms (CW) and 150ms (CCW) after the right tool has been detected.
After that only checking the cam signal.
you sayed it, it is a Workaround but not a solution. see cam sensor -> optocoupler -> relay -> there is allways a solution
This works for 99% of the time, I've added retry if that's not the case, but if something goes really wrong it will end up in an infinite loop.
I'll come back to the ATC later.
Workaround -> solution Problem again