Key switch
Behind door number 18 you will find
another resistor with 1 M
Ω
(1 MOhm,
brown, black, green). With this you’ll be
building a button switch. Each press on the
button changes the state of the LED to On -
Off - On - Off and so on. The last state is
retained after release. Here, too, the speaker
can remain connected. You will hear a click
every time you switch.
18
The Flipflop
A flipflop is a circuit that can have two stable states. The existing state remains
stored as long as you do not intentionally change it. The flip-flop is therefore
also an information memory. In this case, only one piece of information is
stored. You can call them “yes” or “no”, but also “one” or “zero” or in this
case “on” or “off”. Many flip-flops together are used as memory in computers
and store large amounts of data.
This circuit is also called toggle flipflop. If
you press the button ten times, the LED is on
exactly five times during this time. Therefore,
this circuit halves the number of on states.