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

Electronics_Projects_For_Dummies

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

150 Part II: Sounding Off!

 

IC3 Pin 3 to R8 TB

IC2 Pin 14 to DB9 TB

IC3 Pin 5 to open region

 

 

IC1 Pin 15 to IC2 Pin 11

Open region to speaker TB

 

 

 

 

IC1 Pin 10 to IC2 Pin 12

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 7-8:

Hook up the ICs, terminal blocks (TB), and discrete components.

Open region to R8 TB

IC1 Pin 7 to S3 TB

IC2 Pin 13 to DB9 TB

IC1 Pin 4 to S2 TB

IC1 Pin 18 to open region

IC1 Pin 2 to S1 TB

14.0.01 microfarad capacitor C6 from R6 to ground

15.0.01 microfarad capacitor C7 from R7 to ground

16.10 microfarad capacitor C9 from IC3 Pin 7 to ground

17.0.047 microfarad capacitor C10 from IC3 Pin 5 to open region

18.10 ohm resistor R9 from C10 to ground

19.100 microfarad capacitor C11 from wire to IC3 Pin5 to wire to speaker terminal block

We discuss in Chapter 4 how you can determine how short to clip the leads of many of these components to make them fit neatly on the breadboard.

Chapter 7: Murmuring Merlin 151

 

 

 

 

 

 

4

19

16

18

12

11

10

5

Figure 7-9:

Insert resistors and capacitors on the breadboard.

17

13

15

14

6

8

7

9

1

3

2

Make sure you wear your safety glasses when clipping leads!

6. Solder 12" wires to the solder cups for Pins 3, 5, and 8 of the DB9 connector.

The location of these pins is shown in Figure 7-10. Although the manufacturer prints the pin numbers next to the solder cups, you might need a magnifying glass to read the pin numbers on the connector.

Be sure to heed all the safety precautions about soldering that we list in Chapter 2. For example, don’t leave your soldering iron on and unattended. And just in case a bit of solder has an air pocket and pops, wear your safety glasses!

152 Part II: Sounding Off!

Pin 3

Pin 5

Figure 7-10:

Solder cups on back of the DB9 connector.

Pin 8

7.Slip a 1" length of heat shrink tubing along each wire until it covers the soldered joints. Then heat the tubing with a hair dryer to secure it and protect the joints.

Making the box puppet-friendly

It’s time to prepare the box so that you can insert the guts of the project into it and string wires to the puppet. This involves some drilling, some cutting, and some assembling.

Follow these steps to get the project box wired up:

1.Drill holes in the box for the phono jacks, potentiometer, speaker, DB9 connecter, and on/off switch in locations as shown in upcoming Figure 7-11.

Chapter 7: Murmuring Merlin 153

We used a 12" drill bit for the phono jacks and a 516" bit for the potentiometer. To secure the speaker, we drilled four holes using a 664" bit. You might need to use different bit sizes, depending on the parts you use.

Wear your safety glasses whenever you drill holes or cut wires. Also, the drill bit can bind as it goes through the plastic, causing the box to turn with the drill if it’s not properly secured. Don’t test Murphy’s Law: Use a vise or other method to secure the box while you’re drilling.

2.Cut openings for the DB9 connector, on/off switch, and the speaker.

We drilled a pilot hole and then used a coping saw to cut the openings. The openings don’t have to be the exact shape of the part. For the DB9 connector and the switch, make the openings big enough for the body of the part to fit through. The openings can even be a little oversized as long as enough plastic is left for you to secure the part’s flange. For the speaker, cut an opening about 38" inside the outline of the speaker. All you need is an opening big enough to let the sound travel.

3.Insert the phono jacks, potentiometer, speaker, DB9 connector, and on/off switch as shown in Figure 7-11.

Potentiometer Phono jacks

DB9 connector

Figure 7-11:

Mount components on the box.

Speaker

On/off switch

154 Part II: Sounding Off!

4.Secure the phono jacks and potentiometer with the nuts provided with each part.

The outside of the box is shown in Figure 7-12.

