Here is a 3D printed front for the Codan 8727, fitted with the VFO-Delux board.
This is not all wired up and the pushbuttons still need to get here.
Also, there is the aux meter code to do, as well as a general code build. Still, this is what it will look like.
Another thing to do is an interface to give pushbutton volume control in place of the original pot.
AND, band switching.....
Lots more to do.
I am still plodding along with this every so often.
Here is the code so far, using a PCF8574 as the band select outputs.
A board originally for driving an LCD has been pressed into service as that was what I had on hand. The top address link is installed to change the address from 0x27 to 0x23.
One of the first 5 outputs go high as the channel is selected. This will be used to drive optos as level shifters from 5V to 10V switching. Only the first 5 are used, but 8 are available if the code is changed to allow it. And if you need more outputs (or inputs), additional PCF8574 chips can be added with different addresses selected.
Ihave found when running the VFO in the Codan 8727, the 1000 step size was way too high.
I've changed it... unsigned long step_size = 10; // default tuning increment (Hz) was 1000
That is better.
But, the calibration factor is not working so will have to talk to my son and ask him to have a look at the code.
I hope to try this out on the net tomorrow.
There is still some work to do on the tuning for all the bands but a couple are working.
EDIT: (Tomorrow now) I just had a contact with VK2QA on 7.110Mhz. It works
Well, there was a 3kHz offset earlier but that was because I had programmed the USB offset to the VFO instead of the LSB!!!!
All better now. So, in a couple of ours, it should be up on the 3.630Mhz net Also, the S Meter now works. Needs a cal pot still.
The fixed code is below.
I have given up on trying to get the band selected via the ESP32 ADC and band select rotary switch.
Now the band is switched from the ESP32 driving a PCF8574A I2C port expander and an MIC2981 Source Driver. I tried optos but the ones used dropped too much voltage.
A hacked together board plugs onto the 8727 band select header. This works fine!
Here is a board for the Codan 8727 band select drive.
See post #26. This also has other used as there are optional terminals so it is not just for the Codan. The board mounts upside down onto the Codan header.
I hope to get some boards made soon. This board could be a handy add-on for quite a few things.
See the MIC2981 data sheet for the chip.
I've been having problems with bumping the encoder knob so shifting the frequency.
So, here is a mod.
Now, a front panel button toggles the LOCK/TUNE, and another toggles the USB/LSB selection.
An easy way to lock the encoder is to ...
step_size = 0; // LOCK
step_size = 2; // TUNE
Originally, the step_size was 1000. I had 10 but now 2.
For some reason, a step size of 1 does not work correctly?????
If the encoder knob it turned rapidly, it still changes the tuning as the acceleration is still working, but this will do I think.
The LOCK/TUNE label may be moved to the top left, under the frequency display when I figure out just how the display positioning has be set up, but I may just keep it where it is.
FYI, here is the code.