To get the best power transfer into an antenna ... calculate the SWR. The RF signal is also divided and sampled to measure frequency. To automate tuning, an Arduino switches a bank of capacitors ...