Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Electronics_Projects_For_Dummies

.pdf
Скачиваний:
40
Добавлен:
10.06.2015
Размер:
17.71 Mб
Скачать

350 Part IV: Good Vibrations

3.Insert wires to connect each component and terminal to the +V bus and insert a wire between the two +V buses to connect them, as shown in Figure 14-6.

In this figure, four wires have been added:

Three shorter wires connect components to +V bus (marked with a + on this breadboard).

The long wire on the left connects the two +V buses.

Figure 14-6:

Connect components to the +V bus.

4.Insert wires to connect the voice chip IC to the terminal blocks and to the open regions of the breadboard where discrete components will be inserted, as shown in Figure 14-7.

Chapter 14: Couch Pet-ato 351

open region of breadboard to terminal block for microphone

IC Pin 17 to open region of breadboard

IC pin 27 to terminal block for record switch

IC Pin 21 to open region of breadboard

Figure 14-7:

Connect the IC to the terminal blocks and available locations for discrete components.

IC Pin 20 to open region of breadboard

IC Pin 14 to terminal block for speaker

IC Pin 15 to terminal block for speaker

5.Insert discrete components and the tilt sensor in the breadboard, as shown in Figure 14-8.

352 Part IV: Good Vibrations

Resistor R3 between capacitor C3 and +V

Resistor R2 between IC Pin 19 and ground

Capacitor C2 between IC Pin 19 and ground

Tilt sensor between IC Pin 24 and ground

Figure 14-8:

Insert discrete components on the breadboard.

Capacitor C3 between wire connected to microphone terminal block and wire connected to IC Pin 17

Capacitor C1 and resistor R1 in series between wires connected to IC Pin 20 and IC Pin 21

6.Drill holes in the Couch Pet-ato box for inserting the switches, microphone, and speaker.

Figure 14-9 shows holes drilled in the front of the box for the switches and microphone and the side of the box for the speaker, but the placement is really up to you.

Whenever you drill holes or do any procedure where bits can fly, such as clipping wires, wear safety glasses to protect your eyes.

Chapter 14: Couch Pet-ato 353

Figure 14-9:

Drill holes for the switches, microphone, and speaker.

7.Attach the speaker, switches, and microphone to the box, as shown in Figure 14-10.

We used 58" 6-32 screws and nuts to attach the speaker to the box. By creating a very tight hole for the microphone, we could press-fit it into the hole. (Press-fitting means that you don’t need glue or another method to keep something in place.) The record switch was also press-fitted into a hole although we did use just a drop of glue to secure it. The on/off switch was attached with the supplied nut.

354 Part IV: Good Vibrations

On/Off switch

Microphone

Figure 14-10:

Attach the speaker, switches, and microphone to the box.

Speaker

Record switch

8.Connect 6" wires (any color will work just fine) to the speaker and the record switch and solder them, as shown in Figure 14-11.

Chapter 14: Couch Pet-ato 355

 

 

 

 

Black wire to microphone

Wires to speaker

Wires to on/off switch

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 14-11:

Couch Pet-ato box with wires soldered to switches, microphone, and the speaker.

Wires to record switch

Red wire to microphone

9.Connect the black wire from the battery pack snap and another 6" black wire to the on/off switch and solder them together, as shown in Figure 14-11.

10.Connect a 12" red wire and a 12" black wire to the microphone and solder them, as shown in Figure 14-11.

Figure 14-12 shows which lead of the microphone you should solder the red and black wires to.

11.After the wires cool, wrap the solder joints with electrical tape to prevent them from touching each other.

356 Part IV: Good Vibrations

Lead that red wire is attached to

Lead that black wire is attached to

Figure 14-12:

Identifying the microphone leads to which you will solder wires.

Don’t get sloppy now! Heed all the safety precautions about soldering that we provide in Chapter 2. For example, don’t leave your soldering iron on if you’re not around. And for heaven sakes, don’t drop it in your lap when it’s hot!

12.Attach Velcro to the battery pack, breadboard, and box. Attach the battery pack and breadboard to the box, as shown in Figure 14-13.

Note that we used three wire ties in the box to secure the wires and keep them out of the way.

Chapter 14: Couch Pet-ato 357

Figure 14-13:

Couch Pet-ato with battery pack, breadboard, and wire ties attached.

13.Attach the wires from the battery pack snap connector, on/off switch, record switch, microphone, and speaker to the terminal blocks, as shown in Figure 14-14.

When attaching the wires to the terminal blocks, cut the wires to the length you need and strip the ends.

358 Part IV: Good Vibrations

 

 

 

 

Black wire from microphone

Wires from record switch

Red wire from microphone

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 14-14:

Attach wires to terminal blocks.

Red wire from battery pack

Wires from speaker

Wire from on/off switch

 

14.Close and latch the lid.

That’s it! The completed box is shown in Figure 14-15.

Chapter 14: Couch Pet-ato 359

Figure 14-15:

The Couch Pet-ato, all put together.

Trying It Out

Okay, it’s time for Fluffy or Rover to meet his or her newest adversary in the fight over couch real estate.

Follow these steps to operate your Couch Pet-ato:

1.Slip in the batteries.

2.Flip on the on/off switch.

3.Press the recording button and hold it down while you speak your message or create a pet-annoying noise into the microphone.

4.Place the Couch Pet-ato on your furniture.

5.Drop your animal on the furniture (gently) and watch the fur fly!

Be sure that the Couch Pet-ato box is securely closed and latched. You don’t want Fluffy to get into the works and chew up the wires or a resistor and choke.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]