The code I wrote to measure SWR from the forward and reflected powers is here:
https://github.com/DRWJSCHMIDT/T41/tree/main/T41_V012_Files/T41_V012_Software/T41_V12_Software_For_Board_Testing/K9HZ_LPF_tester
I think Al used it as the starting point for the code that's in ver 66-9, though he took it a lot further and added the calibration methods.
Adding support for the diodes is a long way down the priority list for me, so don't hold your breath. Maybe someone out there with a V12 radio would like to take this on and share their work with the rest of us?
toggle quoted message
Show quoted text
-------- Original Message --------
On 4/9/25 6:05 PM, K9HZ wrote:
Dave¡ the code for the analog SWR metering is not there.? The code for the I2C stuff is¡ BUT with this said, its not a hard thing to do.? A12 is Forward power and A13 is Reflected at the teensy¡ so then you just need to calibrate the voltages in after scanning with the teensy.? Remember they are LOG Voltages for power... so Forward Power = A*log (forward voltage) and Reflected Power = B*Log(reflected voltage). ?Then SWR is gamma = Reflected Power/ Forward power¡. And SWR = (1+sqrt(gamma))/(1-sqrt(gamma)).
?

?
I think Oliver did program this up once upon a time¡ would probably take him 10 seconds to do it.
?
?
Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ VP2EHZ
?
Owner - Operator
Big Signal Ranch ¨C K9ZC
Staunton, Illinois
?
Owner ¨C Operator
Villa Grand Piton ¨C J68HZ
Soufriere, St. Lucia W.I.
Rent it:
?
Moderator: North American QRO Group at Groups.IO.
Moderator: Amateur Radio Builders Group at Groups.IO.
?
email:? bill@...
?
?
?
I am running the latest SW ver66.9, downloaded today.? I am use the analog SWR circuits.? I have good FWD-V (~1.5V) and REV-V (0.005) into the dummy load and REV-V varies as load resistance varies.? In the Cal screen, Power and SWR measure "inf" and "nan".? Nothing changes them.? And, where should the pots, RV19 and RV27, be set?? Thanks for the help.