This project is found at https://github.com/reedbn/ubitxv6/
It was forked from https://github.com/afarhan/ubitxv6/
The purpose of this project is to clean up (modularize) the source code, and add features that were not present in Ashhar's original version of the project, without requiring any hardware modifications to a stock uBiTXv6.
New features include:
- Much faster screen refresh (vs Ashhar's 6.3.1 aka 6.0 release)
- Morse code readback for sightless operation
- Save/recall your favorite frequencies
- When adjusting settings, the existing/current setting is shown as reference
- Cancel touch recalibration
User Manual: https://docs.google.com/document/d/1jlllZbvFMCzO1MJLzlJDGb10HXSehlFNMDPsxGJZtvY/edit?usp=drivesdk
There are plenty of tutorials on how to upload sketches to Arduino Nanos. Just search for them. Addtionally, Ashhar created a video explaining the process specifically for uBiTX v6: https://www.youtube.com/watch?v=3n_V3prSJ_E
I developed this code using the Arduino IDE 1.8.9 toolchain, with -Wall and -Wextra compiler options turned on. Arduino IDE 1.8.13 was reported to compile too big (see https://groups.io/g/BITX20/topic/75008576), but this should be resolved in this project's tag R1.5.1.
To edit the callsign displayed, open the file callsign.cpp
and change the string. Then re-compile and upload.
There are some features that would be good to add, but I just didn't get around to.
- Setting to choose the tuning step size
- Setting to choose whether or not the knob tuning should accelerate (current behavior) or have a fixed interval
- Provide an option in each menu screen to load the default option for each setting
While the current code (as of 2020-05-05) is ~100 bytes shy of the full 30720 available on the nano, there's still opportunity to add new features by "creating" room. Below is a list of places you might create room:
I added lots of bounds checking, especially on string writes, that, if removed, could free a good number of bytes. While keeping them is best practice, for a non-IoT, non-critical piece of hardware, it shouldn't be a huge issue.
I added the RACK to the CAT to better emulate the FT-817 (I hope, at least!). Removing the RACK's and just leaving the default ACK's will also free up bytes.
I added a bunch of strings to the menuing with the intention of helping people understand their functions, but technically they're not necessary, and could all be removed.
I switched to a smaller footprint font than Ashhar's original code, but there are MUCH smaller fonts out there. Changing to a lower resolution, scaled up font can save hundreds or thousands of bytes, but won't look as pretty. Also, the star, gear, and numpad icons will need to be either added to the new font, or replaced with characters.
The first change I made to this fork was to replace Ashhar's original (incredibly slow) screen drawing routines with PDQ. Since that change, Ashhar has updated his drawing routine to be MUCH faster than his original, but still slightly slower than PDQ. It may be that Ashhar's new routines are smaller that PDQ, but I don't actually know that for certain.
There are a good number of instances of back-to-back calls of strncpy_P and displayText. Creating a single function that performs these operations together, and then calling that new function instead of the back-to-back calls everywhere may save space.
The majority of this code is released under GPL v3 license, per Ashhar's original code.
The files in the PDQ_MinLib subdirectory were copied from https://github.com/XarkLabs/PDQ_GFX_Libs, and have Adafruit's BSD License.
The files in the toneAC2 were copied from https://bitbucket.org/teckel12/arduino-toneac2/wiki/Home, and are GPL v3 licensed.