02.00 - Introduction to Interactivity
On this page
This module introduces user input and feedback. Previously we programmed the Arduino to blink an LED or move a servo motor, but once the program started it merely continued without responding to changes from the user or the environment. To make something interactive it needs to react to user input, the environment, or both. A button and a potentiometer can capture user input and change the actions of the program.
As programs begin to have multiple parts, functions, and actions it is beneficial to break complex ideas into discrete component parts of a whole.
Learning Objectives
- Connect a potentiometer to analog pin of Arduino
- Connect a button to digital pin of Arduino
- Control a servo motor with a potentiometer
- Control a LED with a button
- Use a millisecond timer to debounce a button
- Incorporate user input into an interactive sculpture
- Break a project into components
Keywords / Terms
- button
- potentiometer
- analog
- digital
- debounce
- millis()
- timer