the Shazaam diagram made my brain hurt. Though I will take another look at it during the day tomorrow.
Here's a walk-through for the diagram:
1. A diode is like a one-way valve in plumbing.
- You need enough water pressure (voltage) pushing in the right direction for current to flow. (forward biased)
- If water pressure is applied in the other direction, current will not flow. (reverse biased)
2. The cathode (-) on a diode is the end marked with the band. The other end is the anode. (+)
3. When you press "Button X" (upper left), ground from the green wire is applied through the pink wire to "Input X" and the anode of the pink wire diode.
- Ground on "Input X" triggers the associated output.
- Ground applied to the anode reverse biases the diode, blocking any current flow through it.
4. When you press the "Shazaaam! (dedicated)" button (lower left), ground from the green wire is applied to the "Shazaaam!" input and the anode of both blue wire diodes.
- Ground on "Shazaaam!" input (top) triggers the associated output.
- Ground applied to the anodes reverse biases both diodes, blocking any current flow through them.
5. When you press the "Shazaaam! + X" button (upper right), ground from the green wire is applied to the cathode of the pink and upper blue diodes.
- The Shazaaam! and X inputs have pullup resistors that keep the input (and the anodes of the diodes) at a logic high until ground is applied to the input.
- With a logic high on the anode and ground on the cathode, both of those diodes are forward biased, allowing current to flow through them which applies ground to the Shazaaam! and X inputs.
- Ground also travels down the blue wire to the anode of the lower blue diode, reverse biasing that diode because there is no ground applied to the cathode and blocking any current flow through that diode.
Scott