Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Op amp simulation problems and one other #942

Open
ajohnw opened this issue Dec 16, 2019 · 2 comments
Open

Op amp simulation problems and one other #942

ajohnw opened this issue Dec 16, 2019 · 2 comments

Comments

@ajohnw
Copy link

ajohnw commented Dec 16, 2019

I've been trying to use qucs for some audio type work using a tl071 on a single rail. 2 of them in fact. They wont simulate. Go to dual rail and they will. Adding a high pass rc filter to the output also prevents simulation.

One other problem, Net generation failing after changes have been made to the circuit. Error " expected. I think this may have something to do with the way wires behave when they are drawn. Drift off a straight line and it will try and auto correct the path of the wire. I do correct the position of the end of the wire to obtain a straight line but sometimes when I delete a line a couple of small wires are left behind that are hard to select and delete. In fact they only seem to select with a right click. It would be best to disable this attempt at automation and keep the wire straight as the changes it makes generally wont be suitable anyway. Mouse clicks set where the wire changes direction. The net effect seems to be short sections of wire under the one that has been drawn that remain when the one on top is deleted.

Having the net calculation fail is extremely frustrating. The only solution is to throw the lot away and start again. A simple fix might be an option to delete all wires from the schematic and from internal storage so that the user can wire it up again. Big improvement over doing the lot again and this should work whatever has caused the problem.

@ajohnw
Copy link
Author

ajohnw commented Dec 16, 2019

Argggg. I now do have the simulation running with a single rail so the problem must have been down to something else. I had wondered about the spice convention of using Imeg etc so tried that which cause simulation to fail. Replaced 1meg with 1M and it simulated. I've been using thing like 1k , 1nF from the beginning and also tried adding spaces- 1 k, doesn't seem to matter, So can only put problems down to making circuit changes, deleting wires, adding more and further components etc.

Same with adding a low pass blocking C to the output of the amp. Ok now.

DC analysis is switching to stepping but sadly I didn't save the schematic before making the early changes and may have been so excited that it did simulate that I missed the flashing msg.

I initially wire the amp for single rail and then added a voltage source to provide Vee and later removed it and wired Vee to ground.

I'm using V0.20

@felix-salfelder
Copy link
Member

felix-salfelder commented Sep 26, 2020

Replaced 1meg with 1M and it simulated.

if 1meg does not work, it should not be allowed. not sure how to fix this at the moment.

Edit: Since Qucs does not parse or understand expressions right now, a good fix is to catch it in the simulator or its driver. In the long run, we need to handle errors/warnings properly and display them in a useful way. The latter is required regardless of this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants