How to setup Telemetry with your Naze32 and FrSky D4R-II

How to setup Telemetry with your Naze32 and FrSky D4R-II

It only takes 1 wire.

Telemetry is a great thing,  It essentially puts important vitals about your quad onto your transmitter.  Sure, with an OSD, you get the same thing, but it is nice to have an alarm on your Taranis for when things go wrong with your OSD!  It is also a good reminder to have a radio alarm that talks to you with haptic feedback when your voltage gets low.  Lets face it, sometimes it’s easy to focus on the flying more than the voltage.  I have had this problem before, so creating an alarm in the radio using Telemetry is a great idea.

There are different ways to setup your telemetry depending on whether you are using Baseflight or Cleanflight.

The D4R-II connection is the same regardless of which software you use.  The Telemetry is a one-way communication, and therefore, you only need to connect the Tx (transmit) line from the Flight controller, to the Rx( receive) line on the D4R-II.

Naze32 telemetry setup D4R-II

Naze32 telemetry setup D4R-II

Baseflight steps:

There are 3 ways to get the telemetry data back to your Taranis.

Option 1- Use the telemetry pins on the board

The standard pins on the board labeled telemetry are a good choice if you are not going to run any additional electronics.

Use this option if you are not planning to add other electronics to your Naze32 like a OSD, Bluetooth, etc. With this option you will use a real UART (serial) port to send the data to your FrSky receiver. Note that when you uses this option, you can’t use the regular tx/rx pins anymore since they are shared with the FrSky pins on the Naze32.  The Naze32 UART is shared with the USB port and the TX&RX pins on top of the board so if you choose this method, you cannot use the USB or the TX & RX pins.  If you are planning on using either of these, then you will have to use a soft serial and option 2 or 3 below.

  1. Connect your FrSky receiver (like the d4r-II) to your naze. Connect the External analog telemetry Rx port of your FrSky receiver to the Tx FrSky port on the Naze32 (in the manual indicated as “5”)
  2. Connect your Naze32 to your Computer and open BaseFlight
  3. Go to the CLI tab and type the follow codes:
    1. Disable the softserial ports since we will use the real UART port
      feature -SOFTSERIAL
    2. Enable Telemetry
      feature TELEMETRY
    3. Set the port on which you would like to put the telemetry data out (we use “0”, since that is telemetry output over UART)
      set telemetry_port=0
    4. Set the protocol for the telemetry output (Use “0” to select the FrSky protocol)
      set telemetry_provider=0
    5. Save & Test.

 Option 2- use a software serial port on pin 6 (pair 5&6 rx&tx)

Use this option if you are planning to connect several electronics to your Naze32 that will use serial data like a OSD, Bluetooth etc. We will output the telemetry data through a softserial port. This is a “virtual UART”, so not a real UART (some say this slows down the Naze32.  We have not found there to be a difference in our testing). You MUST use PPM for this to work since we need the RC input pins!

  1. Connect your FrSky receiver (like the d4r-II) to your naze. Connect the External analog telemetry Rx port of your FrSky receiver to RC input pin 6 on the bottom of the Naze32 (See figure 2 in the manual)
  2. Go to the CLI tab and type the follow codes:
    1. enable the softserial port since we will be using softserial port instead of the real UART port
      feature SOFTSERIAL
    2. Enable Telemetry
      feature TELEMETRY
    3. Set the baudrate of the softserial to 9600 to communicate correclty with the FrSky receiver
      set softserial_baudrate=9600
    4. Set the softserial port 1 to inverted, since that is the way the FrSky protocol works.
      set softserial_1_inverted=1
    5. set the port on which you would like to put the telemetry data out (we use “1”, since that is telemetry output over the soft serial rc input pin 6)
      set telemetry_port=1
    6. set the protocol for the telemetry output (we use “0” to select the FrSky protocol)
      set telemetry_provider=0
    7. Save & test

