Hello, I have been trying for 2 days to get EasyEDA simulation to run and have had zero success. I know that there may be some issues with the way I have the voltage sources and probes setup but, I can work those out later. My main issue is that I cannot get spice models associated correctly to the symbols. I have searched the forum and found the examples of editing the spice model and associating them.
I grabbed the spice3 model for Q4 in my schematic (Schematic) for 2n2222a from ON Semi and pasted the .model line (or the whole thing-doesn't change anything)into a text box, changed the text type to "spice", then I changed the NAME of the part to 2n2222a npn.
Fair enough but, when I run the simulation, I get the error: Circuit: good* no system model for 2n2222a npn, you can create a model by yourself
Error: unknown subckt: xq5 q8_1 xq4_3 r4_2 2n2222a npn
I really do apologize for beating a dead horse. I cannot for the life of me figure out what the problem is. I'm sure it's one small detail that I am overlooking.
Thank you in advance.
Bryan
Hi Bryan,
Welcome to EasyEDA.
If you have been looking around the forums, I'm guessing you've found the EasyEDA Simulation eBook at:
https://docs.google.com/document/u/1/d/1OWZVVFRAe_2NW3WratpkA_SGuHa5AcRow5ZRfvcoVTU/pub
in particular:
https://docs.google.com/document/u/1/d/1OWZVVFRAe_2NW3WratpkA_SGuHa5AcRow5ZRfvcoVTU/pub#h.43ky6rz
What may also save a bit of hunting around is:
https://easyeda.com/forum/topic/How_to_find_simulatable_parts_in_EasyEDA-1YgasK2kC
The reason you are getting:
Error: unknown subckt: xq5 q8_1 xq4_3 r4_2 2n2222a npn
is because you have made a simple mistake.
So all you have to do is to:
paste the whole of the model text into your schematic;
Set it to
text type = spice
;Select the symbol;
Edit the bjt symbol name to be exactly the same as the name in the .model;
Press
I
and set theSpice Prefix
to Q.Done.
However, please note that there is a model for the 2N2222, 2N2904, 2N3904 and 2N3906 already in the library.
I have also just put models for the Q2n2907a and Q2n2222a in there too so all you have to do is place the relevent symbol in the schematic and edit the name to match the model in the library.
So, no other changes needed.
The reason it made no difference if you pasted the whole model statement or just the model line into the schematic is also because EasyEDA and ngspice was looking for a .subckt and not a .model definition.
For any model, you have to paste the whole of the model definition (including, for copyright reasons, all the header information!) like this for example from:
http://www.onsemi.com/pub_link/Collateral/2N2907A.LIB.TXT
Q2n2907a
and not
2n2907a
https://easyeda.com/forum/topic/Selecting_Sources_in_EasyEDA-oASM4mEyQ
For simulations, unless there is a dedicated spice symbol for a device (see link above on how to find these), it's always best to use symbols directly from the EasyEDA Libs.
Slider of R16 pot needs to be connected somewhere. A simpler variable resistor symbol is also available in the EasYEDA Libs.
:)