F4GOH Anthony [email protected]
https://hamprojects.wordpress.com/2016/12/31/hf-automatic-tuner/
December 2016
Use this library freely with Arduino 1.6.5
- boite_de_couplageV08 (Arduino ATU firmware)
- boitier_de_commandeV02 (Arduino remote CTRL firmware)
use liquid cristal i2c library
ATU depend of your I2C expander
MCP23008 expander :
#define mcpLRAdr 0x20 //adresse i2c mcp23008
#define mcpCRAdr 0x21
PCF8574 expander :
PCF8574 Address range is 0x20-0x27
PCF8574A Address range is 0x38-0x3F
#define pcfLRAdr 0x38 //address i2c PCF8574AT
#define pcfCRAdr 0x20 //address i2c PCF8574T
uncomment if you have an LCD display connected on ATU
//#define AFFLCD
uncomment for debug (in this case RS485 protocol is corrupted with debug function)
//#define DEBUG_CMD
//#define DEBUG_SWR
//#define DEBUG_DBM
searchDelay 20 :without LCD connected direclty on ATU
searchDelay 1 :with LCD connected direclty on ATU
#define searchDelay 20
//#define searchDelay 1