
Home  Forums  Rules  Articles  diyAudio Store  Gallery  Wiki  Blogs  Register  Donations  FAQ  Calendar  Search  Today's Posts  Mark Forums Read  Search 
Tubes / Valves All about our sweet vacuum tubes :) Threads about Musical Instrument Amps of all kinds should be in the Instruments & Amps forum 

Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving 

Thread Tools  Search this Thread 
9th November 2004, 03:54 AM  #1 
diyAudio Member
Join Date: Dec 2003
Location: Midwest

JJ Tesla ECC99 spice model
This valve has been out for some years now.
Anyone have access to a SPICE model of the JJ Tesla ECC99? For such a greatsounding tube, there should be a design tool. 
10th November 2004, 02:34 AM  #2 
diyAudio Member
Join Date: Sep 2003
Location: Texas

This is a PSpice model. If you need a Berkeley model, let me know.
Be careful with the LOG function. In this model it means natural log, which is sometimes written as LN. If your simulator uses LN for natrual log, then replace LOG with LN. If not, you're ok. If you don't know, plot the curves. If they look right then you're good. If not, change it to LN and it should look right. * * Triode Model for ECC99 * * Alex Cavalli * 2003 * * Based on models from Norman Koren * * Grid current is modeled with a diode. * * Please note that this model is provided "as is" and * no warranty is provided in respect of its suitability * for any application. * * This model is provided for educational and nonprofit use. * .SUBCKT ECC99 1 2 3 ; P G C; NEW MODEL E1 7 0 VALUE= +{V(1,3)/500*LOG(1+EXP(500*(1/22+V(2,3)/SQRT(300+V(1,3)*V(1,3)))))} G1 1 3 VALUE={(PWR(V(7),1.3)+PWRS(V(7),1.3))/362} RCP 1 3 1G ; TO AVOID FLOATING NODES IN MUFOLLOWER C1 2 3 5.8p C2 2 1 5.1p C3 1 3 0.91p D3 5 3 DX ; FOR GRID CURRENT R1 2 5 2000 ; FOR GRID CURRENT .MODEL DX D(IS=1N RS=1 CJO=0 TT=1N) .ENDS 
10th November 2004, 04:28 PM  #3 
diyAudio Member
Join Date: Dec 2003
Location: Midwest

Here's the B2Spice model.
Please check it. I haven't figured out how to add the grid current model. * ecc99 * numbers by Alex Cavalli * adaptation to B2Spice by stephenwmoore.com * .subckt ecc99 p g k bp p k i=(2/362)*uramp(v(p,k)/500*log(1+exp(500*(1/22+v(g,k)/sqrt(300+v(p,k)*v(p,k))))))^1.3 cgk g k 5.8p cgp g p 5.1p cpk p k 0.91p .ends ecc99 
10th November 2004, 06:44 PM  #4 
diyAudio Member
Join Date: Dec 2003
Location: Midwest

Something didn't look right, so I plugged the equation into excel and plotted a family of curves.
It doesn't match up exactly with the JJ datasheet, but it looks close. 
10th November 2004, 06:53 PM  #5 
diyAudio Member
Join Date: Dec 2003
Location: Midwest

Updated. Still doesn't exactly match datasheet curves, but is close. Maybe the original model was developed from real samples instead of the datasheet?
* ecc99 * numbers by Alex Cavalli * adaptation to B2Spice by stephenwmoore.com * .subckt ecc99 p g k bp p k i=(2/362)*uramp(v(p,k)/500*ln(1+exp(500*(1/22+v(g,k)/sqrt(300+v(p,k)*v(p,k))))))^1.3 cgk g k 5.8p cgp g p 5.1p cpk p k 0.91p .ends ecc99 
10th November 2004, 09:04 PM  #6 
diyAudio Member
Join Date: Dec 2003
Location: Midwest

Here's the performance for Vg = 2, 4, 6, 8.
The blue dots are points from the data sheet on JJ's web site. It works very good! 
10th November 2004, 09:55 PM  #7 
diyAudio Member
Join Date: Jun 2003
Location: USA

> I haven't figured out how to add the grid current model.
If you can't figure the syntax for B2Spice, just add a silicon diode in series with 2K from Grid to Cathode on your schematic. That is the same as the Koren model, just external to the tube model. Koren's approximation isn't exact (doesn't try to be). If you need the exact mA grid current at +13V on the grid, you need a much more complicated model. But in most audio, the gridcathode voltage is always negative so grid current is always zero. You sure can drive grids positive, but the grid impedance drops from "infinite" to around 1K or 2K. And that is usually more trouble than the added plate current is worth. In the heat of simulation you sometimes crankup till gridcathode voltage is swinging positive. If your grid driver had infinite current and zero Zout, that would not matter. But in most cases the driver has high output impedance (compared to positivegrid resistance), so SPICE will show you impossible things if it does not know about positive grid current. The diode and resistor won't give the "exact" answer, but it will usually flattop the wave, alerting you to the fact that you are driving a grid positive and should turndown the drive. (Or beefup the driver, and be aware that this gridmodel won't give exact answers when running grid current.) 
10th November 2004, 11:28 PM  #8 
diyAudio Member
Join Date: Dec 2003
Location: Midwest

Let's see if I got the lesson right:
The model simulates 2k grid impedance only if the grid is going positive. If I'm assured the simulation never applies a positive on the grid, then I don't need the grid model. That's easy enough! Thanks. I'm worried about how I'm using these models recently. I'm tweaking an SRPP to minimize evenorder harmonics, especially 5th9th. Are the models accurate enough to determine this? For example, I'd like to know if a JJ ECC99 is lower distortion than a 6H30pi (of course, depending on the setup and power supply of the circuit). I'm trying to answer the question if I should wire a 12V heater for the ECC99/12BH7 family of pinouts or a 6.3V heater for the 6CG7/6FQ7/6H30pi family of pinouts. It's going on a PCB, so once the boards are made, I've locked myself into using a particular pinout family. The SRPP is driving a 50k load with at least 1500pF capacitance  most likely a bit more. I want to minimize evenorder harmonics, with special attention to 5th9th. The power supply hasn't been built, so I can use almost any voltage, even a CCS. Under these assuptions, which pinout family will offer me the best tube for my application? 
11th November 2004, 01:24 AM  #9  
RIP
Join Date: Dec 2002
Location: C'ville VA, USA

Quote:


11th November 2004, 03:12 AM  #10 
diyAudio Member
Join Date: Dec 2003
Location: Midwest

Ooops...
ODD is the word I was thinking about. "ODD". Opposite of "even". 5th through 9th are ODD, not even, I don't know what I was thinking. Funny how the mind works. 
Thread Tools  Search this Thread 


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Help With 6v6 Spice Model  porcatroya  Tubes / Valves  0  5th May 2008 07:41 AM 
SPICE model  Prune  Parts  6  16th October 2004 04:22 PM 
Spice model  doigtee  Tubes / Valves  6  12th July 2003 12:42 PM 
JJ Tesla ECC99 as a driver for 300B2A3  konstantin  Tubes / Valves  6  1st July 2003 09:43 PM 
Spice model for LED?  G  Solid State  5  14th September 2002 04:33 AM 
New To Site?  Need Help? 