Circuit Theory

The Arduino controls the tricolor pattern that is sent to the RGB LED, as shown in Example 10-1. The RGB LED sequence or pattern is started with a short press of the mini pushbutton switch. Within the sketch is a counter that plays the pattern for a set number of times (in this case, three times). The replay number can easily be changed by replacing the counter’s value of 3 to a different number.

The block diagram in Figure 10-4 shows the building blocks and the electrical signal flow for the Magic Light Bulb. Circuit schematic diagrams are used by electrical engineers to quickly build cool electronic devices. The equivalent circuit schematic diagram for the Magic Light Bulb is shown in Figure 10-5.

The Magic Light Bulb block diagram

Figure 10-4. The Magic Light Bulb block diagram

Something to Think About

What happens to the Magic Light Bulb if the mini pushbutton switch is pressed continuously?

The Magic Light Bulb circuit schematic diagram

Figure 10-5. The Magic Light Bulb circuit schematic.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *