Arduino Programming 1 Flashcards
A program you write to run on an Arduino Board
Sketch
An input or output connected to something e.g. output to an LED, input for a knob.
pin
Value is either HIGH or LOW.
(a.k.a. on/off, one/zero)
e.g. switch state.
digital
Value ranges, usually from 0-255.
e.g. LED brightness, motor speed, etc.
analog
Is a signal / information
going into the board.
Inputs
Is any signal exiting the
board
Output
Almost all systems that use physical computing will have some form of output.
True/False
True
5 Examples of Inputs:
Buttons Switches,
Light Sensors,
Flex Sensors,
Humidity Sensors,
Temperature Sensors
6 Examples of Outputs:
LEDs,
DC motor,
servo motor,
piezo buzzer,
relay,
RGB LED
Are digital devices – ON or OFF.
Also called – discrete
Microcontrollers
Are anything that can be a full range of values
Analog signals
Sets pin to either INPUT or OUTPUT
pinMode(pin, mode)
Reads HIGH or LOW from a pin
digitalRead(pin)
Writes HIGH or LOW to a pin
digitalWrite(pin, value)
Pauses for a few milliseconds
delay(ms)