sharpie7 / circuitjs1

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

LED's don't seem to work as expected #652

Closed cinap666 closed 2 years ago

cinap666 commented 3 years ago

I think this must be due to a recent change as I did a similar simulation a few weeks ago.

The LED(s) have a forward voltage of 3.2V with 2 in series at 6.4V the max current should be under 20mA the simulation shows 50+mA . Am i setting up the simulation wrong? I verified this with real world measurements and get about 16mA.

Example https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWcMBMcUHYMGZIA4UA2ATmIxAUgpABZsKBTAWjDACgAncMFEPK7Hhp8qVVpDYBnEIOH9aNPCKgqAZgEMANpIZsAbgqXYEvGouWjaVQtF6WYCNtmGqA7gBMOAewAOAHQBHbFtwEGJobBRmVihYGl4ECIRCQgw8E2I8FLAMYhV2MEJeSLEMQhAUZPAyipA3T19A4N4Ie1gUJxcPb38g2yYWsIiolla4hKSUtIyswhy8sTZC3hQaUvLC9dr6nqb+wbbIDq5jFprZavKxDtcZIWULnPKb8EItzZkTcDZbj9PDT52H7cXjyVjFL7sX48QGvARfCS3EqXWFPCrA1ZbSobGodLwqQjCKhrUjIWKtWoCJxKSwQMCQCAAJQYkgAlpIAC7qAB2AGNdEA

pfalstad commented 3 years ago

What kind of real world LEDs are you using?

cinap666 commented 3 years ago

Everlight White LED 20mA 3.2V forward LK2C-B2832B2B5B2/2T(GC)

On Wed, Sep 15, 2021 at 3:59 PM Paul Falstad @.***> wrote:

What kind of real world LEDs are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sharpie7/circuitjs1/issues/652#issuecomment-920334002, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVUXRKSJRIVCG75IKMKNTZDUCD3IXANCNFSM5EDF4CMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

pfalstad commented 3 years ago

This should work better.. It fits the datasheet curve pretty good, though a bit lower than your real world measurements:

https://tinyurl.com/yzgspmkh

I created an advanced model with a higher saturation current, and that seemed to help.