Paja

Icon

Rapid prototyping for music, art and design work

Intensive workshop in Designing Interactions course 2011 Spring at Media Lab Helsinki

Intensive workshop in Designing interactions course

Date: February 7 – 11, 2011

Location: Media lab Helsinki in Helsinki, Finland

Introduction to electronics: PDF

Setting up Arduino environment:

  1. Download Arduino Software from Arduino Download page
  2. Install USB driver. The install image is in the downloaded Arduino folder
  3. Select following setting when you run Arduino software first time.
    1. Tools > Board > Arduino Duemilanove or Nano w/ ATmega328
    2. Mac: Serial Port > /dev/cu.usbserial-xxxxxxxx
  4. Install 3rd party libraries (How to install libraries)
  5. Run example code
    1. File > Examples > Digital > BlinkWithoutDelay
    2. File > Up load to I/O Board
    3. LED by digital pin 13 will start blinking. If not, you will received some error in red text.

Tools:

  1. Arduino board
  2. USB Type A-B
  3. Breadboard
  4. Jumper wires
  5. Multimeter

Basics

  1. Exercise: Hello world – Arduino code
  2. Exercise: Flashing LED – Arduino code
  3. Exercise: Sending data to your PC (Serial.print, println) – Arduino code
  4. Exercise: Understanding ASCII (American Standard Code for Information Interchange) – Arduino code
  5. Demo: Type of Numbers (Binary, Hexadecimal, Decimal, Signed Decimal) – Arduino code

Architecture

  1. Demo: Variables type definitions – Arduino code
  2. Exercise: Arrays/Strings – Arduino code
  3. Exercise: Operators (+, -, *, /, %) – Arduino code

Controls

  1. Exercise: Functions – Arduino code
  2. Exercise: Looping structure (For statement) – Arduino code
  3. Exercise: Branching (If statement) – Arduino code
  4. Demo: Branching (Switch statement) – Arduino code
  5. Exercise: Data controls (ramdom) – Arduino code

IO Commands:

  1. Digital IO (digitalWrite)
    1. Exercise: Flashing LED – Schematic, Arduino code
  2. Digital IO (digitalRead)
    1. Exercise: Tilt switch – Schematic, Arduino code
  3. Digital IO (pulseIn)
    1. Exercise: Memsic 2125 Accelerometer: Measuring tilt and motion – Schematic, Arduino code
    2. Exercise: Ping))) Ultrasonic Sensor: Measuring distance – Schematic, Arduino code
  4. Analog IO (analogWrite using PWM pins)
    1. Exercise: Dimming LED – Schematic, Arduino code
  5. Analog IO (analogRead)
    1. Exercise: Photoresistor: Measuring ambient light – Schematic, Arduino code
    2. Exercise: Flexiforce Sensor Demo Kit: Measuring pressure – Schematic, Arduino code
    3. Exercise: Piezo speaker: Detecting vibrations – Schematic, Arduino code
  6. Extend capability using libraries (#include)
    1. Exercise: Servo motor Schematic, Arduino code
    2. Excercise: Motor shield to control Stepper motor – Schematic, Arduino code

Communicating with PC over Bluetooth

  1. Messenger library is used in this exercise. It provides a simple protocol to send and receive values to PC over serial communication.
  2. BlueSMiRF Gold Bluetooth module Instructions to configure the module
  3. Install Messenger library – Instructions
  4. Excercise: Controlling LEDs and measuring a tilt switch and proximity: SchematicArduino code
  5. Pair the BlueSMiRF Gold bluetooth module
    1. Pair the Bluetooth module with your Mac
    2. Select status bar
    3. Select “Bluetooth”
    4. Select “Devices” and select “New”
    5. The dialog should show the name started by “FireFly-****” (*shows last 4 digit of the physical address)
    6. Select the BlueSMiRF Gold
    7. Type “1234” in the Passcode
    8. Select “Pair”
    9. “FireFly-****” appears in the list when successful
    1. Communicate to Arduino using Zterm (terminal emulation program for Mac)
      1. Open Zterm
      2. Settings > Modem preferences…
      3. Choose FireFly-****
      4. zterm_modem
      5. Edit > Keyboard Buffer
      6. Type “r a d 7” and press return in the keyboard buffer window. Local window will show value received from the proximity sensor.
      7. Type “w a 9 <number>”. <number> will have integer betwen 0 and 255. Pressing return will light up LED.

Communicating with desktop applications

Other sensors and actuators

You can browse other sensors and actuators from various online shops. Especially the following online and local shops have components for Arduino.

Sparkfun (USA), Parallax (USA), Paeae (Finland), Robomaa (Finland) and Partco (Pohjois-Haaga, Helsinki)

There are also demos using the components available in Media Lab Helsinki. 
http://mlab.taik.fi/paja/?cat=39

Wednesday

Printed circuit board (PCB)

See the other post for details.

Thursday

Individual work

Friday

Individual work and presentations

Facebook Twitter Email

Category: Course materials

Tagged:

Comments are closed.

Social links powered by Ecreative Internet Marketing