You need to use EasyEDA editor to create some projects before publishing
NoNet problem
2693 17
Jim53 7 years ago
Hello, I want to simulate a schematic with an operational amplifier OPA2228 but when I run a DC op pnt simulation, I have the message below : > Circuit: good* no system model for opa2228ua, you can create a model by yourselfuntitled > Error: unknown subckt: xu2 nonet nonet nonet 0 r1_1 opa2228ua My schematic is defined as the picture below : ![enter image description here][1] The spice model for OPA2228 is : * begin model opa2228 * pinout 3 2 7 4 6 * pinout order +in -in +v -v out .subckt OPA2228UA 5 6 8 4 7 q26 8 9 10 qon q27 11 9 12 qop q28 4 13 14 qop q29 8 15 16 qon i4 8 15 3e-3 i5 13 11 3e-3 r34 17 16 1 r35 14 17 1 c6 9 18 100e-12 r36 18 9 1e3 g1 9 18 19 0 -1e-3 g2 20 18 21 22 -0.5e-2 r37 18 20 1e10 c7 19 23 25e-12 r38 19 20 1.9e3 e1 24 18 19 18 1 d2 24 20 dd r39 18 23 77 q30 22 25 26 qin q31 21 27 28 qin q32 29 30 31 qn r40 11 31 4.499e3 v6 30 32 1.2613 r41 22 33 220 r42 21 33 220 v7 8 34 2 r45 29 26 1 r46 29 28 1 r47 7 17 10 d1 34 33 dd d3 20 24 dd d4 35 8 dd d5 11 36 dd v8 35 20 1.6 v9 20 36 1.1 e6 37 0 8 0 1 e7 38 0 11 0 1 e8 39 0 40 0 1 r48 37 41 100e6 r49 38 42 100e6 r50 39 43 1000e6 r51 0 41 100 r52 0 42 100 r53 0 43 100 e11 44 5 43 0 0.7 r54 45 40 1e3 r55 40 46 1e3 c10 37 41 1e-9 c11 38 42 1e-9 c12 39 43 1e-12 e12 47 44 42 0 0.3 e13 48 47 41 0 0.3 r60 47 48 1e9 r61 44 47 1e9 r62 5 44 1e9 e22 45 0 7 0 1 e23 46 0 48 0 1 e24 49 50 51 52 4.2e-3 i7 0 52 100e-6 d6 52 0 dvn i8 0 51 100e-6 d7 51 0 dvn r63 25 48 5 r64 49 27 5 q33 25 25 53 qn q34 53 53 27 qn q35 54 54 25 qn q36 27 27 54 qn e25 11 0 4 0 1 e26 8 0 8 0 1 i9 8 4 0.3e-3 r65 4 8 41.67e3 e27 18 0 8 11 0.001 c13 7 0 3e-12 c14 48 0 3e-12 c15 48 7 12e-12 v10 50 7 0 r66 12 15 1 r67 13 10 1 i13 48 0 -509.7e-9 i14 7 0 -509.7e-9 q37 32 32 11 qn i15 11 30 286e-6 d8 7 8 doc d9 4 7 doc .model dd d .model doc d rs=20 .model dvn d kf=1.6e-13 .model qn npn .model qon npn bf=15 rc=70 .model qop pnp bf=15 rc=95 .model qin npn bf=270 kf=8e-17 .ends When I generate the netlist, I have the lines below : Shema_electrique XU2 NoNet NoNet NoNet GND R1_1 OPA2228UA V2 V2_+ GND 5 V1 V1_+ GND 15 R2 GND R1_1 10k R1 R1_1 VOLPROBE1 15k .param pi = 3.141593 .func LIMIT(x, y, z) {min(max(x, min(y, z)), max(z, y))} .func PWR(x,a) {(MAX(ABS(x), 1e-313))**a} .func PWRS(x,a) {sgn(x) * PWR(x,a)} .func stp(x) {u(x)} .func log10(x) {ln(x)/ln(10)} .func SQRT(x) {(MAX(x, 1e-313))**0.5} .func INT(x) {sgn(x)*floor(ABS(x))} .func URAMP(x) {max(x,0)} .func POW(x,a) + {(((a-(int(a)))==0)||(sgn(x)>=0))*( max(exp(ln(uramp(x))*a),0) + + (2*(0.5-ABS((int(a))-2*int(a/2))))*max(exp(ln(uramp(-1*x))*a),0) )} .control probe V(VOLPROBE1) quit .endc .END Do you know why there are "NoNet" words on the second line of the netlist? [1]: /editor/20161119/582f9f13c1e95.JPG
Comments
andyfierman 7 years ago
Hi Jim53, Your schematic is private so we cannot see it directly. So, some questions. Have you looked through the EasyEDA Simulation eBook: https://docs.google.com/document/u/1/d/1OWZVVFRAe_2NW3WratpkA_SGuHa5AcRow5ZRfvcoVTU/pub (The copy on the EasyEDA tutorials pages still has some problems with the Table of Contents and we have been too busy with the October upgrade to fix it.) In particular the section on spice models and how to paste a 3rd party subckt into your schematic? I suspect that you have either not pasted the subckt you have found into your schematic or you have not set the text type to `spice`. In a day or so I will have been able to check the AD model for EasyEDA compatibility and put it into the library. I'll post back once it's in.
Reply
andyfierman 7 years ago
My mistake: the OPA2228ua is from TI, not AD. There is now a simulatable symbol for the OPA228 which represents **all** TI OPAx22x High Precision, Low Noise Operational Amplifiers. Product page: http://www.ti.com/product/OPA2228 Datasheet: http://www.ti.com/lit/ds/symlink/opa2228.pdf Spice model: http://www.ti.com/lit/zip/sbom144 **The OPA228 spice model is the only model available from TI and is used for all devices in this family.**
Reply
Jim53 7 years ago
Thank Andyfireman, I have changed the status from private to public and the URL is https://easyeda.com/editor#id=d1522c2e3fde47a0b0f4189ed26735ba Before I started to simulate, I have looked through the EasyEDA Simulation eBook and the text type was set to spice. For your information, the text was pasted from OPA228 spice model from TI. I have just changed "OPA228" to "OPA2228" and the pinning to comply with the schematic.
Reply
andyfierman 7 years ago
You don't have to change the subckt pin order. If you highlight the schematic symbol and then press the `I` key, you can then edit the PCB and spice pin order of the symbol. If you have used the 5 pin opamps symbol from the EasyEDA Libs then the pin numbers will be correct anyway.
Reply
andyfierman 7 years ago
I have found the problem. When you created the symbol for the opa2228ua you pasted the subckt text into the *symbol*. If I move the symbol in the schematic, then the subckt text moves with it. * That is not how attaching a spice subckt (or model) to a symbol works in EasyEDA. This is how it is supposed to work. You place a symbol from the EasyEDA Libs (in this case the 5 pin operational amplifier symbol) in the schematic. Change the name of the symbol to **exactly** the same as that of your subckt. Next, you place a `TEXT` placeholder in the schematic. Now, copy all the text of the spice subckt from where ever you have saved it Next, double click on the `TEXT` placeholder to open it for editing. Then do CTRL+A to select the word `TEXT` and then paste in your subckt. Click back on the schematic canvas then select the subckt text and in the **Text Attributes** in the right hand panel, set **Text type** to `spice`. Done. That way your subckt is pasted into the *schematic*. * However, for this particular opamp, all you have to do is to delete your opamp symbol from the schematic and replace it with the 5 pin operational amplifier symbol from the EasyEDA Libs and then edit the symbol name to OPA228. Done! In the meanwhile, please either delete the whole of your OPA2228UA symbol or at least the text of the subckt from it. Thanks.
Reply
Jim53 7 years ago
@andyfierman I have tried to follow your procedure and now I see the OPA228 when I generate the NetList of the document. Unfortunately, I have always the same problem because "NoNet" appears in the NetList for the operational amplifier as below : XU1 NoNet V2_+ R1_1 GND NoNet OPA228 When I run the simulation, I have uncorrect values for the voltages and I don't understand what is the second line started by "xu1.8" because I have only one voltage probe in the schematic: > Operating Point Simulation results: > xu1.8: 2.316078868413V voltage > (volprobe1): 2.31608V voltage > Circuit: good* no system model for opa228, you can create a model by yourselfuntitled > Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 > No. of Data Rows : 1 > ngspice-26 done
Reply
andyfierman 7 years ago
2 errors. One mine. One yours. Mine is that I accidentally named the subckt in the library to opa2228. I have corrected the subckt name to **OPA228**. Yours is that you have edited the spice pin order in the opamp symbol. If replace your opamp symbol with the 5 pin operational amplifier symbol from the EasyEDA Libs, change the name to OPA228 and **do not change the spice pin order of the symbol**, then your circuit will work. The `xu1.8: 2.316078868413V voltage` is a quirk of the ngspice .op analysis. It is reading the DC voltage on pin 8 of U1 (the opamp). I am actually not sure why ngspice does this but you can ignore it.
Reply
Jim53 7 years ago
@andyfierman Thank you, I have understood my error. I had changed the Spice pin number of the OPA to have the same number as in the subckt but it was an error. I understand the Spice pin number is the order to respect in the subckt and not the pin number.
Reply
andyfierman 7 years ago
Here are the links to relevant sections of the EasyEDA Simulation eBook: https://docs.google.com/document/u/1/d/1OWZVVFRAe_2NW3WratpkA_SGuHa5AcRow5ZRfvcoVTU/pub#h.43ky6rz https://docs.google.com/document/u/1/d/1OWZVVFRAe_2NW3WratpkA_SGuHa5AcRow5ZRfvcoVTU/pub#h.pkwqa1
Reply
Jim53 7 years ago
@andyfierman I don't find the DC generator in the easyEDALibs to simulate a ramp from 0V to 5V in 1s. The voltage supply in easyEDALibs allows only Sin, Cos, Square, Triangle and Sawtooth function but not DC. When I see the easyEDA examples, a such generator seems to exist but I don't find it. Could you help me?
Reply
andyfierman 7 years ago
You don't need to use the EasyEDA Voltage or EasyEDA Current Sources. The standard spice **Independent Voltage Sources** and **Independent Current Sources** are far more flexible and are easier to understand how to configure: https://docs.google.com/document/u/1/d/1OWZVVFRAe_2NW3WratpkA_SGuHa5AcRow5ZRfvcoVTU/pub#h.2p2csry https://easyeda.com/editor#id=3a5cb8bef2ca4bb892ba99b1a056d384 https://easyeda.com/editor#id=924a94b4fd7a471fac631b4d726d9c10
Reply
Jim53 7 years ago
@andyfierman Excuse me but I don't find the Independent voltage sources. Where is the symbol of these sources?
Reply
andyfierman 7 years ago
![enter image description here][1] ![enter image description here][2] See also: https://easyeda.com/forum/topic/Selecting_Sources_in_EasyEDA-oASM4mEyQ [1]: /editor/20161124/58362343b8b98.png [2]: /editor/20161124/5836236a10462.png
Reply
Jim53 7 years ago
@andyfierman When I put the such symbol on my schematic, I don't have all options. I have only Sin, Cos, Triangle, Square and Sawtooth but not DC as you can see on the picture below : ![enter image description here][1] How can have a symbol where all options are available? [1]: /editor/20161124/5836b1d24317b.jpg
Reply
andyfierman 7 years ago
That is because you are selecting the symbol for **Voltage Source(EasyEDA)** and not the **Voltage Source**. Please look again at my previous post. Please select the symbol for **Voltage Source** (or the equivalent Current Source) and then see the links above to understand how to configure them. :)
Reply
Jim53 7 years ago
@andyfierman Excuse me, you are right. I thought a I had taken this symbol but it is not the case because after a new test, it is OK. Thank you very much for your help.
Reply
andyfierman 7 years ago
Good stuff! :)
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice