Category: A Logic Tester (With An RGB LED)
-
Circuit Theory
Pressing the pushbutton will close the switch and allow +5 volts DC electrical current to flow through the test circuit. The Arduino reads digital pin 8 to determine if the pin is receiving +5 volts (i.e., set to HIGH) or if it is not receiving any voltage (i.e., set to LOW). The Arduino takes that information…
-
Upload the Logic Tester Sketch
With the Logic Tester built, it’s time to upload the sketch. As shown in Example 15-1, the sketch operates an RGB LED using a pushbutton switch and two fixed resistors. Here are the steps you’ll need to follow: Once the Logic Tester sketch has been uploaded to the Arduino microcontroller, the RGB’s red LED will be on,…
-
Let’s Build a Logic Tester
The Logic Tester is an easy-to-build Arduino microcontroller device. The RGB has three individual color LEDs that allow binary data to be seen visually. The RGB LED pinout is shown in Figure 15-2. Only the red and green LEDs will be used to show the binary logic values of “0” and “1”. To ensure proper operation of the…
-
Introduction
The NOT, AND, and OR projects use two basic voltages: either +5VDC for TRUE or 0V for FALSE. These two signals let the Arduino make basic logic decisions. In the computer world, these voltages are known as binary data. In computers, binary data is represented by logic “1” (+5 volts DC) and logic “0” (0 volts).…