APM RSSI 3.3V input

3689559023?profile=original

For some time I wanted to add ability to provide RSSI from FrSky receiver to APM.

RSSI_PIN parameter works fine for that however some of receivers such as mine FrSky D8R-XP outputs 0 - 3.3 V. For that purpose I've added new param and called it RSSI_RANGE.
This was also issue requested before: https://github.com/diydrones/ardupilot/issues/648
After voltage rescaling it works. rxrssi is shown in scale 0-100.

And added ability to rescale in params:

3689558933?profile=original

Here few pictures:

3689559042?profile=original

  

I've used 4.7k resistor and 10uF capacitor to filter pulse signal coming from receiver's RSSI output.

3689558942?profile=original

3689559057?profile=original

Hope this helps anyone.


Lukasz

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones

Comments

  • dumb question, but should the RC filter be closer to the receiver, to the output, or is it irrelevant?

  • I just wonder if the "rssi range" will be in arduplane  ?

    fingers crossed

    cheers darren

  • I've just checked with Randy, and he told me that the rssi 3.3v code update did not make it into AC3.1. It will be in the AC3.2 First release candidate due in two weeks' time.
  • Hi lukasz,

    Im experiencing the same as Farmertom, I've just updated my firmware to 3.0.1 for my tbs discovery but I cannot see the RSSI_Range. I did follow your instructions in order to make the signal work with the components you suggested.

    Kind regards,

    Peter

  • My branch of code is here https://github.com/lukaszkn/ardupilot

    I've made pull request so it was added 25 days ago.

    https://github.com/lukaszkn/ardupilot/commit/9fe94d92191221c6d2353d...

    lukaszkn/ardupilot
    APM Plane, APM Copter, APM Rover source. Contribute to lukaszkn/ardupilot development by creating an account on GitHub.
  • Righto, got the filter all hooked up and receiving RSSI but only showing around 60% when it should be 100%. Would you have the code you edited available so that we can compile ourselves. I'm just impatient, and cant wait for it to be added into the arduplane release. Thanks :)

  • The wiring diagram should be posted on the wiki page also :-)

  • Hi,

    When will this be made available? I just downloaded/install the latest firmware and the RSSI_Range parameter did not show up? Am I missing something? Too soon?

    thanks

    farmertom 

  • Thank you for adding this! ;)

This reply was deleted.