Main page
Recent changes
Band decoder for Arduino
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 possible'''. See on [Context table|https://remoteqth.com/arduino-band-decoder.php#input-outputs-context] and description of parts. '''Always usable''' - may all at once. * [14 Relay|Band decoder for Arduino#14_RELAYS] - allways enabled (with enable BCD output, 10 relay) * [Serial echo|Band decoder for Arduino#SERIAL_ECHO] * [Yaesu BCD|Band decoder for Arduino#YAESU_BCD_output] '''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] * [Remote IP Relay|Band decoder for Arduino#External_remote_14_IP_Relay] {{//=====[ Outputs ]============================================================================================ // #define REMOTE_RELAY // TCP/IP remote relay - need install and configure TCP232 module // #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 KENWOOD_PC and REQUEST ** // #define BCD_OUT // output 11-14 relay used as Yaesu BCD }} !!External remote 14 IP Relay Need two device with TCP232 ethernet module included * IP Band decoder * IP Relay [https://remoteqth.com/img/wiki-bd-ip-rel.png|noborder] * '''IP Band decoder''' use [arduino firmware rev 0.4 or higher -->|https://remoteqth.com/arduino-band-decoder.php#download] for band decoder: ** Remove all jumpers. ** [Configure Inputs -->|Band decoder for Arduino#Configure_inputs] dependancy to your trx. ** If band decoder work with you TRX well, activate transceive data with uncomment line {{#define REMOTE_RELAY // TCP/IP remote relay - need install and configure TCP232 module}} (enable other outputs is not recommended), and upload new firmware '''(before upload remove all jumpers - after return back).''' ** Enable IP module with '''short jumper JP5.''' * '''IP Relay ''' - use different [arduino firmware for IP relay -->|https://remoteqth.com/arduino-band-decoder.php#download] ''band-decoder-0x-rel'' ** Remove '''jumper JP5'''. ** configure three settings {{#define delayR 10 // sec [Relay] determines the time, after which the relay parking #define parking 14 // out [Relay] 1-14 parking output after timeout - optimally for grounded antenna int baud = 9600;}} '''baudrate must be same as TRX'''. ** Upload firmware. ** Return back '''jumper JP5'''. * '''Both devices''' ** [Configure Network -->|IP Remote hardware Switch#Network_setup] '''baudrate must be same as TRX.''' *'''{.redka#id color: #f23f37;}NOTE:{/} all baudrate must be same''' ** TRX ** Arduino firmware (band decoder) ** IP module in band decoder ** Arduino firmware (IP relay) ** IP module in IP relay [Next > Upload Firmware -->|Band decoder for Arduino#Upload_Firmware] !!14 RELAYS * Allways enabled. An entrance band data, or frequency, converts to output band 0-14 which can be configured in the following table - '''Preset Band to output matrix''' - in default settings Band-1 corresponds to Relay-1, etc. You can sets any combination outputs for each band separately. With change zeros and ones in the Matrix table. Band-0 reserved for out of range inputs measure. {{ //=====[ Sets band --> to output in MATRIX table ]=========================================================== boolean matrix[15][15] = { /* Band 0 --> */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* if inputs out of range \ Band 1 --> */ { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* \ Band 2 --> */ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* \ Band 3 --> */ { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* \ Band 4 --> */ { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* \ Band 5 --> */ { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* \ Band 6 --> */ { 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* IN ) Band 7 --> */ { 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 }, /* / Band 8 --> */ { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, /* / Band 9 --> */ { 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 }, /* / Band 10 -> */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 }, /* / Band 11 -> */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, /* / Band 12 -> */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 }, /* / Band 13 -> */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 }, /* Band 14 -> */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 }, /* | | | | | | | | | | | | | | V V V V V V V V V V V V V V ----------------------------------------------------------- | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ----------------------------------------------------------- OUTPUTS RELAY*/ }; //============================================================================================================ }} ''Note: if enable BCD output function, relay 11-14 reserved for BCD.'' [Next > Upload Firmware -->|Band decoder for Arduino#Upload_Firmware] !!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 '''Activate''' uncomment line {{#define BCD_OUT}} This option will reduce the number of relays at 10. Relay 11-14 used for BCD. In band-decoder.ino file you can set rules to select BCD output, dependency to detected band input. {{//=====[ Output BCD ]========================================================================== #if defined(BCD_OUT) void bcdOut(){ boolean BCDmatrixOUT[4][11] = { /* -------------------------------------------------------------------- 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 }, /* --> Relay 11 */ { 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1 }, /* --> Relay 12 */ { 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0 }, /* --> Relay 13 */ { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1 }, /* --> Relay 14}} [Next > Upload Firmware -->|Band decoder for Arduino#Upload_Firmware] !!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)}} [https://remoteqth.com/img/wiki-bd-icom-civ-output.png|noborder] * short '''JP1''' left (TXD) [Next > Upload Firmware -->|Band decoder for Arduino#Upload_Firmware] !!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}} [https://remoteqth.com/img/wiki-bd-kenwood-cat-output.png|noborder] * short '''JP1''' right (TXD) * short '''JP7''' [Next > Upload Firmware -->|Band decoder for Arduino#Upload_Firmware] !!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}} [https://remoteqth.com/img/wiki-bd-yaesu-cat-output.png|noborder] * short '''JP1''' right (TXD) * short '''JP7''' [Next > Upload Firmware -->|Band decoder for Arduino#Upload_Firmware]
Password
Summary of changes