I am attempting to connect a light sensor (GP2A200LCS0F) to PIC16F690. The pic will receive signal from the light sensor and count the number of interruptions. The maximum current output of the light sensor is 50 mA and the maximum output voltage is 30 V.
Since the maximum input clamp current of the pic is 20 mA and the maximum voltage on Vdd is 6.5 V (I assume all other input pin maximum voltages = Vdd), should Resistor A (see diagram) be:
R=V/I
=(Difference of Maximum Voltages)/(Maximum input clamp current)
=(30 - 6.5) / (0.020)
=1.18 kΩ
View attachment Light Sensor.sch
Light Sensor Datasheet
Since the maximum input clamp current of the pic is 20 mA and the maximum voltage on Vdd is 6.5 V (I assume all other input pin maximum voltages = Vdd), should Resistor A (see diagram) be:
R=V/I
=(Difference of Maximum Voltages)/(Maximum input clamp current)
=(30 - 6.5) / (0.020)
=1.18 kΩ
View attachment Light Sensor.sch
Light Sensor Datasheet
Attachments
Last edited: