How to use analog-pwm rangefinder (sonar) on Pixracer

Hi,
I’ve been skipping a few weeks, apologies for late response.
Although I cannot answer your questions, this is very similar to what I wanted to achieve.
This topic is about creating a ‘converter’ between my pixracer and a non-compatible range finder.
If you can make it work on an arduino, arduino can translate this to another supported protocol.
cheers

Thank you. I finally achieved this by using a stm8. Then the sonar data was sent through uart protocol to pixhawk.