PHYSICAL COMPUTING

Spring 2012
Instructors: Ken Howell and Al Larsen

LABS & LESSONS:

WEEK 3: more circuits... chaser lights with the 4017

source: Wikipedia

image source: Wikipedia

STOP.
The chips we have on hand are labelled 74HC4017.
What is the recommended range for supply voltage?


4017 is a decade counter... it has ten output pins which it brings HIGH sequentially at the rate of the clock input

prepare the breadboard

pin 16 = VCC (connect to +)
pin 15 = RESET (connect to ground)
pin 14 = CLOCK (connect to ?)
pin 13 = LE (latch enable) (connect to ground)
pin 12 = CO (carry out) (connect to ground)
pin 8 = GROUND (connect to ground)

make a circuit that counts to ten; hook up at least four LEDs so that they light in sequence; add a way to adjust the speed

make a circuit that only counts to 4 before starting over

CHALLENGE: can you make a circuit with controls to determine how many LEDs are in the sequnce?

CHALLENGE: can you make a circuit with three LEDs that light up in this sequence:

STEP 1: LED 1 = ON, LED 2 = OFF, LED 3 = OFF
STEP 1: LED 1 = OFF, LED 2 = ON, LED 3 = OFF
STEP 1: LED 1 = OFF, LED 2 = ON, LED 3 = ON

source: chainreactioncycles.com

BONUS CHALLENGE:

Use the 4040 divider chip to create a circuit with two LEDs turning on and off, one at half the rate of the other.

(return 4040 chips to Al, not to the lab supply.)

pin 16 is +, pin 10 is CLOCK, pin 8 IS GROUND, pin 11 is RESET (connect GROUND)

source: Collins

WEEK 3: PART 2 - intro to micro-controllers

LOOKING AT THE ARDUINO BOARD
THE DEVELOPMENT ENVIRONMENT
EXERCISE 1: BLINKING LED
EXERCISE 2: BLINKING AN LED IN A RHYTHMIC PATTERN
Q: Why bother with a circuit like we built with the 4017?
EXERCISE 3: INPUT
CONNECT A SWITCH, HAVE IT TURN ON OR OFF THE BLINKING LED
CONNECT A POTENTIOMETER, HAVE IT CHANGE THE RATE AT WHICH THE LED BLINKS

Q: WHAT DOES THE ARDUINO "KNOW" ABOUT THE STATE OF THE POTENTIOMETER?

CHALLENGE: HAVE THE POTENTIOMETER CHANGE THE PATTERN OF THE BLINKING LED


Q: HOW IS THE WAY WE ARE USING THE SWITCH AND POTENTIOMETER DIFFERENT THAN IN OUR FIRST CIRCUITS?

ARDUINO TO SCREEN

ARDUINO + FLASH DEMO FILES (zip)
ARDUINO + PROCESSING DEMO FILES