Thursday Week 5: Piezo Buzzers Theory and Practice of...

27
Thursday Week 5: Piezo Buzzers 1 Theory and Practice of Tangible User Interfaces Output 1: Making Sound Piezo buzzers week 05

Transcript of Thursday Week 5: Piezo Buzzers Theory and Practice of...

Page 1: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

1

Theory and Practice of Tangible User Interfaces

Output 1: Making SoundPiezo

buzzers

week 05

Page 2: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

2

Theory and Practice of Tangible User Interfaces

Piezo

Buzzer

Page 3: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

3

Theory and Practice of Tangible User Interfaces

Piezo

Buzzer

Page 4: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

4

Theory and Practice of Tangible User Interfaces

Piezo

Buzzer

Page 5: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

5

Theory and Practice of Tangible User Interfaces

period

PW

PW

period

Page 6: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

6

Theory and Practice of Tangible User Interfaces

Frequency (Hz) = Period (sec)

1

period

PW

* note frequency period PW (timeHigh)

* c 261 Hz 3830 1915 * d 294 Hz 3400 1700 * e 329 Hz 3038 1519 * f 349 Hz 2864 1432 * g 392 Hz 2550 1275 * a 440 Hz 2272 1136 * b 493 Hz 2028

1014* C

523 Hz 1912 956

PW

period(microseconds)

Page 7: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

7

Theory and Practice of Tangible User Interfaces

period

PW

PW

period

Page 8: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

8

Theory and Practice of Tangible User Interfaces

1. Connect your piezo

buzzer 2. Play sound

3. Make a Theremin 4. Solder wires to a motor (for next Thursday)

In Class Exercise

Page 9: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

9

Theory and Practice of Tangible User Interfaces

1. Connect your piezo

buzzer

Polarity matters!

black = ground

Page 10: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

10

Theory and Practice of Tangible User Interfaces

1. Connect your piezo

buzzer 2. Play sound

3. Make a Theremin 4. Solder wires to a motor (for next Thursday)

In Class Exercise

Page 11: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

11

Theory and Practice of Tangible User Interfaces

2. Play Soundsound_serial

Page 12: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

12

Theory and Practice of Tangible User Interfaces

c d e f g a b C

Page 13: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

13

Theory and Practice of Tangible User Interfaces

2. Play Soundplay_melody

If you want to make it quieter, add a resistor.

10k

Page 14: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

14

Theory and Practice of Tangible User Interfaces

c d e f g a b C

Page 15: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

15

Theory and Practice of Tangible User Interfaces

1. Connect your piezo

buzzer 2. Play sound

3. Make a Theremin 4. Solder wires to a motor

(for next Thursday)

In Class Exercise

Page 16: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

16

Theory and Practice of Tangible User Interfaces

Theremin (by Leon Theremin)

Measures the body’s electric field.

Page 17: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

17

Theory and Practice of Tangible User Interfaces

Your Theremin

theremin

Page 18: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

18

Theory and Practice of Tangible User Interfaces

1. Connect your piezo

buzzer 2. Play sound

3. Make a Theremin 4. Solder wires to a motor

(for next Thursday)

In Class Exercise

Page 19: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

19

Theory and Practice of Tangible User Interfaces

Page 20: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

20

Theory and Practice of Tangible User Interfaces

c d e f g a b C

Let’s try to make beautiful music!

Page 21: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

21

Theory and Practice of Tangible User Interfaces

HomeworkInput output coincidence exercise. Design an artifact where both

input and output occur at the same place. Use any combination of your input transducers and output transducers (pot, photocell, FSR, LEDs, piezo, screen). E.g., a ball that changes colors and/or plays different

sound/melody depending on the pressure being applied. A stick you can twist to color or sound differently…

These are just examples to spark your imagination. Be creative!

Page 22: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

22

Theory and Practice of Tangible User Interfaces

AnnouncementProgramming course by Dave and Ryan TODAY

Thursday, Sept 27, 2007 6:00PM in 110 South Hall

Page 23: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

23

Theory and Practice of Tangible User Interfaces

Thanks!

Page 24: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

24

Theory and Practice of Tangible User Interfaces

Show and Tell!

Page 25: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

25

Theory and Practice of Tangible User Interfaces

Map as an Indexical Sign?

Page 26: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

26

Theory and Practice of Tangible User Interfaces

Signs

in Context of Use

to represent “cold weather”

== Indexical

to represent “snow flake”

== Iconic

to represent “GO for ski”

== Symbolic

Page 27: Thursday Week 5: Piezo Buzzers Theory and Practice of ...courses.ischool.berkeley.edu/...piezo_buzzer.pdf · Thursday Week 5: Piezo Buzzers 6 Theory and Practice of Tangible User

Thursday Week 5: Piezo Buzzers

27

Theory and Practice of Tangible User Interfaces

Signs

in Context of Use

Indexical

Pointing to the location of things

IconicRepresenting directional relations and distances between landmarks

Symbolic

Conventional symbols that must be learned