Welcome To the Hoffman Amplifiers Forum

September 07, 2025, 06:17:38 am
guest image
Welcome, Guest. Please login or register.
-User Name
-Password



Hoffman Amps Forum image Author Topic: Kuehnel, new book: Circuit Simulation  (Read 22222 times)

0 Members and 1 Guest are viewing this topic.

Offline PRR

  • Level 5
  • *******
  • Posts: 17082
  • Maine USA
Hoffman Amps Forum image
Kuehnel, new book: Circuit Simulation
« on: October 27, 2019, 03:25:12 pm »
Richard Kuehnel has a new book coming out. I have read a proof copy.

Guitar Amplifier Electronics: Circuit Simulation
https://www.ampbooks.com/mobile/books/simulation/

It is an excellent, and badly needed, romp with circuit simulation, working through basic filters, power supplies, tube amplifiers (clean to dirty), and development of simple and better tube models.

The example simulator is LTspice, which is free, powerful, and has developed a huge following. Kuehnel describes many "tricks" to get answers out of LTspice; they may be in the program documentation but he tells and shows you the ones most useful for our work. However the work is general and his examples adopted well in my antique PSpice.

While the examples run to tubes, the teachings would be valuable for transistors in audio and similar applications because the setups and results are similar.

He also shows step by step how to build the "potentiometer" subcircuit, symbol and math, which is inexplicably left out of many simulators. With a fix for the divide-by-zero math-problem when you turn the pot to the end. (There are many ways to fix this and we tossed a few around.)

This is in context of developing a high power SE amp with full tonestack and an effects loop which is *designed in*, not tacked on. Interface levels and overload control are carefully considered.

The beauty of electronics is that everything can be exactly calculated. The drudgery of electronics is all the calculations. A circuit simulator does this part of the drudgery for you. (What it will NOT do is understand what you really want to know; a brain is still required. Also device models run from good to rough approximations, and it is tedious to derive ALL the parameters for practical devices especially in the corners. Also music waveforms are not simple so for practical reasons we must use simple waves and deduce the action for musical waves.)

Not listed at Amazon at this moment-- getting stuff through Amazon takes time. Watch TubesAndMore.com also: his last book, they had stock before Amazon.

Meanwhile you can order direct from AmpBooks:
https://www.ampbooks.com/mobile/books/buy-now/

Disclosure: Richard put a few bucks for me in the book, enough to cover my time to read and extensively comment, not enough IMHO to buy my opinion.

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #1 on: October 27, 2019, 04:02:33 pm »
Quote
not enough IMHO to buy my opinion.
:laugh:
pretty sure that price would be pricey  :laugh:
Went Class C for efficiency

Offline DummyLoad

  • SMG
  • Level 5
  • *****
  • Posts: 5791
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #2 on: October 27, 2019, 08:54:33 pm »
Disclosure: Richard put a few bucks for me in the book, enough to cover my time to read and extensively comment, not enough IMHO to buy my opinion.

how much? and more importantly, since we're your lab rats - where's our cut?

--disgruntled rat.

Offline Ritchie200

  • Level 4
  • *****
  • Posts: 3485
  • Smokin' 88's!
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #3 on: October 27, 2019, 11:28:03 pm »
I'm just pissed that a brain is still required.... :think1: 

Jim  :icon_biggrin:

My religion? I'm a Cathode Follower!
Can we have everything louder than everything else?


Offline Willabe

  • Global Moderator
  • Level 5
  • ******
  • Posts: 10524
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #5 on: October 28, 2019, 08:10:35 am »
I'm just pissed that a brain is still required.... :think1: 

    :laugh:

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #6 on: October 28, 2019, 10:51:29 am »
Ok, fine.  I just bought the book.  Even though I previously stated no more paper books, only ebooks.  I figure I need to go through the Spice learning curve, 'cause I'm not getting enough headaches.  :icon_biggrin:

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #7 on: October 28, 2019, 11:35:17 am »
Quote
I need to go through the Spice learning curve
:laugh:
I have spine damage from all the learning curves, AND re-learning curves  :think1:
Went Class C for efficiency

