Measuring IR Sensor Voltage
How can I measure the voltage going into a pin?· Im useing a IR sensor to detect an object but the 1.4 low limit is to close to object.· I want to measure the voltage as it gets closer to object so i can make it stop.· Thanks for any info·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
There's a section on the RCTIME statement and part of that describes how to measure voltages using two resistors, a capacitor, and the RCTIME statement.
The 1.4V switching threshold is fixed, but varies somewhat with temperature and power supply voltage (and has some variation chip to chip). It is not adjustable. You could use a voltage divider to reduce higher voltages to the switching threshold (see the Wikipedia for an explanation of voltage dividers).