Month: November 2022

  • Parts List

    Figure 17-1. The Amazing Pushbutton

  • Introduction

    With this project, you can make colorful lines and numbers move up and down your computer screen as you press a simple pushbutton switch. To do that, this project will introduce you to Processing, a simple, easy-to-learn programming language (very much like the Arduino language) that makes it very easy to display graphics on a computer screen. When…

  • Circuit Theory

    Pressing the pushbutton will close the switch and allow +5 volts DC electrical current to flow through the circuit. The Arduino reads digital pin 6 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 and…

  • Upload the Logic Tester Sketch

    With the Logic Tester built, it’s time to upload the sketch. Example 16-1 operates an LCD using a pushbutton switch, a transistor, and two fixed resistors. Here are the steps you’ll need to follow: Once the Logic Tester sketch has been uploaded to the Arduino, the LCD will display a message, as shown in Figure 16-1. Take the long jumper…

  • Let’s Build a Logic Tester

    Building this tester requires the use of an LCD. If this is your first time using an LCD, I suggest reading. For help adding the 16-pin male header to the LCD, see Figure 14-2 and Figure 14-3. The 10KΩ potentiometer’s center pin is wired to pin number 3 of the LCD. The potentiometer’s remaining pins should be wired to +5VDC and ground.…

  • Parts List

    Figure 16-1. A Logic Tester with an LCD

  • Introduction

    The Logic Tester project in allowed you to check the digital data values the Arduino uses to control motors and LEDs. The tester’s two LEDs offer a quick way to see the digital data. In this project, you’ll make an awesome change to the tester by displaying “HIGH (1)” or “LOW (0)” data messages on an LCD.…

  • 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…