Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6487

Automation, sensing and robotics • Re: Wiring multiple photoelectric sensors to RPI 4

$
0
0
Now that we know that your new sensors are PNP, maybe the old one are really NPN.
Maybe make the table check with one of the old sensor. If it works the resistor in pull up (5v) should work and the resistor in pull down (GND) should always show near 0V.

The big advantage of NPN sensor is that you just need one pull up resistor. The build-in pull up in the GPIO should be enough!

regards,
Daniel

Statistics: Posted by danjperron — Mon Mar 18, 2024 11:02 pm



Viewing all articles
Browse latest Browse all 6487

Trending Articles