You need to use EasyEDA editor to create some projects before publishing
Cannot simulate MOSFET
1396 7
Aliaksandr Tamaryn 4 years ago
Hello! I'm trying to simulate simple "power key" schema based on MOSFET: ![image.png](//image.easyeda.com/pullimage/uFGw4I03EPNshi5csJy9xggQ74rKwyLo78RsdhMc.png) Symbol information: ![image.png](//image.easyeda.com/pullimage/yZFEdSEorce2FFJ9svnxrMySW25jXn02yT7vRwCV.png) Output results: ![image.png](//image.easyeda.com/pullimage/B1zzpytxtrYVHKWiZIXNvSzQBDJRPpe57y0q3eQ9.png) I went through documentation and tried different approaches, including insertion of MOSFET (2N7000, BS250) from System library, but I do not see any changes. What am I doing wrong? Thank you in advance!
Comments
andyfierman 4 years ago
Hi Aliaksandr, Can you make your sim project public so we can inspect the spice netlist? Thanks.
Reply
andyfierman 4 years ago
You can only run sims using parts from the System > Spice libraries. Simulatable symbols are darker blue and have a small "S" in them when viewed in the Search Libraries tool. I think what is wrong is that you have used a symbol from the **System** library and not from the **System > Spice Discrete **library ![image.png](//image.easyeda.com/pullimage/dUbJPAeMtqoBSB7BbwYm7a72I7D1zw1yc0T12guy.png) ![image.png](//image.easyeda.com/pullimage/1A3eHnPIwXil2iMMdPplePYED7UxEROeWzis127g.png) * Please see: [https://easyeda.com/andyfierman/2n7002_d-test](https://easyeda.com/andyfierman/2n7002_d-test)
Reply
Aliaksandr Tamaryn 4 years ago
Great thanks! Your approach with searching in System library really works. But finally I see about 100 elements in Spice Discrete space. What about if I need some mosfet which is not in the list? For instance BF250. I found its spice model but still cannot apply it to simulation. I made my project public but not sure how I can share it with you. Here the link: [https://easyeda.com/editor#id=c91210bbb5c44a12982dad84bf66b365](https://easyeda.com/editor#id=c91210bbb5c44a12982dad84bf66b365) Project name is VeniceLights Thank you in advance!
Reply
andyfierman 4 years ago
"What about if I need some mosfet which is not in the list? For instance BF250. I found its spice model but still cannot apply it to simulation. " That is explained in the SImulation Tutorial. In fact you did everything right excpe that you started with a nonsimulation Schematic Symbol instead of a Spice Symbol from the Spice library. All you need to do is place the spice symbol in your sim, then if you want to use a different model do exactly what you did in your original sim. Paste the model into the schematic (or a separate sheet in the same project), chenge the name ofthe symbolin the schematic to theexact name of the new model and lastly, check the symbol to see if the spice prefix needs to be changed (M for a .model defined MOSFET model or X for a .subckt defined MOSFET model). It's worth checking the spice pin numbering but they are usually all the same DGS 123 sequence. Where it may go wrong is if the model is not SPICE3 or SP3 compatible. Pspice models may use a different syntax for some things so the models may have to be edited to get them to work in Ngspice. This problem will go away when we swap to using LTspice as the simulation engine. most 3rd party models will "just work" then. It does mean I have to undo a lot of ngspice specific tricks in many of our in-house models but that's life... :)
Reply
andyfierman 4 years ago
If you look at your spice netlist, you'll see that there is no Q1. ![image.png](//image.easyeda.com/pullimage/DjAmw61zdmvgBI9kTQplj1FmD1bPcoq1ay2ukTsR.png) That's because the spice netlister doesn't see the mosfet symbol because it's not a spice symbol.
Reply
Aliaksandr Tamaryn 4 years ago
Thank you for you comprehensive answer! I changed MOSFET to one from Spice Library and simulation ran correctly. Wish you a "bugless" undo of ngspice tricks :)
Reply
andyfierman 4 years ago
Thanks! Now, if we can just make finding models in the library easier...
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