Offline Willabe

  • Global Moderator
  • Level 5
  • ******
  • Posts: 10524
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #8 on: October 28, 2019, 04:55:30 pm »
Ok, fine.  I just bought the book.  Even though I previously stated no more paper books, only ebooks.  I figure I need to go through the Spice learning curve, 'cause I'm not getting enough headaches.  :icon_biggrin:
I have spine damage from all the learning curves, AND re-learning curves  :think1:


       :laugh:

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #9 on: October 31, 2019, 07:46:52 pm »
First impressions: not for novices.  Book came today; downloaded LTspice to my touchscreen laptop.  Placed a R.  Placing a component is easy. To stop placing that type of component seems impossible; but a youtube tutorial revealed the state secret: press the Escape key, which does not seem to be documented anywhere. Place the 2nd R for a voltage divider.  If I use the Rotate button, the 1st R scrolls off the screen.  I can use my fingers to shrink the screen to find the 1st R.  But to no avail.  I can't figure out how to move a component, or rotate one that's been placed.  So far I'm limited to placing one component, if I'm lucky.

BTW:  if you have a touchscreen, don't touch a component on the screen; it will produce offspring like rabbits, sometimes. EDIT:  press Esc.  :BangHead:


EDIT:  Kuehnel, does mention the Esc key.  Got the V-divider circuit drawn & ran it.  The correct spice directive appears on the schematic.  Above it a blank black screen appears with 1 Hz to 10Khz on the x-axis; but the black box is empty, with no numbers on either side of the y-axis; and no lines on the inside.
« Last Edit: October 31, 2019, 08:40:35 pm by jjasilli »

Offline PRR

  • Level 5
  • *******
  • Posts: 17082
  • Maine USA
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #10 on: October 31, 2019, 08:57:20 pm »
> no lines on the inside.

Working blind here: SPICE does not know what node you want to know about. In my old sim I put a special "arrow" on each point I want plotted. I know LTspice has a different trick but I forget. Kuehnel actually does tell you *every* step (as far as I found) but the story is dense and it is easy to miss a bit.

And yes, you need ESC a lot (too much), and it may not work well with finger instead of mouse. (Pspice gives me a pain the elbow because it is so mouse-intensive, moreso than my image-edit program.)

Offline kagliostro

  • Level 5
  • *******
  • Posts: 7739
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #11 on: November 01, 2019, 02:46:55 am »
Just because we are talking of simulation

http://el34world.com/Forum/index.php?topic=25165.0

Franco
The world is a nice place if there is health and there are friends

Offline DummyLoad

  • SMG
  • Level 5
  • *****
  • Posts: 5791
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #12 on: November 01, 2019, 02:53:35 am »

BTW:  if you have a touchscreen, don't touch a component on the screen; it will produce offspring like rabbits, sometimes. EDIT:  press Esc.  :BangHead:



left click mouse button to paste the part then right click mouse button to quit the tool - most CAD apps that's the ESC key.

to rotate a part - press F8 (drag tool shortcut)- hand appears - click hand on part to rotate, then press Ctrl+R, then right click to exit the drag tool.

LT Spice has a shitty editor - always has and why i don't use it.


--pete

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #13 on: November 01, 2019, 08:45:01 am »
Quote
most CAD apps
my CAD program is paint  :icon_biggrin:
took me 6hrs on this drawing last night  :think1:
the way I see learning curve on new apps If it takes me longer to learn it than what I am using, quit learning n just suffer though  :laugh:
Went Class C for efficiency

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #14 on: November 01, 2019, 09:50:54 am »
Thanks for the all suggestions.  I'm trying to get more digital all around.  E.g., using Google Maps & Google Earth to digitally scout hunting locations.  But using them & getting map overlays, property boundaries, etc is difficult.  There are pre-packaged programs like Huntstand which do a lot, but not everything.  Kind of like using the Duncan Tonestack Calculator instead of a spice program.

May be this will help other beginners.

I can now place, move & rotate individual components pretty well in LTspice.  Moving groups of components is still a mystery. 


The difference between right clicking vs. left clicking vs. esc. remains confusing; especially on a mouse pad which seems overly touch sensitive.


EDIT: no sooner did I post this, when I scrolled over the 'in Label" on Voltage Source 1.  A red probe-like object appeared.


Anyway, selecting Run, then activating the Probe over the "out Label" produced the result.  I now see that  this is documented in Kuehnel's book, but w/o mention of the Probe icon. N.b.: my version of LTspice was updated yesterday.  I now see that Run is just a mode, not a command.  Once selecting Run, you must click the spot on the schematic where you want the simulation to take place.


