Variation on Ian's KD8CEC uBitx software (based on his 1.04 release for now) and ATU sketch. #ubitx

John <passionfruit88@...>

I have implemented the following changes in this software targeted at /P, /PM operations (software is in the files section):
1. Options for various features which can be turned on or off. Key objective is to be able to customise the rig based on your needs and unfortunately on the restricted memory size of the Nano. So not all features can be selected at once. Choices, choices...
2. ATU control. A servo-based L-Network ATU. The communication between the Raduino and the ATU Arduino is via I2C. There is a separate sketch for the ATU Arduino (Nano or Pro-mini). ATU operating mode can be set to OFF, Manual as in on-demand, or auto-RX meaning that it pre-tunes based on historical data on a change of band and after first change of dial frequency (for a quick scan of the bands). It uses the EEPROM data of the closest stored frequency for pre-tune or tune on-demand to accelerate the tuning process.
3. Handsfree microphone/headphone. Using an Android style 3 rings (TTRS) handsfree earpieces/mic combination, with 1 or 3 buttons (Play/Pause, +, -), the PTT is controlled by Play/Pause as toggle, and I use long presses on + and - as respectively pre-tune and smarttune of the ATU. Short + or - presses could be used for frequency up and down. Requires a very simple hardware mod to free-up A6 (see below).
4. SWR measure and display, using analogue input A7 from an 2N7002 based AGC or a MAX9814 circuit or any other for that matter.
5. Software based AGC range extender to augment (as in double or triple) the dynamic range of an audio AGC. This uses the slope of the 1st If filter at 45Mhz to attenuate the Rx signal when the audio AGC reaches its limit. Adds over 50dB of dynamic range.
6. Forward power and SWR measure and display. Currently assumes that th ATU is providing that info over I2C. Otherwise could be adapted with a pair of analogue inputs for measure. See the excellent NT6D design on the wiki. 
7. An option to display the S-Meter, SWR and forward power in either easy to see "fat" bars with no number, or "skinny" bars with more text and numbers.
8. An option to enable a "Memory mode", selectable by menu, which cycles through all the populated memories (channels). Dial lock also locks the change of channels.
9. Made some rarely used or once-off functions as options to recover program memory after initial tuning and allow for more options to be selected.
10. Fixed some issues with the IF-shift option. Ian has resolved these in his new V1.06 and later releases. Two issues were present: IF-shift in USB would change the receive frequency and it was applied to TX as well. Now applies to Rx only.
The only required hardware mod is to connect the CW key input to the PTT. Since in Ian's software we select the mode by menu, there is no need to have a separate analogue input tied-up for the CW key. This frees-up analogue input 6 for use by other functions like the handsfree option above.
To-Do: apply Ian's improvements in 1.06, especially CW transmit frequency option and if possible the WSPR beacon mode.
Usage: download the zip files, unzip in your Arduino sketches folder. Edit the ubitx_20 options sections, using #define for enabled and #undef for disabled. Perform a CTRL-R to compile and check how much memory is used. If you go over the limit, a warning is issued. Upload to the Arduino.

I have uploaded both the Raduino as well as the Arduino sketch for the ATU and SWR measurement. They can be found in the folder "Variations on Ian Lee's Software (by VK2ETA) + ATU sketch".
All software in under GPL V3. 
All the best,

73, John (VK2ETA)

Join to automatically receive all group messages.