Category: Arduino Projects
-
Parts List
Figure 7-1. The assembled Arduino OR Logic Gate TECH NOTE When two or more electrical/electronic components are connected across one voltage source via separate paths, this is called a parallel circuit. In a parallel circuit, there are different ways that electricity can flow.
-
Introduction
Two Pushbutton Switches in Parallel The OR Logic Gate is the final basic computer circuit used to make simple decisions with electrical input signals. The OR Logic Gate is different from the AND circuit because the two pushbutton switches are connected in parallel (instead of in series as with the AND circuit). The OR Logic Gate’s output decision is…
-
Something to Think About
How can the photocell be wired to analog A0 and be used as a digital input pin? Figure 6-10. The Arduino AND Logic Gate circuit schematic.
-
Upload the Arduino AND Logic Gate Sketch
With the Arduino AND Logic Gate built on the MakerShield, it is time to upload the sketch. Example 6-1 operates the green LED using a pushbutton switch and a photocell. Here are the steps you’ll need to follow: The Arduino AND Logic Gate will turn on the LED when the photocell is covered and the pushbutton switch is pressed. Releasing…
-
The Arduino AND Logic Gate
We’re going to replicate the AND gate using an Arduino. To make the circuit interesting, we’re going to use a photocell to replace one of the pushbutton switches from Figure 6-1. In Figure 6-6, we see the Arduino AND Logic Gate, with the LED turned off. Placing a piece of tape over the photocell (to allow no light into it,…
-
Circuit Theory
The AND Logic Gate is a computer circuit that outputs TRUE if the two pieces of input data have the same state as each other. Digital electronics have two binary states: TRUE or FALSE. The electric circuits used in digital electronics to build computer logic gates will either be closed or open representing a TRUE or…
-
Parts List
TECH NOTE In digital electronics, a TRUE state is when a data bit is set to 1, or an output pin is set to +5 volts, or a switch is closed. A FALSE state is when a data bit equals 0, or an output pin is set to 0 volts, or a switch is open.
-
Introduction
Two Pushbutton Switches in Series The AND Logic Gate is another computer circuit used to make basic decisions with electrical input signals. Building the AND Logic Gate requires wiring two pushbutton switches to electrical contacts in a chain or series circuit. The AND Logic Gate’s output decision is based on both parts of the input…
-
Upload the Arduino NOT Logic Gate Sketch
With the Arduino NOT Logic Gate built on the MakerShield, it is time to upload the sketch. Example 5-1 operates the red and green LEDs using a pushbutton switch. Here are the steps you should follow: Figure 5-5. The NOT Logic Gate Fritzing wiring diagram The Arduino NOT Logic Gate will turn the green LED on once the sketch has…
-
Upload the Arduino NOT Logic Gate Sketch
With the Arduino NOT Logic Gate built on the MakerShield, it is time to upload the sketch. Example 5-1 operates the red and green LEDs using a pushbutton switch. Here are the steps you should follow: Figure 5-5. The NOT Logic Gate Fritzing wiring diagram The Arduino NOT Logic Gate will turn the green LED on once the sketch has…