Main page
Recent changes
Band decoder MK2
B
I
U
S
link
image
code
list
Show page
Syntax
!!CONFIGURE INPUTS Individual functionality is enable or disable with [coment/uncoment preset line|https://www.arduino.cc/reference/en/language/structure/further-syntax/singlelinecomment/] First sets global frequency rules which they choose '''BAND number by frequency''' with a resolution of one Hz. Also may be use for partition one band to more subbands. {{ //Freq Hz from to Band number {1810000, 2000000}, // #1 [160m] {3500000, 3800000}, // #2 [80m] {7000000, 7200000}, // #3 [40m] {10100000, 10150000}, // #4 [30m] {14000000, 14350000}, // #5 [20m] {18068000, 18168000}, // #6 [17m] {21000000, 21450000}, // #7 [15m] {24890000, 24990000}, // #8 [12m] {28000000, 29700000}, // #9 [10m] {50000000, 52000000}, // #10 [6m] {144000000, 146000000}, // #11 [2m] {430000000, 440000000}, // #12 [70cm] {1240000000, 1300000000}, // #13 [23cm] {2300000000, 2450000000}, // #14 [13cm] {3300000000, 3500000000}, // #15 [9cm] {5650000000, 5850000000}, // #16 [6cm] }} Second uncomment and activate '''only one input''' in source code {{//=====[ Inputs ]============================================================================================= // #define ICOM_CIV // read frequency from CIV // #define KENWOOD_PC // RS232 CAT //#define YAESU_BCD // TTL BCD in A // #define ICOM_ACC // voltage 0-8V on pin4 ACC(2) connector - need calibrate table // #define INPUT_SERIAL // telnet ascii input - cvs format [band],[freq]\n // #define YAESU_CAT // RS232 CAT YAESU CAT since 2015 ascii format // #define YAESU_CAT_OLD // Old binary format RS232 CAT ** tested on FT-817 ** }} And connect to TRX as described below Available Inputs * [ICOM CIV|Band decoder 2#ICOM_CI_V] * [Kenwood/Elecraft RS232|Band decoder 2#Kenwood_Elecraft_RS232] * [YAESU/General BCD|Band decoder 2#YAESU_General_BCD] * [ICOM ACC(2)voltage|Band decoder 2#Icom_ACC_voltage] * [YAESU CAT|Band decoder 2#YAESU_CAT] * [Input Serial|Band decoder 2#Input_Serial] !!!Icom CI-V * '''Activate''' uncomment line{{#define ICOM_CIV}} * And settings with{{ #define SERBAUD 9600 // [baud] Serial port in/out baudrate #define WATCHDOG 10 // [sec] determines the time, after which the all relay OFF, if missed next input data - uncomment for the enabled #define REQUEST 500 // [ms] use TXD output for sending frequency request #define CIV_ADRESS 0x56 // CIV input HEX Icom adress (0x is prefix) }} * short '''JP1''' * short '''P10''' left/down * short '''P11''' left/down * Connect trough two wire line [https://remoteqth.com/img/wiki-bd2-08.png|noborder] !!!Kenwood/Elecraft RS232 * '''Activate''' uncomment line{{#define KENWOOD_PC}} * And settings with{{ #define SERBAUD 9600 // [baud] Serial port in/out baudrate #define WATCHDOG 10 // [sec] determines the time, after which the all relay OFF, if missed next input data - uncomment for the enabled #define REQUEST 500 // [ms] use TXD output for sending frequency request }} !!!!Sniffing mode * short '''P11''' right/top * Connect trough two wire line [https://remoteqth.com/img/wiki-bd2-04.png|noborder] !!!!Request mode * short '''P10''' right/top * short '''P11''' right/top * Connect trough three wire line [https://remoteqth.com/img/wiki-bd2-05.png|noborder] !!!!Kenwood (old) TS-x50 inverted TTL * short '''P10''' right/bottom * short '''P11''' right/bottom * Connect trough three wire line [https://remoteqth.com/img/wiki-bd2-21.png|noborder] !!!FLEX-6000 RS-232 Need USB/232 interface - see in [manual guide|https://www.flexradio.com/downloads/usb-cable-interface-guide-pdf/] * '''Activate''' uncomment line{{#define FLEX_6000}} and connecting same as [Kenwood|https://www.remoteqth.com/wiki/index.php?page=Band+decoder+MK2#Kenwood_Elecraft_RS232] !!!YAESU/General BCD * '''Activate''' uncomment line{{#define YAESU_BCD}} * Connect trough five wire line [https://remoteqth.com/img/wiki-bd2-06.png|noborder] !!!Icom ACC voltage !!!!Hardware dependency *'''Open JP6''' SMT pad on bottom side of PCB *'''Short JP7''' SMT pad on bottom side of PCB *'''Short JP9''' SMT pad on bottom side of PCB - {.redka#id color: #f23f37;}must be, else risk damage the procesor.{/} !!!!How to calibrate * After make hardware dependency * Connect trough two wire line voltage from TRX to pin13 on DB25 connector according to picture [https://remoteqth.com/img/wiki-bd2-07.png|noborder] * '''Activate''' uncomment line{{#define ICOM_ACC}} * need disable watchdog{{ // #define WATCHDOG 10 // [sec] determines the time, after which the all relay OFF, if missed next input data - uncomment for the enabled}} * '''Upload firmware''' * Read voltage from LCD by band, and preset rules in table{{ //=====[ Icom ACC voltage range ]=========================================================== if (AccVoltage > 0.73 && AccVoltage < 1.00 ) {BAND=10;} // 6m * * * * * * * * * * * * * * * * if (AccVoltage > 1.00 && AccVoltage < 1.09 ) {BAND=9;} // 10m * Need * if (AccVoltage > 1.09 && AccVoltage < 1.32 ) {BAND=8;} // 12m * calibrated to your * if (AccVoltage > 1.32 && AccVoltage < 1.55 ) {BAND=7;} // 15m * own ICOM * if (AccVoltage > 1.55 && AccVoltage < 1.77 ) {BAND=6;} // 17m * ---------------- * if (AccVoltage > 1.77 && AccVoltage < 2.24 ) {BAND=5;} // 20m * (These values have * if (AccVoltage > 0.10 && AccVoltage < 0.50 ) {BAND=4;} // 30m * been measured by any) * if (AccVoltage > 2.24 && AccVoltage < 2.73 ) {BAND=3;} // 40m * ic-746 * if (AccVoltage > 2.73 && AccVoltage < 2.99 ) {BAND=2;} // 80m * * if (AccVoltage > 2.99 && AccVoltage < 4.00 ) {BAND=1;} // 160m * * * * * * * * * * * * * * * * if (AccVoltage > 0.00 && AccVoltage < 0.10 ) {BAND=0;} // parking //========================================================================================== }} * '''Upload firmware again''' * Precise calibrate value reach with measure voltage on Aref input (C17) and insert to code{{float ArefVoltage = 4.228; // Measure on Aref pin 20 for calibrate}} !!!YAESU CAT * '''Activate''' uncomment line{{#define YAESU_CAT}} * And settings with{{ #define SERBAUD 9600 // [baud] Serial port in/out baudrate #define WATCHDOG 10 // [sec] determines the time, after which the all relay OFF, if missed next input data - uncomment for the enabled #define REQUEST 500 // [ms] use TXD output for sending frequency request }} !!!!Sniffing mode * short '''P11''' right/top * Connect trough two wire line [https://remoteqth.com/img/wiki-bd2-04.png|noborder] !!!!Request mode * short '''P10''' right/top * short '''P11''' right/top * Connect trough three wire line [https://remoteqth.com/img/wiki-bd2-05.png|noborder] !!!Input Serial Activate uncomment line {{#define INPUT_SERIAL}} * Disable watchdog{{ // #define WATCHDOG 10 // [sec] determines the time, after which the all relay OFF, if missed next input data - uncomment for the enabled}} Not need any hardware settings, only send via USB to serial line ascii characters in preconfigured baudrate. {{X,YYYYYYY\n}} *'''X''' - band output in range 0-14, if activate BCD output range is 0-10 because 11-14 reserved for BCD. 0 (zero) = no output will be turned on. *'''YYYYYYY''' - frequency in Hz - has no effect on the output relays, used if any CIV/CAT outputs activated. *'''\n''' - is LF Line Feed (0A in hex) [https://remoteqth.com/img/wiki-bd-serial.png]
Password
Summary of changes