Академический Документы
Профессиональный Документы
Культура Документы
Rev 2
Overview
The remote coax relay is a handy station accessory that provides a single pole, 4 throw RF coax
switch function. This allows you to select one of four radios to a single antenna, or one of four
antennas to a single radio. You can also use two board, connect the common connectors
together and have a 4x4 switch.
The circuit is designed to provide good performance over the entire HF spectrum from 0-30
MHz and up to 6m. The maximum rated power is 100 watts.
The built in connectors are BNC and spaced wide apart in case you need to use adapters to
UHF connectors If you mount the board in a box and want to use UHF or N connectors, you
can leave off the BNC connectors and put a short wire from the chassis mount connector to
the center pin of the footprint where the BNC connector goes.
The circuit is constructed from four latching relays. This means that you don’t need to keep
power applied to the board to keep it in the last state. The current relay selection is done by
pressing one of the built in push buttons on the board. To make remote operation easy, there
are solder pads that allows you to wire up 4 remote push buttons that switch to ground. Each
press of a port selection button will cause all relays to go to the open position then the one
port you want to select will then close into the operational position. On board LED’s will show
the current port that is enabled.
The on board microcontroller’s UART is connected to a jumper block which is then connected
to an RS485 interface, a wireless Xbee digital data radio socket and a header that can be used
with a FTDI USB to TTL converter cable. The jumper block selects which one of these
communications ports is connected to the microcontroller’s UART.
You can build software programs or hardware that can generate the proper ASCII strings to
control the board. The UART is set to 9600 baud. The ASCII command format is very simple as
follows:
//RY1 Selects RF port 1
The commands are the same regardless of the communications channel used.
Key Features
RS485
PIC programming
terminal block
jack
TTL header to
Config DIP switches USB cable
External button
connections
Manual control
buttons
Insertion loss < 0.1 db at 30 MHz
0
MHz
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29
-0.02
-0.04
-0.06
-0.08
-10.0
-20.0
-30.0
-40.0
-50.0
-60.0
-70.0
-80.0
-90.0
What do I need to buy and install?
Things You MUST Buy
The PCB and a programmed CPU chip are available form the Ham Radio Workbench web store.
The rest of the required components are available from Digikey with a handy link to populate
the shopping cart all the basic parts you need.
If you want to add the optional components, you will have to buy them manually on the web
site.
http://www.digikey.com/short/jp978p
The remote coax relay board supports a core set of functionality and optional communications
ports. You must install the CPU and all the components from the base parts list to the PCB.
This will provide the core relay board features when controlling from the built in push buttons
or wiring external push buttons to the solder pads in the lower left corner of the board.
Order of assembly is not critical. The general advice is to install the lowest parts first. Start
with resistors, capacitors, IC sockets, LEDs, etc. Finish up with the tall stuff like the relays, coax
connectors, push buttons. The board silkscreen indicates the value of components.
Optional Parts
The optional components are for external communications with the board over RS485, USB or
Xbee data radios. If you don’t plan to use any of these remote control ports, you can leave
those parts out. If you are not sure what you want to do eventually, you can install all
components including all the optional parts.
RS485 defines the physical interface on which you will transit ASCII control codes to the board.
RS485 uses a simple twisted pair of wires and can be run for up to a few thousand feet. This is
a great option when you can easily run cable. You will need to provide 12v DC at the remote
end. If you don’t have remote power, one popular option is to use common CAT5 network
cable. You will need a total of 4 conductors. +12v, ground and the two RS485 data wires. You
can twist together 3 of the wires for ground, twist together 3 wires for 12v and the remaining 2
wires for data. This will minimize the voltage drop if you are running a very long cable.
Optional – Choosing Xbee Data Radios
Digi International makes a very popular line of data radios in a small form factor called an
Xbee. These are 20 pin modules that are about 1” x 1”. The make several different versions
running different protocols, frequency bands and power levels with a variety of antenna
connectors. The beauty of these little radios is that there is a simple mode that only uses the
UART on the data radios. Any ASCII characters that enter the Rx port on the Xbee will be
transmitted to the other Xbee and the characters will pop out the Tx pin. You have just made a
wireless serial cable with little or no effort. To get going we recommend the 2.4 GHz radios
running the DigiMesh protocol stack (IEEE 802.15.4 plus Digi’s meshing stack). On the bill of
materials we listed various versions of the radios that are all compatible. They only vary in
power and RF connector. Just make sure you use the same version on both ends.
The radios will need to be configured with the Digi International X-CTU configuration software.
You need to select the following parameters.
Protocol Digimesh
Version 8073 (the version we test)
Channel D (can be any of the legal channels the software allows you to set)
VID 1234 (this is a 4 digit number and is like an SSID for the data network)
If you want to connect directly to your computer, FTDI makes a great cable that will plug into
your computer’s USB port and connect to the six pin header on the board. The signals at the
header are +5v TTL logic so if you want to get creative and connect to your own custom logic,
you can interface there.
Assembly Tips
1000 uf Capacitor
When inserting the 1000uf capacitor, put the long +
lead into the hole with the square solder pad and the
shorter
- lead in the hole with the round solder pad.
Resistor Networks
When installing resistor networks, pin 1 is the left pin when reading the Pin
text on the side of the resistor. On the silkscreen the end of the outline ON
that is highlighted is pin 1. Some have a X over the pad of pin 1, some
have a thicker silkscreen outline on pin 1.
100 uH Inductor
The inductor in the power supply circuit is non-polarized and can be
installed in either direction.
Crystal
When installing the crystal, make sure you put the crystal insulator
between the bottom of the crystal and the top of the PCB. The crystal
is not polarized and can go in either direction.
Parts Placement Diagram
Bill Of Materials
HRWB Remote Coax Relay Kit
Integrated Circuit 1 PIC18F4620 PIC18F4620-I/PT-ND
PCB 1 Remote coax relay board
1 2 3 4 A
GND
Ground
Ground
RS485-B
RS485-A
UART routing jumper
Insert a pair of jumpers for
the desired external
communications channel. Xbee Data Radio
Ground
n/c
+5v in
Data in
TTL UART
Data out
n/c
Configuration - Setting the DIP Switches
DIP Switch
The 8 position DIP switch is used to select operating parameters. The DIP switch is broken into two
sets of switches, the MODE switches and the ADDRESS switches.
MODE Switches
The 4 mode switches are read by the processor when the board boots up. On initial release of the
firmware rev 1 build 10, the mode switches do nothing. They are reserved for future features.
They can be put into any configuration until you install a version of firmware that has features that
support multiple modes.
ADDRESS Switches
The 4 address switches are used to assign the address of the board. In a simple configuration,
where you are using the mechanical buttons or external buttons to switch relays, the address is not
used so any setting is OK. If you are using any of the serial communication ports (RS485, Xbee,
USB), you can set the address of the board which allows you to run multiple boards on one control
network. With 4 DIP switches, you can set one of 16 addresses from 0 to 15. 0 is reserved for a
master PC or controller. You can select any devices address between 1 and 15. We suggest starting
with 1.
ADR A B C D
ON Position 1 2 4 8 (Bit value)
00 OFF OFF OFF OFF (Master PC)
01 ON OFF OFF OFF (Default)
02 OFF ON OFF OFF
03 ON ON OFF OFF
04 OFF OFF ON OFF
05 ON OFF ON OFF
06 OFF ON ON OFF
07 ON ON ON OFF
08 OFF OFF OFF ON
09 ON OFF OFF ON
10 OFF ON OFF ON
11 ON ON OFF ON
OFF Position 12 OFF OFF ON ON
13 ON OFF ON ON
14 OFF ON ON ON
15 ON ON ON ON
Configuration - Serial Port Jumper Settings
Jumper Settings
The serial port (UART) on the microcontroller can be connected to one of three external
communications ports. An RS-485 serial port, an XBEE data radio, a header connector to connect an
FTDI USB serial cable. Only one of the communications channels can be used at a time. To enable a
channel you will need to insert two jumpers as seen below.
RS485
RS485
RS485 is a two wire, half-duplex communications standard. The big advantage
XBEE of RS485 is it’s ability to transmit data over very long distances with a
maximum of about 4,000’. The two wires are called the A and B wires. It’s
USB recommended to provide a ground wire as a third wire for long runs. RS485 is
a multi-drop network meaning that you can put multiple devices in parallel on
the bus. This lets you put multiple coax relays or other controllers in the same
system.
XBEE
RS485
Xbee is a brand name of Digi International and refers to the 20 pin form factor
XBEE they defined. Digi and many other manufacturers make products that are pin
compatible. We recommend using Digi International’s Series 1 modules.
USB These radios provide a wireless serial connection between the controller and a
base station unit plugged into a PC. The Xbee radios are available on multiple
bands. We recommend the 2.4 GHZ radios running either 1 mW or 63mW
depending on the range needed. Radios are available with various antenna
options including a ¼ wave wire, RP-SMA and u.fl for external antennas.
USB
RS485
The USB mode provides TTL logic level signals at the 6 pin header connector.
XBEE The configuration of the header is compatible with an FTDI to USB cable. The
cable is the FTDI model TTL-232R-5V. You can order it from Digikey with the
USB part number 768-1028-ND.
When using a single board, you prefix all commands with // as all the examples
above show. In a network environment with multiple boards, you can assign an
address to each board. RS485 and the Xbee data radio communications options
are multi-drop networks. This means you can have multiple devices listening on
the network at the same time. If you have multiple devices and send a command
like //RY1, all boards will switch to position 1.
You can set each board’s address with the 8 bit DIP switch on the board. 4 bits
of the switch are reserved for the board address. 00 is reserved for the master PC
so boards can be anything between 1and 15. When the board powers up, it will
read the DIP switch to get the address.
In addition to the // prefix that talks to all boards, the addressing format allows
you to communicate with a single board using it’s address. The format is
/0001:RY1:xx
//STATE
Returns the status of the relay board including relay port state.
//STATUS
Returns a long list of configuration parameters.
//ALL
Bla bla bla blab lkjd lfkj lbkjkbj lkjblva bla bla bla.
//HELP
Displays the current short help screen
//PING
Responds to the master showing the device is present.