¿ªÔÆÌåÓý

Re: Wow... 15 volts in and a bunch out..


 

Jeffery,

One last step to the last #57649..

Once the relays are rewired the code must change.

From this:
/**
?* Select the properly tx harmonic filters
?* The four harmonic filters use only three relays
?* the four LPFs cover 30-21 Mhz, 18 - 14 Mhz, 7-10 MHz and 3.5 to 5 Mhz
?* Briefly, it works like this,?
?* - When KT1 is OFF, the 'off' position routes the PA output through the 30 MHz LPF
?* - When KT1 is ON, it routes the PA output to KT2. Which is why you will see that
?*? ?the KT1 is on for the three other cases.
?* - When the KT1 is ON and KT2 is off, the off position of KT2 routes the PA output
?*? ?to 18 MHz LPF (That also works for 14 Mhz)?
?* - When KT1 is On, KT2 is On, it routes the PA output to KT3
?* - KT3, when switched on selects the 7-10 Mhz filter
?* - KT3 when switched off selects the 3.5-5 Mhz filter
?* See the circuit to understand this
?*/
?
void setTXFilters(unsigned long freq){
??
? if (freq > 21000000L){? // the default filter is with 35 MHz cut-off
? ? digitalWrite(TX_LPF_A, 0);
? ? digitalWrite(TX_LPF_B, 0);
? ? digitalWrite(TX_LPF_C, 0);
? }
? else if (freq >= 14000000L){ //thrown the KT1 relay on, the 30 MHz LPF is bypassed and the 14-18 MHz LPF is allowd to go through
? ? digitalWrite(TX_LPF_A, 1);
? ? digitalWrite(TX_LPF_B, 0);
? ? digitalWrite(TX_LPF_C, 0);
? }
? else if (freq > 7000000L){
? ? digitalWrite(TX_LPF_A, 1);
? ? digitalWrite(TX_LPF_B, 1);
? ? digitalWrite(TX_LPF_C, 0);? ??
? }
? else {
? ? digitalWrite(TX_LPF_A, 1);
? ? digitalWrite(TX_LPF_B, 1);
? ? digitalWrite(TX_LPF_C, 1);? ??
? }
}

To this:
/**
?* Select the properly tx harmonic filters
?* The three harmonic filters use only three relays
?* the three LPFs cover? 18 - 14 Mhz, 7-10 MHz and 3.5 to 5 Mhz
?* if none are selected the path is straight through and use of external bandpass filter required.
?*?See the circuit to understand this
?*/
?
void setTXFilters(unsigned long freq){
? if (freq > 20000000L){? ? ? ? ? //? ?for 20 mhz and up its straight through no filters.
? ? digitalWrite(TX_LPF_A, 0);
? ? digitalWrite(TX_LPF_B, 0);
? ? digitalWrite(TX_LPF_C, 0);
? }
? else if (freq >= 14000000L){? // KT1 is picked and the 14-18 MHz LPF is selected
? ? digitalWrite(TX_LPF_A, 1);
? ? digitalWrite(TX_LPF_B, 0);
? ? digitalWrite(TX_LPF_C, 0);
? }
? else if (freq > 7000000L){ // KT2 is picked and the 14-18 MHz LPF is selected
? ? digitalWrite(TX_LPF_A, 0);
? ? digitalWrite(TX_LPF_B, 1);
? ? digitalWrite(TX_LPF_C, 0);? ??
? }
? else {? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // KT3 is picked and the 14-18 MHz LPF is selected
? ? digitalWrite(TX_LPF_A, 0);
? ? digitalWrite(TX_LPF_B, 0);
? ? digitalWrite(TX_LPF_C, 1);? ??
? }
}
?
?

Join [email protected] to automatically receive all group messages.