Main page
Recent changes
Band decoder MK2
B
I
U
S
link
image
code
list
Show page
Syntax
!!CONFIGURE OUTPUTS You can uncomment more than one output, but '''not all combinations are worked'''. '''Always usable''' - may all at once. * [8 output driver|Band decoder 2#Configure_output_driver] - allways enabled * [Yaesu BCD|Band decoder 2#YAESU_BCD_output] - allways enabled except activate Yaesu BCD input * [Serial echo|Band decoder 2#SERIAL_ECHO] '''Only one''' from (not available during active Frequency request option (available only one TXD line) * [Icom CIV|Band decoder for Arduino#ICOM_CIV_output] * [Kenwood CAT|Band decoder for Arduino#KENWOOD_CAT_output] * [Yaesu CAT|Band decoder for Arduino#YAESU_CAT_output] {{//=====[ Outputs ]============================================================================================ // #define SERIAL_echo // Feedback on serial line in same baudrate, CVS format <[band],[freq]>\n // #define ICOM_CIV_OUT // send frequency to CIV ** you must set TRX CIV_ADRESS, and disable ICOM_CIV ** // #define KENWOOD_PC_OUT // send frequency to RS232 CAT ** for operation must disable REQUEST ** // #define YAESU_CAT_OUT // send frequency to RS232 CAT ** for operation must disable REQUEST ** }} !!![8 output driver|Band decoder 2#Configure_output_driver] * Allways enabled. !!!How to expand outputs Band decoder use internal shift register with 8 outputs. This is free expandable. You can connect next shift register to P5 output connector. Schematics module for serial chain linkink on picture. [https://remoteqth.com/img/wiki-bd2-25.png] And sets number of all shift register in firmware * internal = 1 * internal + one external =2 {{int NumberOfBoards = 2; // number of eight byte shift register 0-x}} !!!SERIAL ECHO '''Activate''' uncomment line {{#define SERIAL_echo}} Requires setting {{#define SERBAUD 9600}} [Next > Upload Firmware -->|Band decoder for Arduino#Upload_Firmware] !!!YAESU BCD output Always activate - except enable BCD input. You can set rules to select BCD output, dependency to detected band input. {{//=====[ BCD OUT ]=========================================================================================== const boolean BCDmatrixOUT[4][16] = { /* -------------------------------------------------------------------- Band # to output relay 0 1 2 3 4 5 6 7 8 9 10 (Yaesu BCD) 160 80 40 30 20 17 15 12 10 6m -------------------------------------------------------------------- | | | | | | | | | | | V V V V V V V V V V V */ { 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1 }, /* --> DB25 Pin 11 */ { 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1 }, /* --> DB25 Pin 24 */ { 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1 }, /* --> DB25 Pin 12 */ { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 }, /* --> DB25 Pin 25 */}; //============================================================================================================ }} !!!ICOM CIV output '''Activate''' uncomment line {{#define ICOM_CIV_OUT}} Requires baud rate and '''CIV address''' in setting section of source code {{#define SERBAUD 9600 // [baud] Serial port in/out baudrate #define CIV_ADR_OUT 0x56 // HEX Icom adress (0x is prefix)}} * short '''JP1''' left (TXD) !!!KENWOOD CAT output '''Activate''' uncomment line {{#define KENWOOD_PC_OUT}} Requires baud rate in setting section of source code {{#define SERBAUD 9600 // [baud] Serial port in/out baudrate}} * short '''JP1''' right (TXD) * short '''JP7''' !!!YAESU CAT output '''Activate''' uncomment line {{#define YAESU_CAT_OUT}} Requires baud rate in setting section of source code {{#define SERBAUD 9600 // [baud] Serial port in/out baudrate}} * short '''JP1''' right (TXD) * short '''JP7''' !!!PWM (Analog) output '''Activate''' uncomment line {{#define PWM_OUT}} PWM signal output is on '''pin 12, DB-25''' connector. For convert to analog voltage 0-5V need add RC filter to this output. * R '''10k''' * C '''10uF''' [https://remoteqth.com/img/wiki-bd2-26.png|noborder] For each band set PWM output (range 0-255) in table {{ const long PwmByBand[16] = {/* PWM 0-255 */ 0, // #0 OUT of band 15, // #1 [160m] 30, // #2 [80m] 45, // #3 [60m] 45, // #4 [40m] 60, // #5 [30m] 75, // #6 [20m] 90, // #7 [17m] 105, // #8 [15m] 120, // #9 [12m] 135, // #10 [10m] 150, // #11 [6m] 165, // #12 [4m] 180, // #13 [2m] 195, // #14 [70cm] 210, // #15 [23cm] 225, // #17 [13cm] }; }} After assembly, measure the output voltage and adjust the PWM values according to your requirements. '''Warning:''' the output is high impedance, a load of low impedance will affect the output voltage. You can use an OP-AMP buffer for low impedances.
Password
Summary of changes