Band decoder for Arduino
This revision is from 2016/01/14 22:55. You can Restore it.
← Web page | HamShop.cz version →
The hardware
- Schematics
- PCB
Front side
- 1-14 - green LED signalized switched relay.
- 15-16 - non used outputs.
- white square - sign defines the type of equipment.
Back side
- DATA - RJ45 input data connector for Band decoder
- - TXD (UART/232 dependency internal switch).
- - GND.
- - RXD (UART/232 dependency internal switch).
- - BCD-1 input.
- - BCD-2 input.
- - +5V DC power supply.
- - BCD-3 input.
- - BCD-4 input.
- USB - +5V DC POWER supply, or upload arduino firmware.
- ETHERNET - not used.
- OUTPUTS - 14 relay outputs and GND.
How to connect Power
- plug power via usb mini cable to AC adapter, computer or usb HUB
Configure inputs
uncomment and activate only one input in source code
//=====[ Inputs ]============================================================================================= // #define INPUT_SERIAL // telnet ascii input - cvs format [band],[freq]\n (serial.h) // #define ICOM_CIV // read frequency from CIV (icom_civ.h) ** you must enabled 'CI-V transceive' in TRX settings, and disable ICOM_CIV_OUT ** // #define KENWOOD_PC // RS232 CAT (kenwood_pc.h) // #define YAESU_CAT // RS232 CAT (yaesu_cat.h) // #define YAESU_BCD // TTL BCD in A (yaesu_bcd.h) // #define ICOM_ACC // voltage 0-8V on pin4 ACC(2) connector - need calibrate in (icom_acc.h)And connect to TRX as described below
Input Serial
Need any hardware settings, only send via USB to serial line ascii characters in preconfigured baudrate.
ICOM ACC(2) voltage
Hardware
- short JP3
Software
- uncommented
#define ICOM_ACC
- calibrate voltage in icom_acc.h
ICOM CAT CIV
Hardware
- short JP1 JP2
Software
- NOT IMPLEMENTED YET
Yaesu BCD
Hardware
- all open
Software
- uncommented
#define YAESU_BCD
- optionaly set BCD matrix in yaesu_bcd.h
Kenwood CAT
Sniff mode
Comunicate trx only with banddecoder
Firmware
Source code need configure in three steps
1. Select Inputs
- SERIAL terminal
- ICOM ACC voltage
. ICOM CI-V (optionally sniff mode)
. KENWOOD - CAT (optionally sniff mode)
- YAESU BCD
2. choose settings
3. Preset Band to output matrix
In default settings Band-1 corresponds to Relay-1, etc. You can sets any combination outputs for each band separate. With change zeros and ones in Matrix table. Band-0 reserved for out of range inputs measure.
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