User login

Powered by Drupal, an open source content management system

Theory and Practice of Tangible User Interfaces

Digital I/O with Arduino Boards + Diffuser

Submitted by kimiko on Wed, 09/10/2008 - 23:59

Lab 2: Digital I/O Lab Assignment 

Start Date: Thursday, Sept 11, 2008,  Due Date: Thursday, Sept 17, 2008 

  1. Design a good diffuser for your RGB LEDs (e.g. ping pong ball, Styrofoam, etc). 
  2. Change the code so that you can control the RGB values with multiple key presses. For example, pressing ‘r’ 5 times will set the brightness to 50% (or brightness = 127) and pressing ‘r’ 10 times will set it to 100% (or brightness = 255). Hint: you can take a look at serial_led_rgb_enhanced.txt
  3. (Optional) Come up with other ways of controlling the colors of the LEDs using the keyboard. Here’s your chance to be creative. You can show off to your friends next week. Example: Read colors and set the appropriate RGB values like “orange” might set r=70%, g=50%, and b=0%.

Click here to post your assignment.

You can check out the codes and diffusers created by the tangible07 students at: http://courses.ischool.berkeley.edu/i290-13/f07/assignments/39.html

 

Readings For Thursday September 11, 2008

Physical Computing (Chapter 3 and p.228) by Igoe & O'Sullivan (2004) 

 

Attachments

DimmingLEDs.txt
serial_led_rgb.txt
serial_led_rgb_enhanced.txt
Lab2_Digital_Input_and_Output_with_Arduino_0.pdf