Re: Lost steps newly upgraded machine <clearpath, resistors>
Posted: Mon Feb 15, 2021 5:36 pm
Marty,
(I'll slip on my "teacher's hat", not for you, but for those who are just starting the DIY adventure.)
Yes, I've seen that shark-tooth pattern on the 'scope. At the data rates used to control a servo motor, the signal resembles an AC signal more than it resembles a DC signal. A capacitor can "pass" AC type waveforms, but it blocks DC. That's why changing DC signals have to be seen as if they were AC signals. Capacitance (and resistance) slows down a signal's transition. The more capacitance, the less "true" the waveform is to the original signal.
Let's use the example of a linear power supply that uses a large capacitor to smooth out the voltage. Without a capacitor, the voltage level coming out of a linear power supply would simply be a ratio of the voltage going into the power supply's transformer. Usually a full-wave bridge-rectifier doubles the frequency from 60hz to 120hz and cuts the voltage level in half. (The peak-to-peak voltage is actually (SQRT(2) * 120VAC * 2 or about 340V peak-to-peak) at 60hz.) With a bridge-rectifier, the peak-to-peak voltage is about 170V at 120hz. The large capacitor "stores" energy between the 120hz waves. The higher the capacitance, the less drain between cycles and the higher the average voltage. Geckodrive has an excellent white paper that gives a formula for calculating the size of capacitor needed to give a relatively smooth DC voltage to drive stepper motors.
A switching power supply often has circuitry to increase the frequency to high levels. With high frequency, the periods between charges is reduced. That type of power supply is usually much more efficient when the current required is constant. The drawback is the high-pitch squeal that poorly designed switching power supplies emit.
So, when the wire in the cabling acts as a capacitor, the wave-form is distorted. It's just a law of physics that we have to compensate for when using step and direction pulses. A pull-up resistor helps to "snap" the voltage up to the 24VDC "rail". It helps turn the "shark-tooth pattern" back into a square wave pattern. At 200,000hz or 400,000hz, there are a lot of forces pushing and pulling on the waveform.
----
I've checked my PM mailbox, but I didn't see any new messages.
(I'll slip on my "teacher's hat", not for you, but for those who are just starting the DIY adventure.)
Yes, I've seen that shark-tooth pattern on the 'scope. At the data rates used to control a servo motor, the signal resembles an AC signal more than it resembles a DC signal. A capacitor can "pass" AC type waveforms, but it blocks DC. That's why changing DC signals have to be seen as if they were AC signals. Capacitance (and resistance) slows down a signal's transition. The more capacitance, the less "true" the waveform is to the original signal.
Let's use the example of a linear power supply that uses a large capacitor to smooth out the voltage. Without a capacitor, the voltage level coming out of a linear power supply would simply be a ratio of the voltage going into the power supply's transformer. Usually a full-wave bridge-rectifier doubles the frequency from 60hz to 120hz and cuts the voltage level in half. (The peak-to-peak voltage is actually (SQRT(2) * 120VAC * 2 or about 340V peak-to-peak) at 60hz.) With a bridge-rectifier, the peak-to-peak voltage is about 170V at 120hz. The large capacitor "stores" energy between the 120hz waves. The higher the capacitance, the less drain between cycles and the higher the average voltage. Geckodrive has an excellent white paper that gives a formula for calculating the size of capacitor needed to give a relatively smooth DC voltage to drive stepper motors.
A switching power supply often has circuitry to increase the frequency to high levels. With high frequency, the periods between charges is reduced. That type of power supply is usually much more efficient when the current required is constant. The drawback is the high-pitch squeal that poorly designed switching power supplies emit.
So, when the wire in the cabling acts as a capacitor, the wave-form is distorted. It's just a law of physics that we have to compensate for when using step and direction pulses. A pull-up resistor helps to "snap" the voltage up to the 24VDC "rail". It helps turn the "shark-tooth pattern" back into a square wave pattern. At 200,000hz or 400,000hz, there are a lot of forces pushing and pulling on the waveform.
----
I've checked my PM mailbox, but I didn't see any new messages.