« Last Edit: November 01, 2019, 10:11:11 am by jjasilli »

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #15 on: November 01, 2019, 10:14:37 am »
Quote
Google Maps & Google Earth
:laugh:
I used to use earth when it resided on my computer, I looked for human_less spaces to visit :icon_biggrin:  Now that it's cloud based, skrew it, it's more painful than paint as CAD software  :BangHead:
Went Class C for efficiency

Offline Mike_J

  • Level 3
  • ***
  • Posts: 1321
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #16 on: November 01, 2019, 02:11:38 pm »
Can anyone use the simulator program to figure out why one 59 Bassman sounded so good but my 5f6a sounds just like all the rest of them. Would like to know if a drifting cap or resistor could improve the tone and if that simulator could figure that out. Of course I never got a chance to make measurements of the special amp. Had an amp sound close to it once but it tried to catch on fire shortly after I said this amp sounds great. Every other time I ever mentioned an amp sounding good my daughter would run into the room with a fire extinguisher.

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #17 on: November 01, 2019, 02:27:03 pm »
 :laugh: Don't think a simulator can help.  But you might be able to program a 'bot to run into your room with a fire extinguisher!
« Last Edit: November 01, 2019, 03:02:20 pm by jjasilli »

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #18 on: November 01, 2019, 03:00:30 pm »
Quote
it tried to catch on fire
:laugh:
I always ask the Mrs. if the home insurance is paid up before I try anything creative, screw the fire extinguisher   :icon_biggrin:
Went Class C for efficiency

Offline 1blueheron

  • Level 3
  • ***
  • Posts: 524
  • More junk than I know what to do with...
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #19 on: November 02, 2019, 06:33:32 am »
Now that we don't need to do any math, we can just simulate all of it... where is the button or template to simulate a guitar player?  I finally feel like I might have potential! :l2:

Interesting stuff.  The next generation has a pile of cool tools at their disposal to further the art.  Let's hope they aren't too lazy to figure out how to use it or we don't get walloped by an EMP first and have to go back to slide rules and carrier pigeons.

Offline Mike_J

  • Level 3
  • ***
  • Posts: 1321
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #20 on: November 02, 2019, 07:17:55 pm »
:laugh: Don't think a simulator can help.  But you might be able to program a 'bot to run into your room with a fire extinguisher!
Could use a bot now the daughter is in the last semester of her mechanical engineering degree so she is no longer available if I have a mishap.

Offline Mike_J

  • Level 3
  • ***
  • Posts: 1321
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #21 on: November 02, 2019, 07:19:56 pm »
Quote
it tried to catch on fire
:laugh:
I always ask the Mrs. if the home insurance is paid up before I try anything creative, screw the fire extinguisher   :icon_biggrin:
Wise. I should add the home insurance paid up status to my amp building procedures.

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #22 on: November 04, 2019, 02:58:42 pm »
Progress. Can now more easily place components; move and rotate components; and move groups of components. On to the low pass filter simulation!

Offline Ritchie200

  • Level 4
  • *****
  • Posts: 3485
  • Smokin' 88's!
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #23 on: November 04, 2019, 03:54:10 pm »
Sooo...
What you are saying is, if we need something run on Spice just send you the info?  Wow!  What a great guy!


Jim :icon_biggrin:

My religion? I'm a Cathode Follower!
Can we have everything louder than everything else?

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #24 on: November 04, 2019, 04:33:09 pm »
+1  :icon_biggrin:
he's on the learning curve, should be able to spice out soon  :laugh:
Went Class C for efficiency

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #25 on: November 04, 2019, 04:36:49 pm »
Sooo...
What you are saying is, if we need something run on Spice just send you the info?  Wow!  What a great guy!

Jim :icon_biggrin:


Sure, no problem so long as there's only 1 R & 1 cap.


Just got the low pass filter to work.  Next, the Gibson GA-40T tonestack: 3R's & 2 caps!  Should produce a midscoop.  Duncan TS lookout!

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #26 on: November 05, 2019, 10:18:42 am »
Got the GA-40T tonestack sim working.  I'm saving separate files for each of Kuehnel's homework examples.  Getting better at placing and moving components; and editing. 


Minor issues: 
* Getting grid marks by default on ea new schematic.
* Getting vertical and horizontal "marker" lines to show in the Run window.
* Compressing the run window horizontally.  It stretches across the entire width of the screen.  This makes the sim graphs look stretched-out horizontally.

