This video was my inspiration
To simulate the circuit, I used TinkerCad website
I used Schemeit to draw the schematic of the circuit.
First, I used Schemeit to draw the schematic of the circuit.
Then, I used Tinkercad to simulate the circuit and made sure that the circuit will work and the ampere within the limits.
The components that I had used:
1 Seven Segment (common cathode)
2 LEDs (Green and Red)
3 Resistors 220 ohm
1 push button
1 single pole double throw switch
power supply
Breadboard
Since the maximum current per segment is 40 mA, and in the first mode there will be only 2 segments are drawing current, so the current limiting resistor should be 5/80mA= 62.5 Ohm
but, I used a 220-ohm resistor to make sure that the current will not exceed 20mA to protect the components and I used 220-ohm resistors for each LEDs to protects them under any circumstances and to make sure that the current in them will not exceed 20mA also.
the Avometer reading is 15mA As the total current.
The video is showing the circuit simulation on Tinkercad.
I used the same physical components.
so I used the breadboard, and one 7 segment, 2 LEDs red and green, 1 push button,1 single pole double throw switch and I connect the circuit as TinkerCad by the jumper wires and I used crocodile wires to connect the circuit to the adaptor.
I faced some issues when I tried to connect the press button on Tinkercad, but I found the solution in this video.