pfalstad / circuitjs1

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

Bug. Incorrect Diode behavior #88

Closed inyutin-maxim closed 5 months ago

inyutin-maxim commented 5 months ago

I am draw scheme image 7segment draw have value 3, but should be 7

Similar sheme in EasyEDA (slightly simplified),

image

pfalstad commented 5 months ago

Hi, when you post a circuit, could you post a link (File->Export As Link) rather than a screenshot.

The default Seven Segment LED element uses logic inputs by default, so if the input is at 5V the segment will light up. It doesn't matter if there is any current, because the inputs don't draw any current. In this circuit, there is no current since the ground is not connected, so all the connected inputs are at 5V, so they all light up.

You can right click the 7-Segment LED, click "Edit", and then change "Diodes" to "Common Cathode". Then connect the ground, and then the segments will only light up if there is current.

inyutin-maxim commented 5 months ago

Thanks, you right it was necessary to switch the seven-segment indicator to the mode on the common cathode. The problem was not in the place where I thought. This project is very cool