Offline Willabe

  • Global Moderator
  • Level 5
  • ******
  • Posts: 10524
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #27 on: November 05, 2019, 11:19:14 am »
Well, looks like your going to be the go to guy with problems on this.   :icon_biggrin:

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #28 on: November 05, 2019, 01:08:05 pm »
PRR & dummyload have been good with sims!  I need to get more digital all around: amp circuit simulation; earth mapping with overlays; guitar & voice recording.

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #29 on: November 05, 2019, 01:40:14 pm »
Quote
need to get more digital all around
:laugh:
I got the software flow-charted you just need to write the code  :icon_biggrin:
kinda funny, I came here to get AWAY from digital n back to my analog roots  :laugh:
Went Class C for efficiency

Offline PRR

  • Level 5
  • *******
  • Posts: 17082
  • Maine USA
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #30 on: November 05, 2019, 01:44:11 pm »
> Google Maps & Google Earth to digitally scout hunting locations.  ...property boundaries, etc is difficult.

Some towns, like the one north of me, publish tax-maps with property line coordinates.

My town does not post the info in GIS data format. You can squint some maps online but that's not a machine's job.

Google scarfs-up the web-published data, but isn't so good about coming out here and walking the lines. (The G-car has never been on my road; the Bing-car turned IN my driveway which makes it awkward to track Street View.) I know the frontage-stakes on my road, but the depth of the lot is approximate (there's a number in the deed but the reference is unclear).

I suspect only the more urban hunting areas will have property lines. Where property is $1M/acre the taxman is diligent but it may be 1/8-acre lots and not enough room to swing a long-gun. Where property is $100/acre and lots are 1,000 acres, the taxman may just keep rough notes in a ledger.
« Last Edit: November 05, 2019, 01:47:24 pm by PRR »

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #31 on: November 05, 2019, 01:54:53 pm »
Yeah, I know.  That's why I go hunting.  But digital mapping makes it possible to significantly scout an area in advance.  Topography; tree cover.  With Google Earth you can go back in time - get satellite images in winter.  Hardwood leaves are down; now evergreen stands are obvious.  You can checkout museums and painting exhibits in 3D around the world; or sim off-beat amp circuit ideas in advance of building.


Anyway, in LTspice > Windows > Tile Vertically gives me a good enough graph shape.  Still can't get grid lines to appear on the graph, though they show-up in the dialog box under Tools > Color Preferences.  Que passa?

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #32 on: November 05, 2019, 02:08:00 pm »
Property lines are available from other map programs or apps, such as Huntstand and Onx.  They also give public land boundaries, private property boundaries; and owners' names maybe for an extra fee.  Then there are mapping apps geared to hiking / camping.  These apps allow the placement on the map of semi-custom marker Icons for Gates, Parking, Buildings, animal sightings, etc.  They can measure distance between points on a line you draw.  Compute the the acreage of boundaries that you draw; and compute the miles around the perimeter, etc. Different overlays may be selected for Street, Satellite, Topographic - overlays are difficult with Google Earth which is free & powerful but a real learning curve.  You can locate yourself on the map on your phone in real time with GPS, and trace your steps as you go.  Place dedicated markers for things you see or do; or for a to do list. 


It no longer makes sense to me to build and measure different amp circuits when they can be modeled in advance.

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #33 on: November 05, 2019, 03:08:00 pm »
Quote
You can locate yourself on the map
in the early days when Magellan(?) was king of gps I had trained 12 kids on map n compass work, headed for the hills of E. Kty.  I picked a trail - wildcat, let the kids navigate, within a mile I knew we were "off the beaten path"  :icon_biggrin:
as time passed (3-4miles) and they got somewhat anxious, us 4 grown-ups stepped in, my gps couldn't get a satellite link, let alone 3. 6hrs and some dicey environmental obstacles, cliffs, waterfalls.... we popped out a mile from the cars.  As I bump into those "kids" now without exception "It was one of my best moments growing up".
sometimes 'ol skool ain't a bad way to go  :laugh:
Went Class C for efficiency

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #34 on: November 05, 2019, 06:39:21 pm »
Yeah.  A week and a half ago I decided to try my GPS "skills".  BUT, forgot to take my phone out of Airplane Mode - which was ON to save battery life.  Hence Location was screwy.  I was in a valley but couldn't tell which ridge was which, so I could not locate myself with a compass.  Not realizing I was in Airplane mode the GPS gave me bad Location info, and I had to give up on it.  Used the compass to keep a steady direction South or West.  Hit an actual road after 3 hours in the rain.  Wool is my friend.


