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

 


Revision #2
Created 2026-06-11 14:35:18 UTC by Mariah
Updated 2026-06-11 16:21:30 UTC by Mariah