I have a ping echosounder single sonar that I’d like to interface with a Jetson Nano via uart. I have been using the singlePingExample.py code, where I have altered the sonar init line to read:
myPing = Ping1D("/dev/ttyTHS1", 115200).
ttyTHS1 refers to the UART pins on the Nano GPIO. I have verified that the UART wiring is correct, because I can get the Nano to talk to an Arduino with the same wiring. However, when running the singlePingExample.py code, I get the print out “Failed to initialize Ping!”. The sonar works fine with the UART to USB converter, however I do not have a spare USB port so cannot run the sonar in this way for my project.