JSN-SR04T setup help

Im using Sonar JSN-SR04T and have tried setting it up according to this setup using AUX 5 and 6 as GPIOs and using an arduino for power and ground. I can hear the sensor making a noise and have tested that it works using arduino but when I connect to pixhawk I get no distance measurment. Below are two images of the signal from pixhawk vs from arduino when testing the sensor.

From pixhawk (doesnt work)

From Arduino (works)

did you set `SERVO13_FUNCTION and SERVO14_FUNCTION to -1 so they can be used as GPIO?

https://ardupilot.org/copter/docs/common-gpios.html

Yes I tried that. I followed the whole GPIO page.

Post a log or parameters.

I got it working, I think it was a problem with my pixhawk I updated to a pixhawk 4 and it fixed it.

1 Like

Hello, did you have any problems under the gust of propellers? In our trials the jsn-sr04t paced under propellers, or later above the drone near the center of the drone, away from the propellers, after the start of the propellers gust, the sensor started delivering inconsistent distant values. IT was due to the flowing air from the front of the sensor. Did you encounter with such a problem?

It’s a terrible sensor, get a lidar like vl53l1x or tfmini.

Thx for sharing your opinion.