Components and supplies
Battery, 9 V
LED, Infrared
9V Battery Clip
DigiSpark
Resistor 10k ohm
Lab glasses/goggles
MOSFET Transistor, Switching
ESD Tape, Masking
Resistor 220 ohm
Tools and machines
Soldering iron (generic)
Solder Wire, Lead Free
Apps and platforms
Arduino IDE
Project description
Code
CODE
arduino
There are two integers in the code. These are “buttonState” and “buttonCounter”. These integers are used to represent the pressing of the push button. The commands digital read and digitalwrite are used to read the voltages from the pushbutton to then tell whether or not to turn the leds on.
CODE
arduino
There are two integers in the code. These are “buttonState” and “buttonCounter”. These integers are used to represent the pressing of the push button. The commands digital read and digitalwrite are used to read the voltages from the pushbutton to then tell whether or not to turn the leds on.
Downloadable files
Sketch 1
Sketch 1
Sketch 2
Sketch 2
Tinkercad circuit
Tinkercad circuit
Sketch 1
Sketch 1
Sketch 2
Sketch 2
Comments
Only logged in users can leave comments