Doctor Who Cuttings Archive

Build a Voice Changer

From The Doctor Who Cuttings Archive
Revision as of 16:36, 20 March 2020 by John Lavalie (talk | contribs) (Created page with "{{article | publication = Nuts & Volts | file = 2008-05 Nuts and Volts.pdf | px = | height = | width = | date = 2008-05-01 | display date = May 2008 | author = Jim Stewart...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


[edit]

One day back in the 1970s, I tuned to a public television station to see an oddly dressed man fighting off a swarm of evil looking robots. It was Tom Baker as Dr. Who saving the universe from the Daleks. I've been a fan ever since. For the uninitiated, Dr. Who is a sci-fi show produced by the BBC. Daleks (shown here) are half-robot aliens that roll around saying things like "You will be exterminated!"

Recently, I came across a talking Dalek toy for sale on-line. Of course, I had to get one. Daleks have a bizarre voice, and I thought it would be fun to build a voice-changer circuit to make me sound like one (see the sidebar on voice changer circuits).

With a little research on the Internet (e.g., look up "Daleks" on Wikipedia), I found out that the Dalek voice is produced by mixing an actor's voice with a fixed frequency sine wave in a ring modulator (also called a balanced modulator). I found different values for the frequency of the sine wave in different sources; the range was 30 Hz to 100 Hz. Using an oscilloscope to actually look at the voice signal from my talking Dalek toy, I saw the typical double sideband suppressed carrier (DSB-SC) wave form produced by a balanced modulator. Figure 1 shows a simplified version. The outer envelope would be the low frequency sine wave while the inner signal would be the voice.

DSB-SC

Balanced modulators are used in RF work to generate and detect signals. (When used in a detector, it's usually called a mixer.) DSB-SC is basically an AM signal, but without the carrier. Its output contains sum and difference frequencies only, which it achieves by multiplying the audio with a fixed frequency carrier.

A balanced modulator can be built in several ways. You can use an IC such as the old LM1496 which was designed for this purpose. Or, you could use a multiplier IC, such as the AD633. The 1496 requires +12V, -8V, a fist full of resistors and capacitors, and a carefully adjusted trimpot. The 633 is relatively expensive ($8), but luckily, there are other ways to do it.

Figure 2 shows a classic four-diode ring modulator. While at first glance it looks like a bridge rectifier, closer scrutiny shows the diodes are not arranged to rectify.

■FIGURE 2

■FIGURE 1

■FIGURE 3

Rather, the diodes are used as switches. Remember that the dynamic resistance (rd) of a diode is approximated by rd = 26 mV/Id.

With no current (Id = 0), rd is very high and the diode switch is open. If Id becomes, say, 10 mA then rd becomes 2.6 Q and the diode switch is closed. The carrier input supplies the diode current.

Referring to Figure 2, if point X is positive with respect to point Y, diodes D1 and D2 conduct and connect points A to A' and B to B', thus allowing the input to flow to the output. But if point Y is positive with respect to point X, diodes D3 and D4 conduct and connect points A to B' and B to A'. Now the input flows to the output but with a 180° phase shift. In effect, the input is multiplied by -1 and is inverted. The audio is multiplied by the carrier input. Note that the carrier current is a bipolar square wave (switches between +I and -I); you want those diodes to open and close quickly and cleanly.

Assuming all the diodes are closely matched and assuming the transformer center-taps are exactly in the middle, then the current from the carrier input will flow equally both ways from the middle of the transformers. That means there is no net flux in the transformers from the carrier, so it doesn't couple to the output; the carrier is suppressed. (In real life, some carrier will leak through; but with good design, you could get 60 dB of carrier suppression.)

I didn't want to just build a circuit with three audio transformers. What else is there? Well, another diode switch type of circuit is a balanced bridge modulatoras shown in Figure 3. Resistors RS and RL form a voltage divider with RL » RS. With the diode switches open, the output is Vout = [ RL / (RL + RS) ] x Vin - Vin. With the diode switches closed, a very low resistance (RD) is in parallel with RL. Since RD « RL, we have Vout - (RD / RS) x Vin - zero. This circuit effectively multiplies the voice signal by a unipolar square wave (switches between +I and 0): half the time Vout - Vin; and half the time Vout - 0.

Figure 3 is easier to build than Figure 2, but it still requires a transformer. However, if multiplying by a square wave will do the job, why not use an analog switch IC? Such ICs are inexpensive, and no transformers are required.

The Circuit

Figure 4 is a schematic of the

voice changer. A DC supply is connected to tie-block TB1. Diode D1 protects against reverse polarity. (I've learned the hard way that such protection is a good idea.) D2 is a green LED power indicator. Capacitor C11 decouples audio from the power rail. IC3 is a 78L05 to supply a regulated +5 volts to an electret microphone which plugs into 3.5 mm stereo jack J1. R3 connects the five volt bias to the microphone's built-in amplifier (see symbol in Figure 5) and also sets its gain.

IC4 needs both positive and negative supply rails. Since we are using a single voltage to power the board, we need to create a separate audio ground at half the supply voltage. That's done with 1% resistors R4 and R5. With respect to audio ground, actual ground looks like a negative voltage. Capacitor C6 decouples the audio ground by creating a low impedance AC path to actual ground.

The power supply you use for this project should be

■FIGURE 4

■FIGURE 6

well regulated. Any hum on the DC from the AC mains will be amplified. C11 is there to remove audio; it's not big enough to remove AC mains hum. To use an unregulated wall-mount supply, you could use the circuit described in my upcoming article on switching regulators.

The voice signal from the microphone is coupled via C5 to buffer op-amp IC4. Since an electret mic produces a relatively large signal, IC4 is configured for unity gain. To use a crystal type mic, IC4 would need to be reconfigured to supply some gain. R6 references the input of IC4 to the audio ground. Note that C5 allows the mic to use real ground while IC4 uses audio ground. The output of IC4 goes to IC5, a CD4066 analog switch. I used a 741 for IC4 because they're inexpensive, easily obtainable, and I had a bunch. You can use a better op-amp (e.g., LF411) if you have them.

IC1 is a CMOS 555 timer chip running as an astable. IC2 is a CD4027 dual JK flip-flop which divides the 555 output by four to produce a square wave. You can set the frequency that sounds best to you with C1. I used 0.022 μF to get a carrier frequency of about 50 Hz.

The Q output of IC2 is the control signal for the analog switch, so it's the "carrier" that modulates the audio by turning the switch on and off. The modulated audio from IC5 goes to power-amp IC6 via potentiometer R7,

the volume control. Note that R7 is

also referenced to audio ground. C7 is required since the input of IC6, an LM380, is referenced to actual ground. The modulated audio output is capacitively connected to a loud speaker via terminal block TB2, and easily drives an 8W speaker.

JP (see Figure 6) is a removable jumper on the printed circuit board (PCB) that allows the supply voltage to be applied directly to the control input of IC5 (pin 12). That has the effect of overriding the modulation from IC2 and forcing the analog switch to remain closed. Resistor R9 is required to isolate the output of IC2 when the jumper is in. With the jumper out, R9 has no effect since IC2 and IC5 are CMOS chips. With the jumper in place, the voice changing effect is disabled and the board performs as a plain audio amplifier. The jumper mounts on a two-pin header soldered to the board.

Construction

The PCB (DLKV) is double sided and measures 2.5 by 3.2 inches. The layout of the component side is shown in Figure 7. Four 1/4" corner holes provide a way to mount the board. Power is run separately to the input and power-amp sections to avoid feedback through the power rail. Likewise, each section has a separate connection to ground.

■FIGURE 5

■FIGURE 7

Test Points

I've learned over the years that it's very useful to design test points into PCBs. This board has two test points. TP1 allows you to connect a scope and look at the signal coming from a microphone. TP2 allows you to look at the signal going into the power-amp. It's also helpful to provide a convenient bus to connect the ground leads of multimeters and

oscilloscopes. There is a strip of copper near the edge of the board that connects to ground. There is a hole at each end of the strip. Take a bare piece of solid wire, make a 90° bend in both ends, and solder it to the holes so that the wire is spaced about 1/4 inch above the board. There's your ground bus.

Using IC Sockets

When assembling a newly designed PCB, I use sockets for the ICs in case I blow a chip due to a layout error. Once I know the board design is okay, I solder the chips directly to the board. Sometimes I'll keep a chip such as an op-amp in a socket so that I can swap in various types to see if there is any difference in performance.

Mounting in an Enclosure

Microphone jack J1, volume control R7, and jumper JP are all board-mounted. To mount the project in an enclosure, they must be replaced with panel-mounted types and connected back to the PCB with short lengths of hook-up wire. You would replace JP with a switch.

Testing

Before applying power, clean the board with rubbing alcohol and an old tooth brush and give it a careful visual inspection. Look for the usual suspects:

Bad solder joints

Broken copper traces

Shorted copper traces (especially IC pads)

Reversed polarity on capacitors

Wrong value capacitor

Diodes in backwards

ICs in backwards

Wrong IC in a socket

IC socket lead bent under and not in hole

Missing components (especially monolithic caps)

Once you're sure there are no obvious problems, measure the resistance from +V to ground. If it's low or zero, there's a problem. Assuming you used sockets, pull the chips out one at a time. If the short goes away, you've located the problem area. If it doesn't go away, look for shorted traces.

With the jumper in, set volume to minimum, plug an electret mic into J1, attach a loudspeaker (or headphones), and attach 12 volts to TB1. Make sure the loudspeaker

is pointing away from the microphone. Verify that the LED is lit.

Speak into the microphone as you gradually increase the volume to a comfortable level. Verify that the circuit is amplifying. Then remove the jumper as you continue to speak and verify that your voice is modulated.

Wrap-Up

Some fun things you can do with this project are to put "LEAVE A MESSAGE OR YOU WILL BE EXTERMINATED!" on your answering machine or tell the neighbor "GET YOUR DOG OFF MY LAWN OR YOU WILL BE EXTERMINATED!" The possibilities are endless. NV

The PCBs and/or a complete kit for this project can be purchased through the Nuts & Volts Webstore at

www.nutsvolts.com

or call our order line at 800-783-4624.

May 200843

Continued ...

PARTS LIST

ITEMDESCRIPTION

❑IC1555CTimer

❑IC2CD4027 Dual JK Flip-Flop

❑IC378L05 5V Regulator

❑IC4741 Op-amp

❑IC5CD4066 Analog Switch

❑IC6LM380 Power-Amp (eight-pin DIP)

❑R1,R2121K, 1%, 1/4W

❑R3,R6,R915K, 5%, 1/4W

❑R4,R52K, 1%, 1/4W

❑R725 kΩ, Single-Turn, PCB-Mounted Potentiometer

❑R82.7 Ω, 5%, 1/2W

❑R101 kΩ, 5%, 1/4W

❑C10.022 μF, Monolithic Ceramic

❑C2,C4,C90.1 μF, Monolithic Ceramic

❑C3,C5-C71 μF, Monolithic Ceramic

❑C810 μF, 25V, Aluminum Electrolytic

❑C10100 μF, 35V, Aluminum Electrolytic

❑Cb0.1 μF, Monolithic Ceramic for Bypass (decoupling)

❑D11N4001

❑D2GRN LED

❑JPTwo-pin Header and Removable Jumper

❑J13.5 mm Stereo Jack, PCB Mounted

❑TB1, TB2Terminal Block, PCB Mounted, Two Contacts, RadioShack part 276-1388 (also Molex 39890-0302 or equivalent on 0.2 inch spacing0029

Disclaimer: These citations are created on-the-fly using primitive parsing techniques. You should double-check all citations. Send feedback to whovian@cuttingsarchive.org

  • APA 6th ed.: Stewart, Jim (May 2008). Build a Voice Changer. Nuts & Volts p. 40.
  • MLA 7th ed.: Stewart, Jim. "Build a Voice Changer." Nuts & Volts [add city] May 2008, 40. Print.
  • Chicago 15th ed.: Stewart, Jim. "Build a Voice Changer." Nuts & Volts, edition, sec., May 2008
  • Turabian: Stewart, Jim. "Build a Voice Changer." Nuts & Volts, May 2008, section, 40 edition.
  • Wikipedia (this article): <ref>{{cite news| title=Build a Voice Changer | url=http://cuttingsarchive.org/index.php/Build_a_Voice_Changer | work=Nuts & Volts | pages=40 | date=May 2008 | via=Doctor Who Cuttings Archive | accessdate=28 March 2024 }}</ref>
  • Wikipedia (this page): <ref>{{cite web | title=Build a Voice Changer | url=http://cuttingsarchive.org/index.php/Build_a_Voice_Changer | work=Doctor Who Cuttings Archive | accessdate=28 March 2024}}</ref>