as shown in fig1 a control circuit 10 for a joystick or similar position control device , comprises first and second dual input nand gates 12 and 14 , respectively , having one input of each connected in common . although the invention is described in terms of a circuit employing nand gates , one of ordinary skill in the art could design a circuit using other types of logic gates . a potentiometer 16 has a wiper 18 coupled to the commonly connected inputs of the first and second nand gates . the potentiometer has a first end terminal 20 coupled to the output of the first nand gate 12 and a second end terminal 22 coupled to the output of the other nand gate 14 . a capacitor 24 couples the wiper of the potentiometer 16 to ground potential . a single pole - triple throw switch 24 has a wiper contact connected to a positive voltage source ( e . g . + 5 volts ) and is wired with the center position as an off position . specifically a first end switch terminal 26 is connected to the other input of the first nand gate 12 , the second end switch terminal 28 is connected to the other input of the second nand gate 14 and the center switch terminal 27 is left unconnected . two pull down resistors 30 and 32 couple the end switch terminals 26 and 28 , respectively , to ground potential . the wiper of the switch 24 and the wiper 18 of potentiometer 16 are mechanically ganged together and may be connected to the handle of a joystick ( not shown ). the circuit as shown in fig1 provides two output pulses indicating the movement of the joystick handle along one axis , for descriptive purposes the axis will be assumed to run from left to right with respect to the position of the operator . when the joystick is in the center or neutral position , the wiper 18 of the potentiometer 16 is approximately centered along its length of travel and the wiper of switch 24 is connected to the center or off terminal 27 . in the neutral position , the two pull down resistors 30 and 32 produce a low logic level at the corresponding inputs of the nand gates 12 and 14 . this causes the output of both nand gates to be high regardless of the level of the signal at the common input which is connected to wiper 18 . therefore , in the neutral position the outputs from both of the nand gates 12 and 14 will be high . as the joystick handle is moved either left or right , the wiper 18 of the potentiometer moves correspondingly left or right along the resistance and the wiper of switch 24 moves to one of the two end terminals 26 or 28 corresponding to the direction of the movement . for example , if the joystiok handle is moved to the right , the wiper of the switch 24 will switch to the second end terminal 28 providing a positive voltage at the non - common input of the second nand gate 14 . at this point both of the inputs to the second nand gate 14 are high which produces a low output . the output is fed back to the first input through an rc network consisting of potentiometer 16 and capacitor 24 . the time constant of the rc network is such that the common input of second nand gate 14 will go low after a short time interval following the output of the second nand gate going low . at this point in time one input to the second nand gate 14 is high and one is low producing a high output which will be fed back through the rc network driving the common input high after the rc time constant delay . the feedback circuit through resistor 16 places nand gate 14 in an astable state , producing a switching of its output between high and low levels . in this state the output of the second nand gate takes the form of a pulse train having a period ( and frequency ) determined by the rc time constant of potentiometer 16 and capacitor 24 . when the joystick is moved toward the right , the potential at the first end terminal 26 of switch 24 remains at ground potential being pulled down by resistor 30 . therefore , the left output signal provided by the first nand gate 12 will not change states , remaining at a constant high logic level . if the joystick handle is moved farther to the right , the resistance in the feedback loop will decrease , shortening the time delay in the feedback loop and producing a higher frequency pulse train output from the second nand gate 14 . therefore , the frequency of the output from the second nand gate 14 indicates the position of the joystick handle to the right of the neutral position . as the wiper of potentiometer 16 is returned from a right - hand position to the neutral position , the frequency of the right output signal will decrease . when the handle is placed in the neutral position , the switch 24 will return to the center off position clamping the corresponding input of the second nand gate 14 to ground potential through the second resistor 32 . this grounding of the one input of nand gate 14 drives the output to a constant high logic level stopping the oscillation of the right output signal . similarly , if the joystick handle is moved to the left , switch 24 will connect the positive potential to the first end terminal 26 and the corresponding input to the first nand gate 12 . as with the operation of the second nand gate 14 described above , this will produce a pulse train at the output of the first nand gate 12 having a frequency which corresponds to the position of the handle in the left direction . as the handle is moved to the left , the output of the second nand gate 14 remains high . the outputs from the two nand gates 12 and 14 may be fed to a computer or other digital circuitry for decoding to produce an indication as to the position of the joystick . specifically , the position of the joystick handle may be determined by counting the number of pulses that occur on both the left and the right output lines during some fixed time interval . an alternative embodiment which may be easier to implement is shown in fig2 . the circuit 100 is very similar to that in fig1 except that the switch 24 and resistors 30 and 32 have been eliminated and the non - common terminals of the first and second nand gates 12 and 14 are coupled to a voltage divider circuit . in fig2 the components which are identical to those of fig1 have been given the same numerical designation with the addition of a prime symbol . the circuit as shown in fig2 further comprises a second potentiometer 140 having a wiper 142 connected to a positive voltage source and mechanically connected to the wiper 18 &# 39 ; of the first potentiometer 16 &# 39 ;. the joystick handle ( not shown ) may be coupled to the two wipers . a first end terminal 144 of potentiometer 140 is connected to the non - common input of the first nand gate 12 &# 39 ;. a first variable resistor 148 couples the first end terminal 144 to ground potential . the second end terminal 146 is connected to the non - common input of the second nand gate 14 &# 39 ; and to ground potential through a second variable resistor 150 . prior to using control circuit 100 in fig2 the two variable resistors 148 and 150 must be properly adjusted so that when the joystick is in the neutral position the voltage at the non - common inputs of the first and second nand gates 12 &# 39 ; and 14 &# 39 ; are just slightly below the turn - on voltage for the nand gates . once the variable resistors 148 and 150 have been properly adjusted , they may be replaced by fixed resistors of equal resistance . in the neutral position the non - common nand gate inputs are at low logic levels and the output of both of the nand gates will be at a high level regardless of the logic level ( voltage ) at the commonly connected inputs . then if the joystick handle is moved to the right , the wiper of the second potentiometer 140 will decrease the resistance between the positive voltage supply and the second end terminal 146 producing a high logic level at the non - common input of the second nand gate 14 &# 39 ;. this high logic level places the second nand gate in an astable configuration such that it will produce an output signal which will oscillate between high and low logic levels at a frequency determined by the rc time constant of the first potentiometer 16 &# 39 ; and the capacitor 24 &# 39 ;. as the joystick handle moves farther to the right , the resistance in the feedback loop of the second nand gate 14 &# 39 ; will decrease , increasing the frequency of the output pulses . it is noted that during the time in which the second nand gate 14 &# 39 ; is in an astable configuration the level of the signal applied to the non - common input of the first nand gate 12 &# 39 ; is at a low logic level since the resistance between the positive voltage source and the first end terminal 144 of the second potentiometer 140 has increased . similarly , if the joystick handle is moved to the left , the first nand gate 12 &# 39 ; will be placed in the astable configuration and the second nand gate 14 &# 39 ; will produce a constant high output . although the embodiments of the present invention shown in fig1 and 2 have been described in terms of providing left and right control signals , it is apparent that these signals may be used to provide an indication of movement along an axis having any orientation . correspondingly , a second circuit similar to those in the two embodiments could be coupled to the joystick to provide an output signal indicating movement along a second axis of the joystick . for example , two circuits could be provided to indicate the movement of the joystick handle in an x - y coordinate system .