Grover, on Fri Apr 6, 2007 7:49 PM, said:
First of all, for good performance you should use the pot to generate a DC VOLTAGE rather than a resistance. In other words, wire the two ends of the pot to +5 and ground (possibly extending one or both ends of the pot with resistors, but with both ends of the pot remaining at constant DC voltages in any case).
Beyond that, there are a number of approaches that may work better. I haven't had a chance yet to find out what the threshold voltage is for the 2600's paddle inputs, but something like this may work
The chip is an LM311 which grounds its output when its "+" input is higher than the "-". When the Atari 2600 paddle pin is grounded, the LM311's "-" input will be lower than the "+", so the comparator will ground the output. Thus, only the 1M resistor near the right side of the circuit will charge the 2600's cap.
When the cap voltage reaches the voltage on the pot, then the comparator output will switch off, allowing the 1K resistor to pull up the Atari's paddle input. This should cause it to switch in fairly short order.
The time required for the paddle input to switch after it is released should thus be the time required for the 1M resistor to charge up to the pot voltage, plus the time for the 1K resistor to charge from there to the TIA switching threshold.
Other chips may be somewhat better suited to the task, but the LM311 should be widely available. The cap near the "+" input is non-critical and could be omitted altogether, but it may slightly reduce jitter when used with really dirty paddles. I'd suggest something small, on the other of a 0.001uF or so.
If you build the circuit and the end of the paddle nearest ground doesn't move the player far enough, it may be necessary to reduce the 1K resistor, though I wouldn't go beyond 470 ohms (if the circuit doesn't work with 470 ohms, it will need to be redesigned). If the player doesn't move far enough the other way but the pot's full range of motion is usable, it may be necessary to reduce the 1M resistor attached to the pot. It the player stalls at some position short of full motion (e.g. turning the pot 2/3 of the way moves the player 3/4 of the way across the screen, but further turning has no additional effect) it may be necessary to increase the 1M resistor attached to the joystick port.
BTW, the 1M pot was chosen because that's what the Atari 2600 uses. If some other value is more convenient, feel free to substitute. Change the resistor that's attached to the pot appropriately in that case.
Edited by supercat, Fri Apr 6, 2007 9:27 PM.














