Sensor output NPN to PNP

Hi

I want to change NPN proximity sensor output signal to PNP. At now the signal is -5V normally and when pressed it goes to zero. But I want the signal to be positive voltage.

How can I do so?

Are you familiar with the "X-Y problem"?

Please post your schematic and links to the components you have or plan to use.

Controller Smoothstepper ESS Documentation: ESS (Ethernet SmoothStepper)
"These pins are rated for 0 to 5V. Never go negative or exceed 5.5V or damage will occur"

Sensor https://vers.by/en/blog/user-guides/vers-tsm
"NPN-NC sensor, i.e. output normally closed to ground"

And yes they sell NPN to PNP, and yes I have ordered it but I don“t find it, and the shipping takes too long.

image

This is the connection diagram shown for the sensor.  Where is the negative voltage coming from?

mmm isn't GND negative. Even in Arduino, if I take multimeter probes , say Red on 5+, Black on GND I get 5V, if I switch the Red and Black probes I get -5V. Dc power supply's have V+ and V-.

And on sensor, when I put VCC +5V and GND -5V, put the multimeter probes Red on VCC and Black on OUT 5V and if I switch probes, I get -5V ... So the output is -5v(GND)?

No, GND defines zero voltage. You probably forgot to connect all the grounds together.

The NPN sensor will work fine once you have done that, provided everything else is wired properly, and you did not damage the Arduino chip. Be sure to connect the pullup resistor to Arduino 5V, not the sensor power supply.

The black probe goes to ground, otherwise your meter will read negative.

Do you still believe you need the pnp version?

Only from the reference point of +5V.
A multi meter measures the difference between the red and black terminals of the meter.
Normally you use a meter with the black wire connected to ground and the red connected to the point you want to measure, WITH REFERENCE TO GROUND.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.