Professional Documents
Culture Documents
3 Arduino Introduction m3 Hardware Slides
3 Arduino Introduction m3 Hardware Slides
3 Arduino Introduction m3 Hardware Slides
Jon Flanders
@jonflanders
What you will learn
USB
Analog pin
area
Power
power pin
area
Powering the board
pin purpose
provide information about
IOREF
power to shields
power to this pin will reset the
board (typical used by shields
RESET
that block board’s reset IOREF
button) RESET
3.3v provide 3.3v of power output 3.3V
5V
5v provides 5v of power output GND
GND
GND Ground pin
Vin
GND Ground pin
pinMode - configures one of the digital pin for either input or output
pinMode(pin,mode)
Mode is one of three constants
INPUT - pin accepts input
OUTPUT - pin output
INPUT_PULLUP - pin accepts input, but the result is inverted from INPUT
digitalWrite will change the voltage of a pin set to OUTPUT mode
digitalRead reads the voltage of a pin set to INPUT or INPUT_PULLUP
HIGH and LOW constants are used to write or compare read values
HIGH == 5v
LOW == 0V
Analog pins
Arduino boards have two main sets of functionality: power input and
power output
Digital power output: 0V and 5V
Analog power output: 0V to 5V based on scale of 0 to 255
Analog input based on scale of 0 to 1024
Breadboards are an almost essential tool for prototyping with Arduino