You can secure the speaker with four 12" 6-32 flathead screws and four 6-32 nuts. Use glue on the flanges of the DB9 connector and on the on/off switch to attach them to the box.

Figure 7-12:

A view from the outside.

5.Solder the black wire from the battery pack to one lug of the on/off switch and solder an 8" black wire to the other lug of the on/off switch, as shown in Figure 7-13.

6.Solder a 6" black wire to each of the two solder lugs on the speaker, as shown in Figure 7-13.

7.Solder an 8" wire to each of the three potentiometer lugs, as shown Figure 7-14.

8.Connect 8" wires to each of the audio jacks and solder them, as shown in Figure 7-14.

9.Use Velcro to attach the breadboard and the battery pack to the box.

Chapter 7: Murmuring Merlin 155

Black wire from battery pack to on/off switch

Black wire to on/off switch

Figure 7-13:

Wires soldered to the on/off switch and speaker.

Wires to speaker

10.Cut the wires from the phono jacks, potentiometer, on/off switch, battery pack, and DB9 connector to a length that allows you to arrange wires neatly in the enclosure.

11.Strip insulation from the ends of cut the wires, insert them in the terminal blocks, and secure with wire clips, as shown in Figure 7-15.

The components shown in this figure, indicated by numbered callout, include

1.Wires from left phono jack

2.Wires from center phono jack

3.Wires from right phono jack

4.Wire from left potentiometer lug

5.Wire from center potentiometer lug

156 Part II: Sounding Off!

Wire soldered to left potentiometer lug

Wire soldered to center potentiometer lug

Wire soldered to right potentiometer lug

Figure 7-14:

Solder wires to connect external components to the breadboard.

Wires soldered to audio jacks

6.Wire from right potentiometer lug

7.Wire from Pin 3 of DB9 connector

8.Wire from Pin 5 of DB9 connector

9.Wire from Pin 8 of DB9 connector

10.Red wire from battery pack

11.Black wire from on/off switch

12.Speaker wires

12.Place the on/off switch in the off position, insert batteries in the battery pack, and secure the lid on the enclosure with the screws provided.

Chapter 7: Murmuring Merlin 157

 

 

 

 

8

 

 

10

 

 

4

 

11

12

5

6

9

7

Figure 7-15:

Insert wires into terminal blocks.

1 2 3

13.Use your multimeter to find two contact pins on the tactile switches that are normally open (infinite resistance between the contact pins) and closed (nearly zero resistance between the two pins) when the switch is pressed.

14.Solder a 12" wire to each of the two pins on each tactile switch, as shown in Figure 7-16.

15.Cut the wires from the tactile switches to the length you need to reach the jacks on the electronics enclosure after both the switches and the

box are in place.

Leave about three extra inches of length to allow for some shifting as you stuff the box in the puppet.

16.Unscrew the top from each phono plug, slip the top over the wire, and solder each wire from the tactile switches to the center lug of a plug, as shown in Figure 7-17.

158 Part II: Sounding Off!

Figure 7-16:

Solder wires to tactile switches.

Figure 7-17:

Solder wires to phono plugs.

Chapter 7: Murmuring Merlin 159

17.Screw the covers of the phono plugs back in place and feed each tactile switch to the proper location.

We placed one switch in each hand and a switch under the puppet’s nose.

18.Feed the phono jacks behind the puppet, as shown in Figure 7-18.

Figure 7-18:

Place tactile switches in the puppet.

You might want to secure the switches in place in some fashion. We used a strip of adhesive-backed Velcro (somewhat wider than the switch) for the switch behind the nose. We stuck this to the back of the switch, put the switch in place, and pressed the adhesive back to the fabric, right under the puppet’s nose. Another idea is to use a few stitches of thread to stop the switch from moving.

Programming sounds

Even with your picture-perfect puppet and circuit, Merlin won’t murmur a thing without sounds programmed into the sound synthesizer chip. For this part, you have to study a bit on the software provided by the manufacturer. SpeakJet doesn’t provide a lot of documentation for using the software, but we felt that the chip was the best bet for our puppet because it offers so many cool options for creating sounds.

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