Traxxas TQ 1st gen: try 5
[DIY-Multiprotocol-TX-Module.git] / docs / Frequency_Tuning.md
blob3800b754242f4021130d2a76d6a1e11b64b1eb86
1 # Frequency Tuning
2 Certain protocols which use the CC2500 RF module require fine-tuning the frequency for optimal performance with genuine receivers.  
4 The protocols which require frequency tuning are:
5 * **FrSkyD** (e.g. FrSky D4R and D8R, DIY RX-F801 and RX-F802 receivers)
6 * **FrSkyV** (e.g. FrSky V8R4, V8R7 and V8FR receivers)
7 * **FrSkyX** (e.g. FrSky X4R, X6R, X8R, and XSR receivers)
8 * **S-FHSS** (e.g. Futaba S-FHSS receivers)
9 * **Corona** (e.g. Corona V1 FSS, Corona V2 DSSS CR8D/CR6D/CR4D and FlyDream IS-4R/IS-4R0 receivers)
10 * **Hitec** (e.g. Optima, Minima, Micro and RED receivers)
11 * **HoTT** (e.g. Graupner receivers)
13 There is a [video](#video) at the end of this page which gives an example of the tuning process.
15 ## More information
16 Original FrSky, Futaba, Corona Hitec and HoTT receivers have been frequency-tuned by the manufacturer at the factory.  Because of variations in the oscillator crystals used in multiprotocol modules it is necessary to fine-tune the module to match the manufacturer frequencies.  
18 'Compatible' receivers suffer the same variation in crystal oscillators as multiprotocol modules, but have to be compatible with genuine (manufacturer-tuned) transmitters so they will typically have auto-tuning built in, and will self-tune to the radio's frequency when they are bound.
20 ## Fine-tuning procedure
21 **Note:** For best results, the fine-tuning procedure should be carried out with a genuine FrSky/Futaba/Corona/Hitec/HoTT receiver.
23 The procedure can be performed in serial or PPM mode, but is easier with in serial mode where the effect of the change can be seen in real-time.
25 ### Preparation
26 The radio needs to be bound with the receiver in order to fine tune.  If the receiver does not bind, use *coarse* tuning (varying the **Freq** value in steps of +/- 40) until the receiver binds.
28 1. Configure the radio with the appropriate protocol
29 1. Set the **Freq** value to 0
30 1. Put the receiver into **Binding** mode
31 1. Attempt to bind the radio to the receiver
33 If the radio binds to the reciever, carry on.  If not, return to step 2. and change the **Freq** value to either **-40** or **40** and try to bind again.  If you still can't bind continue to try higher and lower values until the bind is successful.
35 ### Fine tuning
36 **Tip:** If you have telemetry configured and a voice-capable radio, enable a voice alarm for telemetery loss so that you receive an immediate alert when the receiver connection is lost.
38 Once the radio is bound to the receiver:
39 1. Return to the **Freq** option
40 1. Lower the value until the radio loses the connection with the receiver.  Record the value (`TUNE_MIN`).
41 1. Raise the value so that the connection is restored, then continue to raise it until the radio loses the connection with the receiver again.  Record the value (`TUNE_MAX`).
42 1. Calculate the median between the two values
43    `(TUNE_MIN + TUNE_MAX) / 2 = TUNE_MEDIAN`
44 1. Set **Freq** to the median value
46 #### Example 
47 Connection is lost at -73 and +35; the median is -19:
49 `(-73 + 35) / 2 = -19`
51 ### Finally
52 Usually all RXs using the same protocol&sub_protocol can use the same **Freq** value but it can't harm to do all of them.
53 If you change the Freq value it is best to rebind the receiver(s).
55 #### Forced tuning values
56 For convenience the freq value can be applied once for all per protocol using the FORCE commands described below in `_Config.h` (or `_MyConfig.h`) configuration file.
57 These settings can also be used to force different tuning values for different multiprotocol modules, removing the need to alter the tuning option on the transmitter when swapping between modules. (Assuming that the modules also share a common hardware ID.)
59 Once known-good tuning values have been determined, they can be stored in the configuration file to be automatically applied to all models which use the given protocol.
61 **Note:** If a forced tuning value is set in the configuration, the protocol's **Freq** option on the radio GUI will be ignored whatever the value is set to.
63 ```
64 /*******************************/
65 /*** CC2500 FREQUENCY TUNING ***/
66 /*******************************/
67 //For optimal performance the CC2500 RF module used by the FrSkyD, FrSkyV, FrSkyX, SFHSS, CORONA and Hitec protocols needs to be tuned for each protocol.
68 //Initial tuning should be done via the radio menu with a genuine FrSky/Futaba/CORONA/Hitec receiver.  
69 //Once a good tuning value is found it can be set here and will override the radio's 'option' setting for all existing and new models which use that protocol.
70 //Valid range is -127 to +127
71 //Uncomment the lines below (remove the "//") and set an appropriate value (replace the "0") to enable.
72 //#define FORCE_FRSKYD_TUNING 0
73 //#define FORCE_FRSKYV_TUNING 0
74 //#define FORCE_FRSKYX_TUNING 0
75 //#define FORCE_SFHSS_TUNING  0
76 //#define FORCE_CORONA_TUNING  0
77 //#define FORCE_HITEC_TUNING  0
78 //#define FORCE_HOTT_TUNING  0
79 ```
81 ## Video
82 [![Frequency tuning video](https://img.youtube.com/vi/C483uNWwAaM/0.jpg)](https://www.youtube.com/watch?v=C483uNWwAaM)