Show and Tell!courses.ischool.berkeley.edu/i290-4/f08/slides/Thursday_Week6_Piezo_buzzer.pdfThursday...

Preview:

Citation preview

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

1

Show and Tell!

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

2

Output 1: Making SoundPiezo buzzers

week

06

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

3

Piezo Buzzer

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

4

Piezo Buzzer

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

5

Piezo Buzzer

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

6

period

PW

PW

period

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

7

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)

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

8

period

PW

PW

period

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

9

1. Connect your piezo buzzer 2. Play sound3. Make a Theremin 4. Solder wires to a motor (for next Thursday)

In Class Exercise

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

10

1. Connect your piezo buzzer

Polarity matters!

black = ground

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

11

1. Connect your piezo buzzer 2. Play sound3. Make a Theremin 4. Solder wires to a motor (for next Thursday)

In Class Exercise

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

12

2. Play Sound

sound_serial

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

13

c d e f g a b C

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

14

2. Play Sound

play_melody

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

10k

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

15

c d e f g a b C

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

16

1. Connect your piezo buzzer 2. Play sound3. Make a Theremin 4. Solder wires to a motor (for next Thursday)

In Class Exercise

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

17

Theremin (by Leon Theremin)

Measures the body’s electric field.

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

18

Your Theremin

theremin

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

19

1. Connect your piezo buzzer 2. Play sound3. Make a Theremin 4. Solder wires to a motor (for next Thursday)

In Class Exercise

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

20

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

21

c d e f g a b C

Let’s try to make beautiful music!

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

22

Homework

Input 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!

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

23

Announcement

Programming course by PatrickThursday, October 27, 2008 6:00PM in 110 South Hall

Thursday Week 6: Piezo Buzzers Theory and Practice of Tangible User Interfaces

24

Thanks!

Recommended