Gonna learn this digital stuff if it kills me. 


So how do you get those darn grid lines in LTspice?

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #35 on: November 06, 2019, 09:31:19 am »
Went Class C for efficiency

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #36 on: November 06, 2019, 10:28:36 am »
Successfully completed sim of Real-World Capacitor: adding R & L.

@ shooter: Grid Lines -- Yes, thanks! That site describes an earlier release, so it's a little different, but enough to point me in the right direction. 


How to add Grid Lines to the Plot Plane (graph) in the newest version of LTspice XVII:  Right Click in middle of the Plot Plane.  A Dialog Box appears > Left Click View in the Dialog Box (This is a different "View" from the one on the top toolbar!!!) > Left Click Grid. Bingo!
« Last Edit: November 06, 2019, 10:31:26 am by jjasilli »

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #37 on: November 06, 2019, 10:42:06 am »
Quote
Right Click
Quote
Left Click
sounds like the guy that called the square dances in Kty  :laugh:
Went Class C for efficiency

Offline PRR

  • Level 5
  • *******
  • Posts: 17082
  • Maine USA
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #38 on: November 06, 2019, 06:32:46 pm »
This thread (elsewhere) is well recommended. I have not read it.
DIYA: Installing and using LTspice IV (now including LTXVII). From beginner to advanced.
I think that is a public section. If not, it may be worth Joining just to read it.

Mooly's posts will be excellent. As all threads everywhere, some other members are just noise.

Offline PRR

  • Level 5
  • *******
  • Posts: 17082
  • Maine USA
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #39 on: November 06, 2019, 06:41:58 pm »
> digital mapping makes it possible to significantly scout an area in advance.

