Specifications

Appendix C
Parallax, Inc. • BASIC Stamp Programming Manual 1.8 • Page 425
C
PAUSE delay ; where DELAY is an appropriate time in millisec-
onds to allow the capacitor to; fully discharge. You
may have to try different DELAY values to find
an optimal; value.
3.Change the command’s name from ‘POT’ to ‘RCTIME’.
4. Replace the SCALE argument with a STATE argument; our example
requires a 1.
PIN may be a nibble variable in the range 0..15.
CONVERSION: BS1 Q BS2
1.Modify the circuit connected to PIN to look similar to the follow-
ing diagram. (Note, your values for the resistor and capacitor may
be different).
2.Delete the code before the RCTIME command which discharges
the capacitor. This code usually consists of two lines as follows:
HIGH pin ; where PIN is the same PIN in the RCTIME
command.
PAUSE delay ; where DELAY is an appropriate time in millisec-
onds to allow the capacitor to; fully discharge.
3.Change the command’s name from ‘RCTIME’ to ‘POT’.
4.Use the ALT-P key combination to determine the appropriate scale
factor for the POT you are using as described in the BASIC Stamp
I manual.
0.1uF
PIN
10 K (Pot)