b'Circuit 2B: DigitalLearn about digital inputs and buttons as you build your own digital trumpet! Trumpet Buttons are all around us, from the keys on your keyboard to the buttons on your remote control. YOU NEEDPOTENTIOMETERPIEZO BUZZER10 JUMPER WIRES3 PUSH BUTTONSNEW COMPONENTS of as ON or OFF, TRUE or FALSE, HIGH or LOW. Almost all electronics rely on a base-2 BUTTONS: Also known as momentarynumber system to store and manipulate switches, buttons only remain in their ONnumbers. The heavy reliance electronics state as long as theyre being actuated,places on binary numbers means its or pressed. Most oftenimportant to know how the base-2 number momentary switches aresystem works.best used for intermittent user-input cases: resetDIGITAL INPUT: In circuit 1A, you button and keypad buttons.worked with digital outputs. Each of the These switches have a nice, tactile, clicky14 digital pins can also be digital inputs. feedback when you press them.Digital inputs only care if something is in one of two states, 0 or 1. Digital inputs are Note that the different colors are justgreat for determining if a button has been aesthetic. All of the buttons includedpressed or if a switch has been flipped.behave the same, no matter their color.PULL-UP RESISTORS: A pull-up NEW CONCEPTS resistor is a small circuit that holds the voltage HIGH (5V) on a pin until a button is BINARY NUMBER SYSTEM: Numberpressed, pulling the voltage LOW (0V). The systems are the methods we use tomost common place you will see a pull-up represent numbers. Were most used toresistor is when working with buttons. A operating within the comfy confines ofpull-up resistor keeps the button in one a base-10 number system, but there arestate until it is pressed. The RedBoard has many others. The base-2 system, otherwisebuilt-in pull-up resistors, but they can also known as binary, is common whenbe added to a circuit externally. This circuit dealing with computers and electronics.uses the internal pull-up resistors, covered Computers, at their lowest level, really onlyin more detail in the Code to Note section.have two ways to represent the state of anything: 1 or 0, which can also be thought 42 : circuit 2b'