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

Abnormal BJT current source behaviour with oscillating transformer in circuit #77

Open
NE558P opened this issue Mar 13, 2024 · 3 comments

Comments

@NE558P
Copy link

NE558P commented Mar 13, 2024

Hello,

Week ago or so I've discovered weird behaviour of transistors while playing with circuit known also as joule thief. I wanted to experiment a bit with it and added simple current source made from two PNP transistors and three four resistors. While joule thief part is not oscillating, current source works as expected, otherwise it just starts giving abnormal high current pulses even, if I disconnect it from joule thief part and switch back to resistor. I though problem was with web browser (JS engine?), but this happens on MS Edge and Firefox.
I know this simulator is not best to do such things, but it's still very useful and I like to play with it a lot.

I'm attaching screenshots and source sketch file for reproduction:

1
2
3
fail_src.txt

Greetings,
Sebastian.

@azambon
Copy link

azambon commented Mar 15, 2024

@NE558P Not an expert, but those 1k resistors in series with the transistor bases look suspicious, especially the one in series with the base of the leftmost transistor.
Does the problem persist if you remove them?

@NE558P
Copy link
Author

NE558P commented Mar 15, 2024

@NE558P Not an expert, but those 1k resistors in series with the transistor bases look suspicious, especially the one in series with the base of the leftmost transistor. Does the problem persist if you remove them?

Yes. Problem still exist whether you have base resistors or not:
Whoops

@pfalstad
Copy link
Owner

We discussed this in email but I'll just repeat it here: there is a clear bug because the current source on the left half of the circuit has current spikes due to the behavior of the right half of the circuit, even if they are disconnected. It seems likely to be a roundoff error issue.

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

3 participants