I scouted a couple dozen properties in Maine from New Jersey. The real estate ads say one thing, sky-birds may show something they omitted. One was "in" a nice town but really way-way out on wetish land. Another backed up to an active gravel quarry. Sometimes Street View showed a less interesting angle than what the realtor wanted to show. The place we made an offer on is long and skinny so how close are the neighbors? I found Glen's roof and neighbor Jimmy's house-- acceptable, and saw that nobody had built on the other side of this plot. (It didn't show that the front acre was wet 80% of the year, though I might have guessed by full-grown trees dead/brown on the stump.... it drained before they put the road in, then it took decades for the trees to root-drown.)

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #40 on: November 06, 2019, 06:57:38 pm »
This thread (elsewhere) is well recommended. I have not read it.
DIYA: Installing and using LTspice IV (now including LTXVII). From beginner to advanced.
I think that is a public section. If not, it may be worth Joining just to read it.

Mooly's posts will be excellent. As all threads everywhere, some other members are just noise.


Thanks, PRR! That DIYA thread looks promising. I think I'll finish Kuehnel's Chapter 1.  Then start over withe DIYA thread.


Offline PRR

  • Level 5
  • *******
  • Posts: 17082
  • Maine USA
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #41 on: November 07, 2019, 09:06:59 pm »
> sounds like the guy that called the square dances in Kty

That may be the start of a good analogy. While PSpice clicking can be awkward, LTspice functions seem to have been invented by *several* dance-callers.

This is especially disturbing if you use one sim and switch to another. Things that "should be" ON the drawing turn out to be in the menus or right-click or by typing Directives onto the drawing (I'm not used to software which takes directions from text on a drawing).

But circuit invention is a very abstract concept, never going to be as natural as painting landscapes with a paintbrush.

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #42 on: November 07, 2019, 09:40:15 pm »
Actually LTspice has gotten me better at using my laptop & its mouse pad. 


BTW one online reviewer of spice programs opined that they all have poor user interfaces (UI's), because the developers who can grok the inner workings of the spice programs tend to be inherently bad at UI.  Sounds good to me.  E.g., changing the font size in LTspice, which is way too large by default, is anything but straightforward.
« Last Edit: November 07, 2019, 09:44:44 pm by jjasilli »

Offline shooter

  • Level 5
  • *******
  • Posts: 11014
  • Karma Loves haters
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #43 on: November 08, 2019, 09:59:11 am »
Quote
never going to be as natural as painting landscapes with a paintbrush.

 :laugh:
you've never watched me trying to mix the  :cussing: :cussing: :cussing: :BangHead:
yellow grass to match  :icon_biggrin:
Went Class C for efficiency

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #44 on: November 09, 2019, 08:29:39 pm »
Am away from home for the weekend with laptop, but no Kuehnel book.  So I went through the 1st page of the DIYA site on LTspice.  Definitely worthwhile.  Also downloaded PDF of ist Ed. of "Audio Power Amplifiers", by Bob Cordell.  Also seems promising and a wndow into SS amps.  Anyway Ch 24 also has LTspice how to's.

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #45 on: November 15, 2019, 12:33:23 pm »
Got 3/4 through creating a pot symbol per Kuehnel.  If doing Spice is getting into the weeds, creating symbols is like getting tangled in them!  Discovered I could join the Yahoo LTspice Group, and download lots of pre-configured components and circuits!  Just put *.asy files in the LTspice/sym folder, and they show up in the component dialog box.  Not yet sure what to do with *.asc files. EDIT:  asc = schematic (Duh!)


Also lots of info & help in the Yahoo Group.
« Last Edit: November 15, 2019, 12:42:01 pm by jjasilli »

Offline PRR

  • Level 5
  • *******
  • Posts: 17082
  • Maine USA
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #46 on: November 15, 2019, 04:45:14 pm »
> getting into the weeds, creating symbols is like getting tangled in them!

Yes; this should be an Advanced Skill, but the lack of pot "forces" us to go into the weeds. My notes:

"--- OK. Two hours to get a pot model working. One screw-up is I typed "pop" instead of "pot", duhhh! Also got out-of-order in the lines on page 25, duh. Mildly compounded by refusing to name the pins in-out-common, trying 1-2-3, then top-wip-bot, but that was not the issue. Also ignored zig-zag artwork for a simple box with sidearm, which is fine. Parameters R and A pass-through properly. Works for .AC. Found how to list 2 (3?) parameters as list instead of line."

Does your text have "gmin" in the pot model? (It saves a math blow-up at 100% or 0%.)

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #47 on: November 15, 2019, 08:37:28 pm »
Not sure how to respond.  I still haven't finished the Kuehnel pot "build".  Attached is the Yahoo Group pot I downloaded.  Not sure about the "text".

Offline PRR

  • Level 5
  • *******
  • Posts: 17082
  • Maine USA
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #48 on: November 15, 2019, 10:59:22 pm »
> Not sure about the "text".

Page 28 (in my pre-press copy).
"Convert the two resistors into a SPICE subcircuit...." ... "Save as a text file pot_V1.txt..."

Subcircuit code is:
Code: [Select]
R1 in out {(1-A)*R}
R2 out common {A*R}

Improved code:
Code: [Select]
R1 in out {((1-A)*R)+gmin}
R2 out common {(A*R)+gmin}
(gmin is a very small number, default 1e-12.)
« Last Edit: November 16, 2019, 12:45:07 pm by PRR »

Offline jjasilli

  • Level 5
  • *******
  • Posts: 6731
  • Took the power supply test. . . got a B+
Hoffman Amps Forum image
Re: Kuehnel, new book: Circuit Simulation
« Reply #49 on: November 15, 2019, 11:59:16 pm »
Pagination is correct.  Added gmin to p. 28 & to my text file.  Thanks!


EDIT: Kuehnel corrects p. 28 on p. 32.  Looks like he was trying to make a point.  Anyway my pot appears to work. passing the .75 & 1. Test. 
« Last Edit: November 16, 2019, 12:19:46 am by jjasilli »

 


Choose a link from the
Hoffman Amplifiers parts catalog
Mobile Device
Catalog Link
Yard Sale
Discontinued
Misc. Hardware
What's New Board Building
 Parts
Amp trim
Handles
Lamps
Diodes
Hoffman Turret
 Boards
Channel
Switching
Resistors Fender Eyelet
 Boards
Screws/Nuts
Washers
Jacks/Plugs
Connectors
Misc Eyelet
Boards
Tools
Capacitors Custom Boards
Tubes
Valves
Pots
Knobs
Fuses/Cords Chassis
Tube
Sockets
Switches Wire
Cable


Handy Links
Tube Amp Library
Tube Amp
Schematics library
Design a custom Eyelet or
Turret Board
DIY Layout Creator
File analyzer program
DIY Layout Creator
File library
Transformer Wiring
Diagrams
Hoffmanamps
Facebook page
Hoffman Amplifiers
Discount Program


password