Author Topic: LT-SPICE blows up when I sim this. Any ideas why?  (Read 4075 times)

0 Members and 1 Guest are viewing this topic.

Offline ModernRoninTopic starter

  • Contributor
  • Posts: 44
LT-SPICE blows up when I sim this. Any ideas why?
« on: July 17, 2010, 12:44:03 am »
Someone on Reddit posted a question about a PWM circuit using a 555 timer.

I was getting screwy results (max current 1.4mA) when simming his circuit using the generic nMOSFET, so I replaced it with an IRFP4668. Nice bog-standard mosfet, I thought.

Now the simulation is hanging up and never finishing. It seems like it always goes insane when the transistor switches on for the second time. (First switch-on is fine.)

Here's the LT-SPICE file: http://www.gully.org/~mackys/crazy.asc

Any ideas what's going on here? Am I doing something wrong? Is LTSPICE just screwed up in the head?
 

Offline lamja

  • Contributor
  • Posts: 20
    • Lamja.com
Re: LT-SPICE blows up when I sim this. Any ideas why?
« Reply #1 on: July 17, 2010, 01:35:35 am »
Hi.

If you change your L1 from 10 (H) to 10m (mH) it works just fine... Are you sure it should be 10H?

I often get this problem, but changing some value (extreme high or low) usually do the trick.

R6 and C4 looks like they have no purpose.
« Last Edit: July 17, 2010, 01:48:47 am by pilleyuppo23 »
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19998
  • Country: gb
  • 0999
Re: LT-SPICE blows up when I sim this. Any ideas why?
« Reply #2 on: July 17, 2010, 07:56:38 am »
This is a classic, I remember doing a simulation of a circuit with a 10F super capacitor and was wondering why it wasn't working, until I realised that Spice is case insensitive and it treated 10F as 10fF which is 10×10-15F and is probably less than the capacitance between the pads for an 805 SMT resistor.
 

Offline jahonen

  • Super Contributor
  • ***
  • Posts: 1055
  • Country: fi
Re: LT-SPICE blows up when I sim this. Any ideas why?
« Reply #3 on: July 17, 2010, 08:29:49 am »
General rule is that you never enter a unit in component values in SPICE. That helps to solve most stupid mistakes. Only killer feature are prefixes m and meg, where m = 10-3 and meg = 106. Or, alternatively use the exponent notation, 10k = 10e3, 1 M = 1e6 etc.

Regards,
Janne
 

Offline ModernRoninTopic starter

  • Contributor
  • Posts: 44
Re: LT-SPICE blows up when I sim this. Any ideas why?
« Reply #4 on: July 17, 2010, 04:28:48 pm »
If you change your L1 from 10 (H) to 10m (mH) it works just fine... Are you sure it should be 10H?

I'm sure. It's a 2.5 HP, DC electric motor. 18.5A @ 130V.

Quote
R6 and C4 looks like they have no purpose.

You're right, they don't. I was just fooling around there. Taking them out doesn't change the sim blowing up, though.
 

Offline ModernRoninTopic starter

  • Contributor
  • Posts: 44
Re: LT-SPICE blows up when I sim this. Any ideas why?
« Reply #5 on: July 17, 2010, 05:15:29 pm »
Thought the 555 might be causing some sim weirdness, so I took it out and put a voltage source configured for PWM in there instead. Still blowing up:

http://www.gully.org/~mackys/crazy2.asc
 

Offline jahonen

  • Super Contributor
  • ***
  • Posts: 1055
  • Country: fi
Re: LT-SPICE blows up when I sim this. Any ideas why?
« Reply #6 on: July 17, 2010, 06:10:48 pm »
Try changing the solver to "Alternate", seems to run much better than the normal solver. (Simulate -> control panel -> SPICE -> Solver = Alternate). MOSFETs seem to be difficult for the simulator sometimes.

Regards,
Janne
 

Offline ModernRoninTopic starter

  • Contributor
  • Posts: 44
Re: LT-SPICE blows up when I sim this. Any ideas why?
« Reply #7 on: July 18, 2010, 07:05:43 am »
Beauty! Thanks a lot!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf