• WARNING: Tube/Valve amplifiers use potentially LETHAL HIGH VOLTAGES.
    Building, troubleshooting and testing of these amplifiers should only be
    performed by someone who is thoroughly familiar with
    the safety precautions around high voltages.

Loadline plotter

Hello. Having done some utility apps for using my Keithley 2015 to measure my amps (https://github.com/andmarti1424/free_keithley), I just started this python project yesterday:




e88cc.png


Its hosted on github as well: https://github.com/andmarti1424/loadline_plotter and its GPLv3.

I really like other similar loadline plotter like Merlin's Excel o VTADIY one.

But the problem with the later is that is not free and the loadlines data is not downloadable.
I really like to have hover over the plot to see the Va and Ia values.
And in VTADIY you cannot change maxY value so graphs sometimes shown too narrow.

The app current status is basic funcionality. It lacks validations, more useful data to show.
Remember its just a few hours of work.
Hope someone find it useful and if so, can help with PR...
Thanks.
 

Attachments

  • e88cc.png
    e88cc.png
    65.9 KB · Views: 93
Last edited:
Super nice!

I actually had a very similar idea on my todo list 🙂

I think what would work super well, is able to directly import or open SPICE models.
From like; https://www.diyaudio.com/community/threads/vacuum-tube-spice-models.243950/page-182#post-7311645
(just picked a random one)

An additional idea would be also able to just draw directly over a datasheet graph when SPICE models are not available.


I have actually already worked out quite some bits myself in sense of validation.
Like when crossing the max plate dissipation line etc.

Same for calculating the percentage of biasing value, max power and a couple of other things as well 🙂
I was also working on calculating the theoretical distortion, although that was quite a bit of work.

I will share my findings.
 
  • Like
Reactions: emartine
Im afraid I dont have the knowledge to interpret something like this:
Code:
* * Generic triode model: 6AQ8 * Copyright 2003--2008 by Ayumi Nakabayashi, All rights reserved. * Version 3.10, Generated on Sat Mar  8 22:39:09 2008 *            Plate *            | Grid *            | | Cathode *            | | | .SUBCKT 6AQ8 A G K BGG   GG   0 V=V(G,K)+0.46274 BM1   M1   0 V=(0.016397559*(URAMP(V(A,K))+1e-10))**-1.8244468 BM2   M2   0 V=(0.4512029*(URAMP(V(GG)+URAMP(V(A,K))/33.468219)+1e-10))**3.3244468 BP    P    0 V=0.0053412983*(URAMP(V(GG)+URAMP(V(A,K))/74.175541)+1e-10)**1.5 BIK   IK   0 V=U(V(GG))*V(P)+(1-U(V(GG)))*0.0076348*V(M1)*V(M2) BIG   IG   0 V=0.0026706491*URAMP(V(G,K))**1.5*(URAMP(V(G,K))/(URAMP(V(A,K))+URAMP(V(G,K)))*1.2+0.4) BIAK  A    K I=URAMP(V(IK,IG)-URAMP(V(IK,IG)-(0.0027790257*URAMP(V(A,K))**1.5)))+1e-10*V(A,K) BIGK  G    K I=V(IG) * CAPS CGA   G    A 1.5p CGK   G    K 3.1p CAK   A    K 1.2p .ENDS
and transform it to data points..
BTW, I continued to add stuff to the utility:

1695776946812.png
 
Super nice!

I actually had a very similar idea on my todo list 🙂

I think what would work super well, is able to directly import or open SPICE models.
From like; https://www.diyaudio.com/community/threads/vacuum-tube-spice-models.243950/page-182#post-7311645
(just picked a random one)

An additional idea would be also able to just draw directly over a datasheet graph when SPICE models are not available.


I have actually already worked out quite some bits myself in sense of validation.
Like when crossing the max plate dissipation line etc.

Same for calculating the percentage of biasing value, max power and a couple of other things as well 🙂
I was also working on calculating the theoretical distortion, although that was quite a bit of work.

I will share my findings.
I added some more features. 2nd harmonic distortion, gain..
 
  • Like
Reactions: b_force