Background and Summary
The invention provides a comparator timer having a single adjustment means for concurrently changing both charging current and threshold trip voltage. In the preferred embodiment, a single potentiometer adjusts the time delay between input and output signals of the comparator.
The invention is further characterized by expanded timing range, reduced power consumption and improved adjustment resolution with a linear potentiometer.
Though not limited thereto, the timer was developed for proximity switches and is particularly useful in photoelectric type proximity switches for providing a delayed output signal following a given sensed condition. The wide range together with the low power consumption makes the timer ideal for such proximity switch applications.
Brief Description of the Drawings
FIG. 1 is a circuit diagram of a comparator timer constructed in accordance with the invention.
FIG. 2 is a timing diagram illustrating operation of the circuit of FIG. 1.
FIGS. 3 and 4 are schematic illustrations contrasting poor resolution in the low range versus the improved resolution afforded by the invention.
Detailed Description
There is shown in FIG. 1 a timer 2 comprising in combination comparator means 4 and single means 6 for concurrently changing both charging current and threshold trip voltage for the comparator. Single means 6 is adjusted in one direction to increase charging current and decrease threshold trip voltage, to shorten timing intervals. Single means 6 is adjusted in another direction to decrease charging current and increase threshold trip voltage, to lengthen timing intervals.
In preferred form, means 6 is a potentiometer comprising a voltage source V.sub.s connected through a wiper 8 to a variable point along a pot resistor P. The right end 10 of the pot resistor is connected to a reference threshold input terminal 12 of comparator 4, for example the minus terminal of an operational amplifier. Right end 10 of pot resistor P is preferably connected through a voltage divider network formed by resistors R.sub.2 and R.sub.3, the junction of which provides a divided voltage to reference input terminal 12. The left end 14 of the pot resistor is connected through an RC circuit, provided by resistor R.sub.1 and capacitor C, to a comparing input terminal 16 of the comparator, such as the plus terminal of an operational amplifier, for comparison against reference input terminal 12.
When wiper 8 is moved rightwardly, the threshold trip voltage at reference input terminal 12 is increased, and the charging current to capacitor C is decreased. It thus takes longer for the voltage at comparing input terminal 16 to rise in a given polarity direction above the voltage at reference input terminal 12. There will thus be a longer timing delay until output 18 transitions.
When wiper 8 is moved leftwardly, the threshold trip voltage at reference input terminal 12 is decreased, and the charging current to capacitor C is increased. It thus takes less time for voltage at comparing input terminal 16 to rise above the voltage at reference input terminal 12. There is thus less of a delay before output 18 transitions.
Switch means such as field effect transistor Q is connected in the RC circuit. Switch Q has a first state permitting charging of capacitor C from potentiometer 6. Switch Q has a second state preventing charging of capacitor C to prevent voltage build-up at comparing-input terminal 16. In the disclosed embodiment, switch Q is non-conductive in its first state, and is conductive in its second state to short capacitor C.
As seen in FIGS. 1 and 2, an input trigger signal at 20 which transitions low at 22 renders FET Q non-conductive such that capacitor C charges, and voltage increases at comparing input terminal 16 of the comparator. When the voltage at comparing input terminal 16 rises above that at reference input terminal 12, the output of the comparator transitions as shown at 24. The length of the timed delay 26 between the input trigger signal transition 22 and the comparator output transition 24 is set by the adjustment of potentiometer 6.
The connections to the comparator comparing input and reference input terminals 16 and 12 may be interchanged. This yields the opposite polarity transition 28, shown by the OUT timing line in FIG. 2, of the comparator output 18 following the input trigger signal. The circuit thus performs an inverting function without an add-on inverter.
The length of the timed delay exhibits logarithmic advance in the setting of the potentiometer and movement of wiper 8. This affords better resolution in the low range. With an adjustable RC timer which has a nonadjustable threshold, FIG. 3, there is poor resolution in the low range. With logarithmic advance, FIG. 4, there is improved resolution in the low range.
The time delay is given by the following Equation. ##EQU1## T.sub.d is the time delay between the input at 20 and the output at 18. P is the resistance of the potentiometer from point 14 to point 10. k is the fraction of pot resistance from point 14 to wiper 6. The circuit of FIG. 1 provides a multiplying effect, i.e. using a linear potentiometer results in a log function of output T.sub.d versus wiper 8 displacement.
In the particular embodiment disclosed, the resistors are applied in the following ratio: R.sub.1 =R.sub.2 =P/10 =6.25R.sub.3, such that a 100 to 1 timing ratio is obtained by adjusting wiper 8 end to end. The potentiometer is linear, and the timed delay when the wiper is in its leftmost position is a decade faster than when the wiper is in its center position. The timed delay when the wiper is in its rightmost position is a decade slower than when the wiper is in its center position.
The use of FET Q is preferred because it has a low ON resistance and will completely discharge capacitor C. This minimizes any first cycle effect.
It is recognized that various modifications are possible within the scope of the appended claims.