Build an Arduino NOT Logic Gate

We’re going to add an Arduino microcontroller to Figure 5-2 to control two LEDs using a computer program or sketch. You will wire the pushbutton switch with a 1KΩ resistor to pin D2 and two LEDs (red and green). The LEDs will be attached to pins D8 and D9. Figure 5-5 shows the Fritzing wiring diagram for this project. The NOT Logic Gate can easily be built using the MakerShield prototyping board. This prototyping board makes the device portable so you can carry it in your shirt pocket or toolbox to demonstrate it to family, friends, and the local Makerspace. Refer to Figure 5-1 for the MakerShield NOT Logic Gate device.

TECH NOTE

The MakerShield prototyping board is an awesome tool to create cool electronic gadgets like the ones in this book or on the Makezine/Arduino projects website.


Comments

Leave a Reply

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