by cncdrive » Mon Jun 29, 2020 12:11 am
My first quess:
Your original breakout board probably used cheap slow optocouplers and the home switches does not switch clean, they switching on/off/on/off at the switching point.
The UCBB has fast optocouplers which can transmit such short pulse like signals also while cheap slow optocouplers will not switch those signals through, because they switching slower than how long the signal pulse is.
So, in this case this is a disadvantage of the fast optocouplers, but ofcourse fast optocouplers has the advantage of cleaner switching point and you can connect fast signals also e.g. encoders which would not work with slow optocouplers.
The solution for the problem is to use a newer version of the UCCNC.
Newer versions have 2 solutions:
1.) A backoff distance parameter which moves the axis away from the sensor, so it does not matters if there are spikes from the home sensor if you set the backoff distance far enough. Usually a very small distance does the job.(depends on the sensor/switch)
2.) Debounce filter which filters out the input signals. There is a separate debounce for homes and limits, you can set a few milliseconds, it will filter out those short spike signals.
My second thought:
Make sure that the home inputs polarity is set correctly. Go to the diagnostics and when the axes are off the home switches then verify that the Home LEDs are off, otherwise if they are on when the axes are on the home switch then you need to change the home input Active low sensor which reverses the signal active polarity. I thought about this as a possible problem because the signal polarity might be the opposite between your old BOB and the UCBB. So verify this.