I thought this was a good update. From the CNC noise discussion.
Noise was an issue I spent some time overcoming with my electronics. I am not sure if I tried twisting my motor leads, or not. My solution was much different than that though. I settled on optically isolating my step, and direction, control lines. That cleared everything up for me.
Before I did that noise was coming out of my drives, and propagating into all of my other control electronics, wreaking havoc on system operation. Stopping that noise from entering my system at the source, the drives themselves, fixed everything for me.
The motor side of things is not really sensitive to noise. Although it is where the noise comes from. That noise is going to be in the drive board before it even gets to the motor leads too. You can’t really twist your drive board up either to eliminate it.
Physically isolating my control signals did the trick for me though. Noise could not jump the optocouplers. Plus optocouplers need quite a bit of current by themselves to trigger on. So they add immunity by way of hysteresis by themselves. A little spike is not going to phase an optocoupler. It will phase logic electronics though. Sensitivity between the devices is orders of maginitude different. Sometimes a dull knife is the solution.
At least it was for me! I have noticed a lot (all?) of higher end stepper drives have optically isolated control lines too. So it isn’t like I invented anything here, I just rediscovered it for myself.
Here’s a snippet of one of my motor drive schematics with the optical isolation circuit in it. http://i.imgur.com/wmbrCVI.png There really is not quite enough of the circuit to clearly understand it. The optocoupler is triggered on a low input line, the anode is held high. This causes a high output on a low input. Then the output of the optocoupler goes through a Schmitt inverter to square it back up, and invert it again. Optocouplers naturally have slouching signal shoulders. So for a crisp waveform a Schmitt trigger is essential.
Anyhow, this comment is turning into a book so I’ll end it here with an oscilogram of the corrupted step signal before it was optically isolated
http://i.imgur.com/JVyX6n5.jpg For the after signal just imagine a clean square wave.
Noise was an issue I spent some time overcoming with my electronics. I am not sure if I tried twisting my motor leads, or not. My solution was much different than that though. I settled on optically isolating my step, and direction, control lines. That cleared everything up for me.
Before I did that noise was coming out of my drives, and propagating into all of my other control electronics, wreaking havoc on system operation. Stopping that noise from entering my system at the source, the drives themselves, fixed everything for me.
The motor side of things is not really sensitive to noise. Although it is where the noise comes from. That noise is going to be in the drive board before it even gets to the motor leads too. You can’t really twist your drive board up either to eliminate it.
Physically isolating my control signals did the trick for me though. Noise could not jump the optocouplers. Plus optocouplers need quite a bit of current by themselves to trigger on. So they add immunity by way of hysteresis by themselves. A little spike is not going to phase an optocoupler. It will phase logic electronics though. Sensitivity between the devices is orders of maginitude different. Sometimes a dull knife is the solution.
At least it was for me! I have noticed a lot (all?) of higher end stepper drives have optically isolated control lines too. So it isn’t like I invented anything here, I just rediscovered it for myself.
Here’s a snippet of one of my motor drive schematics with the optical isolation circuit in it. http://i.imgur.com/wmbrCVI.png There really is not quite enough of the circuit to clearly understand it. The optocoupler is triggered on a low input line, the anode is held high. This causes a high output on a low input. Then the output of the optocoupler goes through a Schmitt inverter to square it back up, and invert it again. Optocouplers naturally have slouching signal shoulders. So for a crisp waveform a Schmitt trigger is essential.
Anyhow, this comment is turning into a book so I’ll end it here with an oscilogram of the corrupted step signal before it was optically isolated
http://i.imgur.com/JVyX6n5.jpg For the after signal just imagine a clean square wave.