PNP sensor using RevPi DIO module
Posted: 29 Aug 2017, 23:40
I have purchased a RevPi DIO module, a 24V Mean Well power supply, and a PNP ultrasonic proximity sensor and I'm having difficulty getting I_1 to change from 0 to 1.
I used this tutorial as a guide. (One big difference between the tutorial and my setup is the lack of a Common port on the RevPi DIO)
I connected the brown wire (positive) of the ultrasonic sensor to the positive terminal of the power supply, the blue wire (negative) to the negative terminal of the power supply, and the black wire (digital output) into port I_1 of the RevPi DIO. I move my hand in front of the ultrasonic sensor and confirm the lights on the sensor turning on and off indicating that it's working, but when I use piTest to read port I_1 it's always 0. I used a volt meter to confirm that the black wire (digital output) is 24V when the sensor is on and 0V when the sensor is off.
Can you provide any troubleshooting steps to help me figure out the problem? I'm confused why the RevPi DIO module doesn't have a Common port. Is there a way to bypass the ultrasonic sensor and trigger a change from 0 to 1 on I_1 using only the power supply?
Thanks in advance.
I used this tutorial as a guide. (One big difference between the tutorial and my setup is the lack of a Common port on the RevPi DIO)
I connected the brown wire (positive) of the ultrasonic sensor to the positive terminal of the power supply, the blue wire (negative) to the negative terminal of the power supply, and the black wire (digital output) into port I_1 of the RevPi DIO. I move my hand in front of the ultrasonic sensor and confirm the lights on the sensor turning on and off indicating that it's working, but when I use piTest to read port I_1 it's always 0. I used a volt meter to confirm that the black wire (digital output) is 24V when the sensor is on and 0V when the sensor is off.
Can you provide any troubleshooting steps to help me figure out the problem? I'm confused why the RevPi DIO module doesn't have a Common port. Is there a way to bypass the ultrasonic sensor and trigger a change from 0 to 1 on I_1 using only the power supply?
Thanks in advance.