
Warren (Customer) asked a question.
Hi there,
I'm having some issues with wiring an A02YYUW ultrasonic sensor to the P1AM. Without any terminal block on the GPIO shield header pins with a direct connection, I'm reading the sensor perfectly fine. However, once I add one of the recommended AutomationDirect terminal blocks to the header of the GPIO shield, I simply get no values. The sensor is a UART-based sensor, so I'm looking for HEX into the P1AM. I've tried the screw and spring-loaded terminal blocks with no luck. I don't have a scope to visualize that the serial is being generated, but with a multimeter, I can confirm proper output voltage of 3.3V on the sensors' TX pin.
Any suggestions?
Thanks,
Warren
EDIT: The sensor wiring is coming in via an M12 panel mount connector. It makes a run of about 9 inches and is crimped with a ferrule before it reaches the P1AM.
Could you provide a picture of the wiring with and without the terminal block?
Thanks for the reply.
Picture one is with ferrules and the spring-loaded terminal block. Picture two is with dupont jumpers right into the GPIO. Both ways, I have terminated/connected into the rear end of the M12 to bypass any issues with wiring inside the panel to knock out that possibility.
Picture 3 is just a photo of the incoming hex when wired with the dupont jumpers.
It doesn't look like your pictures came through
Apologies, I had responded via email, and I guess the images didn't transfer over. I just edited my post and added them.
On your ferruled connected, I would try and check continuity on the plugging end of the terminal block (opposite of were you insert the ferrule and where it plugs into the P1AM-GPIO). I do this with a small piece of solid core wire for quick sanity checks
I just ran the continuity test, I do have continuity between sensor and the rear of the terminal block. Additionally, I threw together some loopback code (below) and jumped TX and RX together and can receive serial perfectly fine through the loopback. Quite strange in my opinion.
my best guess is the combined resistance of the P1AM-GPIO and wire resistance coupled with the some possible inductance on the wire gets you just below the threshold on the A02YYUW. you could try a bidirectional level shifter to go from a 3.3V signal to a 5V signal
https://learn.sparkfun.com/tutorials/bi-directional-logic-level-converter-hookup-guide/all
The P1AM-GPIO shield has some protection circuity to protect the GPIO pins. I do not know if this would interfere with UART
https://facts-engineering.github.io/modules/P1AM-GPIO/P1AM-GPIO.html
EDIT
never mind now that I look at the photos I see you are still using the P1AM-GPIO shield.