Main page
Recent changes
6x2 Antenna switch control
B
I
U
S
link
image
code
list
Show page
Syntax
!!Configure *'''Description antennas''' - show on LCD and web page, firt and last line do not change{{char* ant[] = { "All OUT off", // <-- do not change this line "160m Vert.", " 80m Dipole", " 40m Moxon", " 30m Dipole", " 20m 2x 5el", " 10m 4x 6el", "M-off->BCD", // <-- do not change this line };}} * '''Inputs level''' - changing inputs level also need set JP8 jumper. Before opening enclosure has to be '''removed eight screws''' ('''three''' on left side, '''three''' on right side, '''two''' on rear side). **Set '''JP8 to HIGH''' - activate BCD inputs with TTL signal level (1k ohm pull-down resistor). And uncoment line{{#define inputHigh // enable input High level (default)}} **Set '''JP8 to LOW''' - activate BCD inputs to ground (1k ohm pull up resistor). And coment line{{//#define inputHigh // enable input High level (default)}} * Number of inputs{{#define Inputs 6 // number of antenna used}} * Number of ports{{#define Ports 2 // number of - IN/OUT pair devices and LCD lines (support from 2 to 4)}} * LCD culumn{{#define LCDculumn 16}} * Serial Echo, show status on serial interface{{//#define serialECHO // enable TX echo on serial port #define SERBAUD 9600 // [baud] Serial port baudrate}} * '''Ethernet -''' before enable in firmware need open enclosure and instal optional module USR-ES1.{{//#define EthModule // enable Ethernet module}} ** Ethernet addres may be get automatically from DHCP server - for enable uncoment line{{#define __USE_DHCP__ // Uncoment to Enable DHCP}} ** Static IP address (if DHCP disable) set in this lines{{IPAddress ip(192, 168, 1, 220); // IP IPAddress gateway(192, 168, 1, 200); // GATE IPAddress subnet(255, 255, 255, 0); // MASK IPAddress myDns(8, 8, 8, 8); // DNS (google pub) EthernetServer server(80); // web server PORT}} !!!BCD IN OUT matrix table Set the last two lines (value between 0 to 6) how outputs represent BCD input value. {{--------------------------------------------------------------------------------------- Input levels BCD-1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 BCD-2 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 BCD-3 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 BCD-4 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 --------------------------------------------------------------------------------------- Band # input 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (Yaesu Band) 160 80 40 30 20 17 15 12 10 6m --------------------------------------------------------------------------------------- | | | | | | | | | | | | | | | | V V V V V V V V V V V V V V V V */ { 0, 1, 2, 3, 0, 4, 0, 5, 0, 6, 0, 0, 0, 0, 0, 0 }, /* --> ANT-1 OUTPUT */ { 0, 1, 2, 3, 0, 4, 0, 5, 0, 6, 0, 0, 0, 0, 0, 0 }, /* --> ANT-2 OUTPUT}} This example activate non WARC bands. ---- [<-- Web page|https://remoteqth.com/6x2-antenna-switch-control.php]
Password
Summary of changes