Beginner Arduino Projects

1. Arduino - LED - Blink

Equipment

LED Functions

image.png

image.png

Project Set-up

pinMode refers to Arduino.png

2. Arduino - Button

Arduino - Button Tutorial 

Equipment:

Buttons

image.png

image.png

image.png

image.png

Project Set-up

arduino-button-wiring-diagram.jpg

image.png

Testing your script

Open Serial Monitor (under Tools). Press button a few times and the script should change between 0 and 1 (1 is high, 2 is low).

image.png

Modify the code to detect the press and release events:

image.png

image.png

 

3. Arduino - Turn LED ON and OFF With Button

Turn LED ON and OFF With Button Tutorial

Equipment

Project Set-up

image.png

Code to turn light on when button is held:

image.png

Code to turn button on and off LED with button:

image.png