This project details basic code to web control a MFJ-993b (any of the MFJ-99x line) Auto Tuner.
For Static IP addresses:
...
// Ethernet and IP settings
// #define _DHCP // Define for DHCP IP - Comment for Static IP
// Note that these still need to be left defined if _DHCP is enabled for initialisation
#define IPADD { 192, 168, 1, 177 } // IP Address
#define GWADD { 192, 168, 1, 255 } // Gateway
#define SUBADD { 255, 255, 255, 0 }; // Subnet
#define MACADD { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // Specified MAC Address
#define WEBSERVERPORT 80
...
For DHCP :
...
// Ethernet and IP settings
#define _DHCP // Define for DHCP IP - Comment for Static IP
// Note that these still need to be left defined if _DHCP is enabled for initialisation
#define IPADD { 192, 168, 1, 177 } // IP Address
#define GWADD { 192, 168, 1, 255 } // Gateway
#define SUBADD { 255, 255, 255, 0 }; // Subnet
#define MACADD { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // Specified MAC Address
#define WEBSERVERPORT 80
...
Be aware that this application uses NEGATIVE LOGIC to mimic that of what is necessary for the MFJ-993RC to work !
i.e. Relay 8 - Is ENERGISED when the button is OFF
This provides added proctection for your radio should this application fail in any way (i.e. the tuner's power is on if power fails).
For this to work:
The default setting is for IP address 192.168.1.177/24 at MAC: 0xDE:AD:BE:EF:FE:ED .
Relay # | Arduino IO | Function |
---|---|---|
1 | 3 | Antenna 1/2 |
2 | 5 | C Up |
3 | 6 | C Down |
4 | 7 | L Up |
5 | 8 | L Down |
6 | 9 | Auto On/Off |
7 | 14 | Tune Short/Long |
8 | 15 | Power On/Off |
Refer to the MFJ-993b Schematic and MFJ-993RC Manual on how to connect relays to the MFJ-993B.
There are also reports (that authors cannot replicate) that the generated HTML/CSS script will not load in web browser. If this happens then try removing all the following lines from the Arduino sketch:
client.println("");
All rights and credits here go to the Amateur Radio focussed contributors.
This is not of merchantable quality; licenses of many tools preclude commercial
use and insist on code released open-source. There is no warranty nor claims
possible - nor will be accepted - against any contributor.
Use of this resource is at your own risk.