09-13-2006 12:00 PM
09-14-2006 01:30 PM
09-14-2006 01:45 PM
09-14-2006 02:25 PM - edited 09-14-2006 02:25 PM
When you detect a switch closure, you have a circuit as shown on the left in that attached drawing. R1 may be a resistor than is on the DAQ board or you may have to provide it externally. I don't know about your model of DAQ board but it should be in the specs somewhere. The detection of an open or close is pretty straight forward as the input to the digital line is either pulled up to 5V or is at gnd. The value of R1 is not all that important. When you replace thw switch with a pot, then you have a voltage divider and the voltage at the digital input will have to be calculated with ohm's law and the value of R1 needs to be known. Once you know that, then you should be able to calculate what value of R2 will give you a voltage greater than 2V or less than .8. Anything in between will be indeterminate.
Message Edited by Dennis Knutson on 09-14-2006 01:27 PM
09-15-2006 03:43 AM