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
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