sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.23k stars 619 forks source link

Feature-Transistor current de/amplifier #910

Open Noitarud opened 7 months ago

Noitarud commented 7 months ago

Did you know you can use a transistor as a deamplifier as well as an amplifier? You don't have a (proper) amplifier demo in the list so I have both in here:

$ 1 5.0E-4 0.551975421667673 50 5.0 50 R 880 384 912 384 0 0 40.0 10.0 0.0 0.0 0.5 t 832 448 880 448 0 1 -0.04460396037701564 0.6332109005735092 100.0 g 880 528 880 544 0 w 880 432 880 384 1 w 880 384 832 384 1 O 832 448 768 448 1 i 880 464 880 528 0 0.01 w 800 416 832 384 0 w 576 480 608 448 0 i 704 432 656 432 0 9.9E-5 O 608 448 544 448 1 174 608 448 576 512 0 1000.0 0.49010000000000004 Load 174 832 384 800 448 0 1000.0 0.5495000000000001 Load w 608 528 608 512 1 w 608 416 608 368 1 g 608 528 608 544 0 t 656 432 608 432 0 1 -4.268301496938251 0.6332084004612311 100.0 R 608 368 640 368 0 0 40.0 10.0 0.0 0.0 0.5 g 704 432 704 464 0

Noitarud commented 7 months ago

Should note I posted an application example in #745, it would make a poor ammeter. I am not sure if simulator behaviour is accurate if the current sources are inverted.