for fast update of fc, you can paste this directly into the CLI then push save:
feature softserial
feature telemetry
set softserial_baudrate=9600
set softserial_1_inverted=1
set telemetry_port=1
set telemetry_provider=0

 

Option 3- use a software serial port on pin 8 (pair 7&8 rx&tx)

This option is the same as above, but it sets the soft serial output on pair 7&8 instead of 5&6.

You MUST use PPM for this to work since we need the RC input pins!

  1. Connect your FrSky receiver (like the d4r-II) to your naze. Connect the External analog telemetry Rx port of your FrSky receiver to RC input pin 6 on the bottom of the Naze32 (See figure 2 in the manual)
  2. Go to the CLI tab and type the follow codes:
    1. Enable the softserial port since we will be using softserial port instead of the real UART port
      feature SOFTSERIAL
    2. Enable Telemetry
      feature TELEMETRY
    3. Set the baudrate of the softserial to 9600 to communicate correclty with the FrSky receiver
      set softserial_baudrate=9600
    4. Set the softserial port 1 to inverted, since that is the way the FrSky protocol works.
      set softserial_1_inverted=1
    5. set the port on which you would like to put the telemetry data out (we use “2”, since that is telemetry output over the soft serial rc input pin 8)
      set telemetry_port=2
    6. set the protocol for the telemetry output (we use “0” to select the FrSky protocol)
      set telemetry_provider=0
    7. Save & test

Cleanflight steps:

The same convention applies with Cleanflight.–If you won’t use the UART for anything else (minimosd, GPS, etc) then you can use the telemetry pins:

you still have to set the output to inverted.  The CLI command is different,  You will have to enter

FrSky telemetry in cleanflight

FrSky telemetry is transmit only and just requires a single connection from the TX pin of a serial port to the RX pin on an FrSky telemetry receiver.

FrSky telemetry signals are inverted. To connect a cleanflight capable board to an FrSKy receiver you have some options.

  1. A hardware inverter – Built in to some flight controllers.
  2. Use software serial and enable frsky_inversion.
  3. Use a flight controller that has software configurable hardware inversion (e.g. STM32F30x).:

 

I like to use a soft serial port, so you should invert the telemetry in the CLI with this command:

set telemetry_inversion = 1

Then setup your ports in the GUI: You have to start with the configuration screen: You must be using PPM or a serial connection to your receiver in order to be able to enable soft serial select SOFTSERIAL and the TELEMETRY checkboxes, Click save.

cleanflight Frsky Telemetry instructions and how to.

cleanflight Frsky Telemetry instructions and how to

Next, open the Ports tab:
Select which UART you want to output the Telemetry signal on. (in our case, we are choosing pin 6 which is softserial1)
pull down the menu to FRSKY and set the baud rate to auto.
click save.

cleanflight Frsky Telemetry instructions and how to.

cleanflight Frsky Telemetry instructions and how to.


Your final screen should looks something like this:
cleanflight Frsky Telemetry instructions and how to.

cleanflight Frsky Telemetry instructions and how to.

Click save and reboot.
If all went well, now when you hold the page button down on your Taranis, you should see some telemetry data.

Conclusion

In conclusion,

  • Telemetry can be easily setup in Cleanflight and in Baseflight.
  •  It's a one wire connection, tx from the flight controller to rx of the d4r-II telemetry pins.  
  • The serial port has to be inverted in order for it to work.  
  • We like to use soft serial ports, which are related to pins 5,6,7,8.
  •  Pins 5 & 6 are related to soft serial 1 and pins 7 & 8 to soft serial 2.  Pin 5 is rx, 6 is tx, 7 is rx and 8 is tx respectively.

We choose to use the GUI in cleanflight because the way that the port setup in the cleanflight CLI is is pretty bonkers.
Baseflight is the easiest to setup, You simply type in the cli commands listed and it works.

We hope that helps you setup telemetry on your quad.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>