IDMT
Arduino: Getting Started
Prof. Nick Bryan-Kinns
Interactive Digital Multimedia Techniques
Interactive Digital Multimedia Techniques
Interactive Digital Multimedia Techniques
Interactive
Human interactionDigital
/ Multimedia
Graphics Techniques
Audio & Video
Interfacing with the physical world
HumanInteraction/
Human interaction /
Human interaction / world Graphics
Graphics AudioAudio
& Video
Interfacing
Interacting with the physical Graphics Audio & Video
Interfacingwith
withthe
thephysical
physicalworld
world Max/MSP & Jitter
Max/MSP & Jitter
Processing Max/MSP & Jitter
PureData
Processing
Processing
Bela OpenFrameworks
PureData
PureData
Bela OpenFrameworks SuperCollider
Bela OpenFrameworks
SuperCollider
SuperCollider
Arduino
Many Digital Artists and Interaction Designers use it: “an open-
source electronics platform based on easy-to-use hardware
and software”
Good for physical input and output in creative projects
Can run as stand-alone or connected to a computer
Low power, low cost
As well as the hardware there is a flexible software sketchbook
similar to the Processing IDE
https://www.arduino.cc
Learning objectives
Download Arduino
Connect Arduino to your computer
Install and run programs on Arduino
Modify programs on Arduino
Learn to use Arduino IDE
15 projects
We don’t go through
these in class
Good to try to practice
your skills
Good background on
electronics p. 22-25
What’s in your kit
Arduino Breadboard USB cable
Battery Snap
Light sensors Diodes MOSFETs
LEDs Wires
Temperature Transistors
sensor
Motor
Resistors Buttons Potentiometers LCD Display
Motor
Driver
Capacitors Piezo Speaker Servo Motor
Arduino
Digital inputs/ outputs
USB
Power & Analog inputs
ground
Download the Arduino IDE
https://www.arduino.cc/en/Main/Software
Arduino IDE
First project
1. Plug in Arduino to computer (USB)
2. Launch Arduino software
3. Open Blink example
First project
4. Select Arduino Uno board
(not “Leonardo” unless your board says so)
5. Select correct serial port: /dev/cu.usbmodem...
First project
6. Upload sketch onto your Arduino
Watch here!
This runs once,
at the beginning:
This runs in a loop,
forever:
This is a function call
What goes inside the ()
are the arguments
Lines starting with //
are comments
Don’t forget the
semicolons!!!
pinMode() sets the pin
as an output, rather
than an input
digitalWrite() sets the
value of the pin (HIGH
= 5V, LOW = 0V)
delay(), well, delays...
How do you make the
LED blink faster?
Learning objectives
Download Arduino
Connect Arduino to your computer
Install and run programs on Arduino
Modify programs on Arduino
Learn to use Arduino IDE