throbscottle
Well-Known Member
Is there a simple way to cause a voltage to increase according to the number of pulses the input has seen, irrespective of pulse width? I tried simulating charging a capacitor from a square wave input, but the voltage built up due to the time constant, not the number of pulses, so now I'm a bit stuck. Needs to be quite simple or it's not worth doing; I'll try something else. Any suggestions?
The purpose of this is to use a linear optical encoder to show how far a moving part has moved, driven by small motor (actually a CD drive head mechanism), so I don't want to add the extra load of a potentiometer to it. The idea is to produce a voltage change which can be used for linear feedback. End stop micro-switches will reset it if the part overshoots. No need for good accuracy, so long as it can track an input pot's movement.
The purpose of this is to use a linear optical encoder to show how far a moving part has moved, driven by small motor (actually a CD drive head mechanism), so I don't want to add the extra load of a potentiometer to it. The idea is to produce a voltage change which can be used for linear feedback. End stop micro-switches will reset it if the part overshoots. No need for good accuracy, so long as it can track an input pot's movement.