Electronics > Projects, Designs, and Technical Stuff

Looking to (re)build a circuit to discharge my lipo batteries to like 3.9-3.7

<< < (9/9)

SiliconWizard:
Just the info from the vendor: https://www.analog.com/en/technical-articles/ltspice-simple-steps-to-import-third-party-models.html

Looks like creating parts from Spice models has gotten a lot easier than what it used to be, and I was still using the old, "manual" way of editing/creating files by hand... so I did learn something as well today. ;D

Long story short:
* Open the Spice model file in LTSpice. (Ex: TL431.mod) It will open as a Spice file (basically text editor mode);
* Select the subcircuit name you want to create a part from (ex: 'TL431' on the subcircuit line '.SUBCKT  TL431 1  2  3');
* Right-click on the selected name, a menu pops up, select "Create symbol";
* A confirmation message appears, choose 'Yes';
* A symbol now appears in the symbol editor. You can customize its shape and rename the pins that correspond to the subcircuit nodes by default (only change the pin names, not the Spice order!);
* Save it. You can now close the symbol and the Spice file windows. The new part is available for use without having to restart LTSpice.

Note: the symbol editor in LTSpice is terrible. Even more so than the schematic editor. You've been warned. ;D

gilligan:

--- Quote from: SiliconWizard on January 03, 2020, 02:20:27 pm ---Just the info from the vendor: https://www.analog.com/en/technical-articles/ltspice-simple-steps-to-import-third-party-models.html

Looks like creating parts from Spice models has gotten a lot easier than what it used to be, and I was still using the old, "manual" way of editing/creating files by hand... so I did learn something as well today. ;D

Long story short:
* Open the Spice model file in LTSpice. (Ex: TL431.mod) It will open as a Spice file (basically text editor mode);
* Select the subcircuit name you want to create a part from (ex: 'TL431' on the subcircuit line '.SUBCKT  TL431 1  2  3');
* Right-click on the selected name, a menu pops up, select "Create symbol";
* A confirmation message appears, choose 'Yes';
* A symbol now appears in the symbol editor. You can customize its shape and rename the pins that correspond to the subcircuit nodes by default (only change the pin names, not the Spice order!);
* Save it. You can now close the symbol and the Spice file windows. The new part is available for use without having to restart LTSpice.

Note: the symbol editor in LTSpice is terrible. Even more so than the schematic editor. You've been warned. ;D

--- End quote ---

Yeah, that's what I ended up doing.

It's quite frustrating and all the tutorials give examples where they can pick known components... like a diode or op-amp.

Found one that showed an 8 pin chip and realized i could just redraw it to be what I wanted.

Very clunky.

not1xor1:

--- Quote from: gilligan on January 03, 2020, 02:44:40 pm ---It's quite frustrating and all the tutorials give examples where they can pick known components... like a diode or op-amp.

Found one that showed an 8 pin chip and realized i could just redraw it to be what I wanted.

Very clunky.

--- End quote ---

in the zip file I attached in my previous message there are both a TL431 model and an asy (symbol) file.

gilligan:

--- Quote from: not1xor1 on January 03, 2020, 05:44:56 pm ---
--- Quote from: gilligan on January 03, 2020, 02:44:40 pm ---It's quite frustrating and all the tutorials give examples where they can pick known components... like a diode or op-amp.

Found one that showed an 8 pin chip and realized i could just redraw it to be what I wanted.

Very clunky.

--- End quote ---

in the zip file I attached in my previous message there are both a TL431 model and an asy (symbol) file.

--- End quote ---

Yes, thank you very much!

I have built a 1S, 2S, 3S, and 4S circuits with your help.

I'll post them soon for feedback as I'm sure I screwed some things up. LOL

Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod