Jan 24, 2011
Arduino Programming A to Z
Designing interactions course
Date: January 24, 2010
Location: Media lab Helsinki in Helsinki, Finland
Paja blog account creation
Tools:
- Arduino board (microcontroller)
- USB Type A-B
Setting up Arduino environment:
- Download Arduino Software from Arduino Download page
- Install USB driver. The install image is in the downloaded Arduino folder
- Select following setting when you run Arduino software first time.
- Tools > Board > Arduino Duemilanove or Nano w/ ATmega328
- Mac: Serial Port > /dev/cu.usbserial-xxxxxxxx
- Install 3rd party libraries (How to install libraries)
- Run example code
- File > Examples > Digital > BlinkWithoutDelay
- File > Up load to I/O Board
- LED by digital pin 13 will start blinking. If not, you will received some error in red text.
Basics:
- Exercise: Hello world – Arduino code
- Exercise: Flashing LED – Arduino code
- Exercise: Sending data to your PC (Serial.print, println) – Arduino code
- Exercise: Understanding ASCII (American Standard Code for Information Interchange) – Arduino code
- Demo: Type of Numbers (Binary, Hexadecimal, Decimal, Signed Decimal) – Arduino code
Architecture:
- Demo: Variables type definitions – Arduino code
- Exercise: Arrays/Strings – Arduino code
- Exercise: Operators (+, -, *, /, %) – Arduino code
Controls:
- Exercise: Functions – Arduino code
- Exercise: Looping structure (For statement) – Arduino code
- Exercise: Branching (If statement) – Arduino code
- Demo: Branching (Switch statement) – Arduino code
- Exercise: Data controls (ramdom) – Arduino code