User login

Powered by Drupal, an open source content management system

Theory and Practice of Tangible User Interfaces

Sensing: Potentiometers

Submitted by admin on Thu, 09/18/2008 - 12:21

 

Start Date: Thursday, September 18, 2008

Due Date: Wednesday, September 24, 2008

Description: Digitize potentiometer input and use pulse width modulation of LEDs as output, variable resistors as sensors.

Click here to post your project

 

Instructions: Complete the following tasks:

Part I (in-class)

  1. Make the circuit with 3 LEDs (RGB). Make the RGB LED Fade from one of the codes from last week.
  2. Cut 3 wires (1 red, 1 yellow, and 1 black) and strip off about ¼” of insulation at both ends of each wire.
  3. Solder the 3 wires (red, yellow, and black) to the pot.
  4. Make one LED to dim or blink at different rate. There are two programs which allow you to use the pot to control the brightness of an LED or the blinking speed of the LED (see the code 1a and code 1b below). Make sure the pins in the code match the pins you used for the LEDs and the pot.

 

Part III (assignment)

Use multiple pots to control your LEDs

  • Option 1: One pot controls brightness, another pot controls blinking
  • Option 2: 3 Pots for 3 LEDs (each pot controls brightness of RGB Hue / colors

Extra point:

Come up with an interesting mapping between the rotational position pot and LED output

 

Useful Readings in Physical Computing:

  • Analog input: p. 102-104
  • Soldering: p. 41-42

 

 

Attachment Size
1a_SinglePotControlsBrightness.txt 581 bytes
1b_SinglePotControlsBlinking.txt 970 bytes
2a_Control3LEDsWith3Pots.txt 3.44 KB
2b_OnePotControlsBrightnessOnePotControlsBlinking.txt 1.22 KB
Lab3 - Sensors Analog Input and LEDs.pdf 4.31 MB