Author Topic: [Solved] LTSpice sim for toggle power switch is taking too long  (Read 3634 times)

0 Members and 1 Guest are viewing this topic.

Offline kasbahTopic starter

  • Contributor
  • Posts: 41
  • Country: gb
    • My electronics project sharing site, kitnic.it
[Solved] LTSpice sim for toggle power switch is taking too long
« on: January 19, 2016, 01:45:52 pm »
Hey, not really a beginner but I don't use LTSpice that much.

I am trying to simulate the press-on-hold-off toggle switch circuit from this article (in auto-off mode).

The simulation is taking waaaay too long. Like it will never finish. Any ideas? LTSpice file is attached.

EDIT: To clarify, if I use a 18V DC voltage source, instead of one with an initial 18V pulse step the simulation finishes fine, but I don't think it's an accurate representation of the circuit and it doesn't behave as hoped.
« Last Edit: January 20, 2016, 10:20:09 pm by kasbah »
Share your designs on kitspace.org
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2187
  • Country: au
Re: LTSpice sim for toggle power switch is taking too long
« Reply #1 on: January 19, 2016, 01:58:34 pm »
looks like it's having a hard time with the ground path. Try placing a 100Meg (Meg not M) from the anode of D1 to gorund
 

Offline kasbahTopic starter

  • Contributor
  • Posts: 41
  • Country: gb
    • My electronics project sharing site, kitnic.it
Re: LTSpice sim for toggle power switch is taking too long
« Reply #2 on: January 19, 2016, 03:26:22 pm »
Brilliant! That did it. Updated schematic attached. Thanks very much.
Share your designs on kitspace.org
 

Offline kasbahTopic starter

  • Contributor
  • Posts: 41
  • Country: gb
    • My electronics project sharing site, kitnic.it
Re: LTSpice sim for toggle power switch is taking too long
« Reply #3 on: January 19, 2016, 05:40:29 pm »
Here is a simulation of switching on, pressing button for 1s without effect then holding to turn off, and then back on again. What do people think of this circuit? Any pitfalls?



« Last Edit: January 19, 2016, 05:44:37 pm by kasbah »
Share your designs on kitspace.org
 

Offline K5HJ

  • Regular Contributor
  • *
  • Posts: 60
Re: LTSpice sim for toggle power switch is taking too long
« Reply #4 on: January 19, 2016, 09:24:50 pm »
For future reference, all nodes must have a DC path to ground.
 

Offline andre_teprom

  • Regular Contributor
  • *
  • Posts: 71
  • Country: br
    • Aluis-Rcastro
Re: LTSpice sim for toggle power switch is taking too long
« Reply #5 on: January 20, 2016, 09:42:35 pm »
Here is a simulation of switching on, pressing button for 1s without effect then holding to turn off, and then back on again. What do people think of this circuit? Any pitfalls?

Isn't the circuit nothing else than working as described in the original article?

Quote
"A momentary button press turns a power MOSFET ON, and holding it for a few seconds turns it OFF"
"Part of the world that you live in, You are the part that you're giving" ( Renaissance )
 

Offline kasbahTopic starter

  • Contributor
  • Posts: 41
  • Country: gb
    • My electronics project sharing site, kitnic.it
Re: LTSpice sim for toggle power switch is taking too long
« Reply #6 on: January 20, 2016, 10:07:45 pm »
Yes, now it does. Originally I couldn't get the simulation to work.
Share your designs on kitspace.org
 

Offline kasbahTopic starter

  • Contributor
  • Posts: 41
  • Country: gb
    • My electronics project sharing site, kitnic.it
Re: [Solved] LTSpice sim for toggle power switch is taking too long
« Reply #7 on: July 26, 2016, 02:28:11 am »
Sorry, to bump this but I turned this into a little a PCB and have quite a lot left over in case you would like one.

You can buy the right parts and download the Gerbers here: https://kitnic.it/boards/github.com/kasbah/push-on-hold-off/
« Last Edit: July 30, 2016, 03:04:09 am by kasbah »
Share your designs on kitspace.org
 

Offline RogerFL

  • Newbie
  • Posts: 1
  • Country: us
Re: [Solved] LTSpice sim for toggle power switch is taking too long
« Reply #8 on: April 06, 2020, 10:16:39 pm »
Old topic I know but I need a power switch circuit like this so here's an update.

I took the 3rd ltspice file from kasbah and thought it needed a load to be more complete, so I simply added a 10K resistor to GND from the output Vout. And then the simulation quit working.

Anyone want to try solving this again?

Attaching the updated sim.
 

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 400
  • Country: gb
Re: [Solved] LTSpice sim for toggle power switch is taking too long
« Reply #9 on: April 07, 2020, 02:24:27 pm »
You can try the attached file. I tested the output with different loading from 10R to 100K.



« Last Edit: April 07, 2020, 02:26:35 pm by eblc1388 »
 
The following users thanked this post: kasbah


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf