Why do you need a resistor for a PNP-sensor

Thread Starter

Martijn Kortenhoeven

Joined Apr 16, 2015
3
Currently my school project group and I are working on a robot. We received a pnp optical sensor. We've been told that we have to use a 120Ohm resistor between the ground and the sensor output signal. Well, the robot worked and right now we are writing our report. In it, we have to specify why the resistor was needed. Unfortunately we have no idea and are having trouble finding it on the internet. Does anyone know why we need a resistor between the ground and the sensor output? Thanks in advance!
 

DickCappels

Joined Aug 21, 2008
10,187
It would be a great help to see your circuit, but here goes anyway.

I assume your phototransistor has two leads. One goes to the power supply and the other goes to the resistor, the other end of the resistor is grounded.

The voltage across the resistor is the current from the phototransistor times the value of the resistance to ground. If the resistance were infinite (not there) then the voltage at the phototransistor output would drift toward the power supply.
 

Thread Starter

Martijn Kortenhoeven

Joined Apr 16, 2015
3
Problem is solved thanks! We've found out that the resistor is used to let the final load from the sensor output through to the ground. This is so the MyRIO module won't get a signal from the sensor anymore.
 

crutschow

Joined Mar 14, 2008
34,473
The sensor controls the current through it. To get a signal voltage from that current it needs to go through a resistor.
 
Last edited:
Top