Silicon ChipBuild A Compact 12V 20W Stereo Amplifier - May 2010 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Saving energy is not the issue
  4. Feature: Slash Your Factory/Office Lighting Bill by Leo Simpson
  5. Feature: A Look At The TDA7377 Quad 12V Amplifier IC by Nicholas Vinen
  6. Project: A Solar-Powered Lighting System by John Clarke
  7. Project: Build A Compact 12V 20W Stereo Amplifier by Nicholas Vinen
  8. Project: Low-Power Car/Bike USB Charger by Nicholas Vinen
  9. Project: Digital Audio Signal Generator, Pt.3 by Nicholas VInen
  10. Review: Tektronix DMM4050 6½-Digit Multimeter by Nicholas Vinen
  11. Book Store
  12. Vintage Radio: How AGC works and why it’s necessary by Rodney Champness
  13. Advertising Index
  14. Outer Back Cover

This is only a preview of the May 2010 issue of Silicon Chip.

You can view 29 of the 96 pages in the full issue, including the advertisments.

For full access, purchase the issue for $10.00 or subscribe for access to the latest issues.

Items relevant to "A Solar-Powered Lighting System":
  • Solar-powered Lighting System PCB [16105101] (AUD $10.00)
  • PIC16F88-I/P programmed for the Solar Powered Lighting Controller [1610510A.HEX] (Programmed Microcontroller, AUD $15.00)
  • PIC16F88 firmware and source code for the Solar Powered Lighting Controller [0610510A.HEX] (Software, Free)
  • Solar-Powered Lighting System PCB pattern (PDF download) [16105101] (Free)
Articles in this series:
  • A Solar-Powered Lighting System (May 2010)
  • A Solar-Powered Lighting System (May 2010)
  • A Solar-Powered Lighting System, Pt.2 (June 2010)
  • A Solar-Powered Lighting System, Pt.2 (June 2010)
Items relevant to "Build A Compact 12V 20W Stereo Amplifier":
  • Compact 12V 20W Stereo Amplifier PCB [01104101] (AUD $7.50)
  • Compact 12V 20W Stereo Amplifier PCB pattern (PDF download) [01104101] (Free)
  • Compact 12V 20W Stereo Amplifier front panel artwork (PDF download) (Free)
Items relevant to "Low-Power Car/Bike USB Charger":
  • Low-Power Car/Bike USB Charger PCB [14105101] (AUD $5.00)
  • Low-Power Car/Bike USB Charger PCB pattern (PDF download) [14105101] (Free)
  • Low Power Car/Bike USB Charger front panel artwork (PDF download) (Free)
Items relevant to "Digital Audio Signal Generator, Pt.3":
  • Digital Audio Signal Generator main PCB (to suit Jaycar case - 04203101] (AUD $10.00)
  • Digital Audio Signal Generator main PCB (to suit Altronics case - 04203103] (AUD $10.00)
  • Digital Audio Signal Generator control PCB [04203102] (AUD $7.50)
  • dsPIC33FJ64GP802-I/SP programmed for the Digital Audio Signal Generator [0420310C.HEX] (Programmed Microcontroller, AUD $25.00)
  • dsPIC33 firmware and source code for the S/PDIF Digital Audio Signal Generator [0420310C.HEX] (Software, Free)
  • S/PDIF Digital Audio Signal Generator main PCB pattern for Jaycar case (PDF download) [04203101] (Free)
  • S/PDIF Digital Audio Signal Generator main PCB pattern for Altronics case (PDF download) [04203103] (Free)
  • S/PDIF Digital Audio Signal Generator display/control PCB pattern (PDF download) [04203102] (Free)
  • S/PDIF Digital Audio Signal Generator front panel label artwork (PDF download) (Panel Artwork, Free)
  • S/PDIF Digital Audio Signal Generator top panel label artwork for Jaycar case (PDF download) (Panel Artwork, Free)
  • S/PDIF Digital Audio Signal Generator top panel label artwork for Altronics case (PDF download) (Panel Artwork, Free)
Articles in this series:
  • Digital Audio Signal Generator, Pt.1 (March 2010)
  • Digital Audio Signal Generator, Pt.1 (March 2010)
  • Digital Audio Signal Generator, Pt.2 (April 2010)
  • Digital Audio Signal Generator, Pt.2 (April 2010)
  • Digital Audio Signal Generator, Pt.3 (May 2010)
  • Digital Audio Signal Generator, Pt.3 (May 2010)
Articles in this series:
  • How AGC works and why it’s necessary (May 2010)
  • How AGC works and why it’s necessary (May 2010)
  • How AGC works and why it’s necessary, Pt.2 (June 2010)
  • How AGC works and why it’s necessary, Pt.2 (June 2010)

Purchase a printed copy of this issue for $10.00.

By NICHOLAS VINEN Compact High-Performance 12V Stereo Amplifier Amplifiers which run from 12V DC generally don’t put out much power and they are usually not hifi as well. But this little stereo amplifier ticks the power and low distortion boxes. With a 14.4V supply, it will deliver 20 watts per channel into 4-ohm loads at clipping while harmonic distortion at lower power levels is typically less than 0.03%. T HIS IS AN IDEAL project for anyone wanting a compact stereo amplifier that can run from a 12V battery. It could be just the ticket for buskers who want a small but gutsy amplifier which will run from an SLA battery or it could used anywhere that 12V 54  Silicon Chip DC is available – in cars, recreational vehicles, remote houses with 12V DC power or where ever. Because it runs from DC, it will be an ideal beginner’s or schoolie’s project, with no 240VAC power supply to worry about. You can run it from a 12V battery or a DC plugpack. But while it may be compact and simple to build, there is no need to apologise for “just average” performance. In listening tests from a range of compact discs, we were very impressed with the sound quality. siliconchip.com.au Long-time readers might recall that we presented a similar 12V power amplifier design back in May 2001. It was a similar configuration to this one but it is now completely over-shadowed by the much lower distortion and greatly improved signal-to-noise ratio of this new design. In fact, let’s be honest: the previous unit is not a patch on this new design. It used two TDA1519A ICs which resulted in distortion figures above 1% virtually across the board and a signal-to-noise ratio of only -69dB unweighted. However, by using the TDA­ 7377 power amplifier IC and making some other improvements, the THD (total harmonic distortion) of the new design is about 50 times better than the older unit (see performance graphs for details). The bottom line is that the THD under typical conditions is around just 0.03% or less. It is also able to deliver more output power due to the improved output transistors in the new power amplifier IC. In addition, its idle power consumption is low – not much more than 1W. As a result, if you don’t push it too hard it will run cool and won’t drain the battery too quickly. And because the IC has self-protection circuitry, it’s just about indestructible. It will self-limit or shut down if it overheats and the outputs are deactivated if they are shorted. Obtaining enough power With a 12V supply, the largest voltage swing a conventional solid-state power amplifier can generate is ±6V. This results in a meagre 4.5W RMS into 4Ω and 2.25W RMS into 8Ω, without considering losses in the output transistors. Even if the DC supply is around 14.4V (the maximum that can normally be expected from a 12V car battery), that only brings the power figures up to 6.48W and 3.24W for 4Ω and 8Ω loads respectively – still not really enough. There are three common solutions to this problem. The first is to boost the supply voltage using a switchmode DC converter. This greatly increases the cost and complexity of the amplifier but it is one way of getting a lot of power from a 12V supply. However, we wanted to keep this project simple and that rules out this technique. There are variations on the boosting method, such as the class H architecture used in the TDA1562Q IC siliconchip.com.au It may only be small but the 12V Mini Stereo Amplifier puts out up to 20W per channel into 4Ω loads at low distortion. It uses just two ICs and is very easy to assemble. featured in the Portapal PA Amplifier (SILICON CHIP, February 2003). It is able to achieve 40W/channel but with >0.1% THD. In that case, the amplifier output itself provides the switching for a charge pump. The second method is to lower the speaker impedance. Some car speakers have an impedance as low as 2Ω, which allows twice as much power to be delivered at the same supply voltage. However, we don’t want to restrict this amplifier to 2Ω loudspeakers. The remaining solution is to use bridge mode, also known as BridgeTied Load (BTL). It requires two amplifier circuits per channel. The TDA­ 7377 IC is ideal for this purpose – it contains four amplifiers in a single package and is intended for a bridged stereo configuration. In the TDA7377, two of the four amplifier circuits have inverting inputs, so all we need to do is to feed the same signal to one of each type and the outputs will swing in opposite directions – when one voltage goes up the other will go down and vice versa. Instead of connecting the speakers between the amplifier output and ground, we connect them between the two outputs. This doubles the voltage across the speaker and multiplies the maximum power delivered by four (P = V2/R). It also eliminates the AC-coupling capacitor at the output, which is needed with a standard single supply amplifier. Practically speaking, virtually any 4Ω or 8Ω speaker is suitable for use with this amplifier; the more efficient, the better. Avoid anything less than 4Ω, as that would be asking each amplifier circuit to drive a load under 2Ω, which the IC is not rated for. Circuit description Fig.3 shows the full circuit. As can be seen, it’s based on the aforementioned TDA7377V monolithic stereo BTL amplifier (IC2) plus a TL074 quad FET-input op amp package (IC1). The latter provides the tone control stages in both channels. May 2010  55 03/19/10 16:16:20 2 2 1 1 0.5 0.5 0.2 0.2 0.1 0.1 0.05 0.05 0.02 0.02 0.01 03/19/10 16:19:59 THD+N % vs Power, 8 , 14.4V 5 THD % THD % THD+N % vs Power, 4 , 14.4V 5 0.01 60m 100m 200m 500m 1 2 5 10 20 30 60m 100m 200m Watts 56  Silicon Chip 1 2 5 10 20 30 Watts Fig.1: THD+N vs output power at 4Ω (one channel driven only). The supply is 14.4V and the measurement band­ width is 20Hz-22kHz. The distortion increase below 1W is due to noise. As shown, the input signals are fed via 4.7µF non-polarised capacitors to a 10kΩ dual-gang potentiometer (VR1) which serves as the volume control. From there, the signals are AC-coupled via 470nF capacitors to op amps IC1a & IC1b. These act as unity-gain buffer stages to provide a low source impedance for the following Baxandall tone control stages based on IC1c & IC1d. In operation, IC1c & IC1d and their associated potentiometers (VR2 & VR3) provide bass and treble boost of ±15dB, with a centre frequency of 700Hz. The frequency response is very flat when the pots are centred (see Fig.11). To understand how the tone control stages work, let’s consider the bass and treble sections separately. We’ll concentrate on the bass sections first but will initially ignore the 10nF capacitors. This leaves us with an inverting amplifier (IC1c or IC1d), where the resistors (including the pots) form the feedback network and thus control the gain. With the bass pot turned all the way clockwise, the gain is set at 122kΩ/22kΩ or about 5.5. If it is turned in the opposite direction, the gain is 22kΩ/122kΩ or 0.18. Adding the 10nF capacitors across VR2a & VR2b adds a low-pass filter to each gain network, so that turning the knob affects low frequencies more than high frequencies. As a result, we can adjust the gain of the bass and hence achieve bass boost/cut. 500m Fig.2: THD+N vs output power at 8Ω with both channels driven. The supply is 14.4V and the measurement band­ width is 20Hz-22kHz. The disparity between the channels is primarily due to tone control pot tracking errors. The treble section (VR3a & VR3b) works similarly except that the capacitors (4.7nF in this case) are in series with the resistors, thus forming a highpass filter instead. The 10pF capacitors on the inverting inputs of IC1c & IC1d reduce their gain at high frequencies, thereby preventing oscillation in case there is RF pickup in the filter network. Similarly, the 10Ω resistors at the outputs of IC1c & IC1d attenuate any RF signals which may make it through before they go into the power amplifier (IC2). Power amplifier Only a few external components are required by the single TDA7377V IC (IC1). It’s very clever – not only does it contain the four low-distortion amplifiers we need to drive stereo speakers in BTL configuration but it has virtually rail-to-rail swing on the outputs and is inherently stable with a fixed 26dB gain (see the separate article in this issue for more details on how the TDA7377V works). We have used its standby pin (pin 7) to switch the amplifier on and off. This avoids having high current passing through on/off switch S1. In fact, S1 only switches the power to pin 7 of IC2 and to the quad op amp IC1. Hence the power supply and IC1 remain energised as long as the supply voltage is present but only the capacitor leakage and standby current are drawn, a total of around 100µA. Switching the amplifier on raises the quiescent (no signal) current to around 100mA. As soon as switch S1 is turned on, the 100µF filter capacitor is charged via diode D1. The standby pin (pin 7) has a low-pass filter consisting of a 22kΩ resistor and 1µF capacitor so that the power amplifier is not enabled until the op amp is on. This avoids turn-on thumps. Similarly, when you switch S1 off, the 22kΩ resistor at the anode of diode D1 pulls down the standby pin voltage, turning the power amplifier IC off almost immediately. This avoids switchoff thumps from the loudspeakers. Reverse polarity protection The main power supply components are the four 2200µF 25V electrolytic capacitors plus two 470nF MKT capacitors in parallel for high-frequency filtering. Mosfet Q1 provides reverse polarity protection for this section. Although the TDA7377 IC can withstand negative supply voltages, the electrolytic capacitors cannot. In the May 2001 design, a 3A diode was placed across the supply rails so that it would conduct and blow the fuse if the supply polarity was accidentally reversed. In this circuit, however, we have connected an IRF1405 Mosfet in series with the supply ground lead. In essence, the Mosfet acts like a diode with a very low forward voltsiliconchip.com.au siliconchip.com.au May 2010  57 100k VR1a 10k A 470nF 47 F VOLUME 470nF VR1b 10k A 1k 1k 6 5 100k 100k 2 3 1 IC1b 7 IC1: TL074 IC1a 4 NP 4.7 F NP 4.7 F 100nF 12V MINI STEREO AMPLIFIER 100k 4.7 F NP 4.7 F NP 100 F 22k 4.7nF 4.7k 10nF VR2b 100k 22k VR3b 50k 4.7k 4.7nF 22k A D1 22k 4.7nF 4.7k TREBLE VR3a 50k 22k VR2a 100k BASS 4.7k 4.7nF 22k 10nF K 10pF 13 12 10k 10k 10 9 10pF 11 IC1d IC1c A K 10 470nF 1 F 22k 470nF 22k 10 10k ZD1, ZD2 14 8 10k A STBY G D S IRF1405 47 F D PG 8 470nF 10 SG 9 OUT4 14 OUT3 15 DIAG OUT2 2 2 1 2200 F 25V 2200 F 25V OUT1 1 3 13 Vcc Vcc IC2 TDA7377V SVR 6 11 IN4 12 IN3 7 5 IN2 4 IN1 470nF 2200 F 25V 2200 F 25V S1 POWER Fig.3: the complete circuit is based on a TL074 quad FET-input op amp (IC1) and a TDA7377V quad power amplifier (IC2). IC1a-IC1d and their associated stereo potentiometers (VR2-VR3) form a Baxandall tone control circuit and this drives IC2 which is wired in bridged stereo mode. Mosfet Q1 provides reverse polarity protection. 2010 SC  10 RIGHT IN CON2 10 CON1 LEFT IN K D1 1N4004 4 6 A 8 K K A 10 RIGHT OUT TDA7377V 14 15 + Q1 IRF1405 F1 6.5A LEFT OUT – CON5 – + 12 S D CON4 – ZD2 15V ZD1 15V G 100k + CON3 – + DC IN in fact, than if a standard diode had been used. IC2 TDA7377V BASS TREBLE + R IN + 10k CON2 470nF CON1 4.7 F 4.7 F NP NP 1k 100k 10k 10k 22k VR3 2x50k B 470nF 10k 100k 100k 10 10 GND NP 10pF VR2 2x100k B 100k 1k 4.7 F 10pF 100 F 47 F L IN CON5 4.7 F 22k 10nF D1 100nF 4.7nF 4.7nF 4.7k 4.7k 4.7k 4.7k 22k 22k 22k 22k 10nF 4.7nF 4.7nF 15V 2200 F 4004 22k Power source RIGHT OUTPUT 2200 F NP ZD1 ZD2 470nF 22k SWITCH S1 10 10 47 F 470nF 470nF 470nF CON4 Q1 IRF1405 1 F IC1 TL074 15V CON3 – – 12V DC INPUT + 100k + 2200 F – 2200 F + LEFT OUTPUT VR1 2x10k A VOLUME Fig.4: follow this layout diagram to build the PC board. Make sure that all polarised parts are correctly oriented and don’t get the pots mixed up. The maximum current consumption depends on the speaker impedance and how far up you turn the volume. As a rough guide, full power with a 14.4V supply and 8Ω speakers requires at least 3A. For 4Ω speakers, the current consumption can exceed 6A. At a minimum, use a 7.2Ah SLA battery for 8Ω speakers or a 12Ah SLA for 4Ω. They should last 2-24 hours depending on how hard you’re driving the amplifier (larger batteries will last longer). You can charge the battery while using the amplifier, although this may slightly prejudice the sound quality due to the supply ripple that charging introduces. Power supply rejection is >50dB at 300Hz and thanks to the large supply bypass capacitors, the additional noise should be kept to a low level. If you want to run the amplifier from a mains power supply, both linear and switchmode types are suitable. A 6A linear supply is likely to be large and expensive so switchmode is probably the way to go. A higher supply voltage (ie, up to 16V) will give more power. The absolute maximum operating voltage is 18V, so make sure whatever you use can never exceed that. Construction This view shows the completed prototype. The pot bodies are connected together using a length of tinned copper wire which loops across them and is terminated in pads on either side of the board. age, typically less than 25mV at 5A (we measured 8.7mV at 2.5A). This compares with around 1V at 5A for a 58  Silicon Chip standard rectifier diode. This means that the amplifier can deliver significantly more power, about 15% more, All the circuitry, including the potentiometers for the volume and tone controls, is mounted on a PC board measuring 97 x 78mm and coded 01104101. This is mounted in a compact metal case with an aluminium base and steel lid. Fig.4 shows the parts layout on the PC board. Start by checking the board for defects, such as shorts or breaks in the copper tracks and undrilled holes. If it’s OK, start the assembly by installing the four wire links using 0.71mm tinned copper wire. Make sure they are straight and flat before soldering, since some of the links pass near exposed component legs. Next, install the fixed value resistors. It’s a good idea to check each value with a DMM, as the colour codes can be notoriously hard to read. After that, solder in the two zener diodes. They are identical but make sure that you get their orientation correct. Once the zeners are in, bend the siliconchip.com.au 03/19/10 16:09:53 2 2 1 1 0.5 0.5 0.2 0.2 0.1 0.1 0.05 0.05 0.02 0.02 0.01 03/19/10 16:08:31 THD+N % vs Frequency, 8 , 14.4V, 5W 5 THD % THD % THD+N % vs Frequency, 4 , 14.4V, 5W 5 0.01 20 50 100 200 500 1k 2k 5k 10k 20k 20 50 100 200 500 Hz Fig.5: THD+N vs frequency for 5W into 4Ω. The supply is 14.4V and the measurement bandwidth is <10Hz-80kHz. The reading at 1kHz is slightly higher than in Fig.1 due to the wider measurement bandwidth. Mosfet’s leads down at right angles about 5mm from its tab using small pliers. That done, insert its leads into the PC board and check that its mounting hole lines up. Adjust the leads if necessary, then secure the tab to the PC board using an M3 x 6mm machine screw, spring washer and nut. Once it is firmly in place and cannot move, solder and trim the three leads. Next, install the three terminal blocks. Push them all the way down so that they sit flush with the board and check that they are correctly oriented before soldering their pins. The three polarised polarised headers can then be installed, again taking care with their orientation. Follow with the MKT capacitors and the two ceramic types. The polarity doesn’t matter here but don’t get the values mixed up. The four bipolar electrolytic capacitors can then be installed, followed by the four small polarised electrolytics but don’t install 1k 2k 5k 10k 20k Hz Fig.6: THD+N vs frequency for 5W into 8Ω. The supply is 14.4V and the measurement bandwidth is <10Hz-80kHz. The reading at 1kHz is slightly higher than in Fig.2 due to the wider measurement bandwidth. the larger 2200µF units just yet. Next, install the TL074 IC, making sure it goes in the correct way around. We used a socket in our prototype but there’s no reason why it cannot be directly soldered to the PC board. done, check that the pins are all still properly inserted and that the package is parallel with the edge of the board. When it is all straight, solder a couple of leads and recheck its orientation before finishing the job. The four 2200µF electrolytic capacitors can now be installed. Make sure that each of these sits flush against the PC board and is oriented correctly. Installing the TDA7377 It’s now time to install the TDA7377V. You must do this slowly and carefully since it’s difficult to remove if it’s misaligned. Start by gently inserting its leads through the board, taking care not to bend any of them. You may need to adjust them using needle-nose pliers if they have been bent during transport, so that they line up properly. Once the pins have been pushed all the way down, place the metal tab of the IC on a flat, horizontal surface with the PC board vertical. Hold the IC down against the surface and adjust the angle of the board so that they are exactly at right angles. That Cutting the pot shafts Before fitting the potentiometers (VR1-VR3), it’s necessary to cut their Table 2: Capacitor Codes Value 470nF 100nF 10nF 4.7nF 10pF µF Value IEC Code EIA Code 0.47µF 470n 474 0.1µF 100n 104 0.01µF 10n 103 .0047µF 4n7 472 NA 10p    10 Table 1: Resistor Colour Codes o o o o o o o siliconchip.com.au No.   5   8   4   4   2   4 Value 100kΩ 22kΩ 10kΩ 4.7kΩ 1kΩ 10Ω 4-Band Code (1%) brown black yellow brown red red orange brown brown black orange brown yellow violet red brown brown black red brown brown black black brown 5-Band Code (1%) brown black black orange brown red red black red brown brown black black red brown yellow violet black brown brown brown black black brown brown brown black black gold brown May 2010  59 up with four 21mm spacers. Note: the spacers at the rear of the board are later removed when it is attached to the heatsink. Initial checks Follow this photo and the text to complete the wiring inside the case. Note the use of shielded cable to connect the RCA input sockets. If you have a bench supply, set it to 12V with a current limit of 200mA. Otherwise, use a 12V plugpack or similar supply – if possible, one which is too small to provide much current. First, connect your DC supply to the power block (CON3), with a DMM wired in series and set to read amps. Now switch the supply on and check the current reading. With no power switch attached, the current should be negligible (<1mA) and the DMM will probably read 0 (once the 2200µF capacitors have charged). If it reads more than a few milliamps, switch off and check the board for mistakes. Now short the switch header pins (ie, for S1) together using a piece of wire. The current should now increase to around 100mA and possibly as high as 160mA. If you remove this short, the reading should drop back to 0mA within a second or so. If you have made a mistake with the Mosfet or zeners, it’s possible no current will flow at all. If that happens, check that area of the board. It could also be a problem with the standby RC filter components (22kΩ and 1µF). Drilling the case shafts to length so that the “D”-shaped sections (ie, the flat sections) are about 10mm long. This is done by clamping the end of each shaft in a vice and then cutting it with a hacksaw. Deburr the ends when you have finished, so that the knobs can later be fitted. VR1-VR3 can now be installed on the board. They each have a different value, so be sure to mount each one in the correct location. Earthing the pot bodies To prevent noise pickup, it’s necessary to earth the bodies of the pots. This is done using a length of tinned copper wire which loops across the top of the pots and is terminated at both ends to pads on the PC board. To install this wire, first solder one end to the pad immediately to the right of the volume control. That done, stretch the wire across the tops of the three pots and feed the free end into the pad to the left of the bass pot. 60  Silicon Chip Finally, pull the wire down tight and solder it in position, then solder the wire to the top of each pot body. Note that it will be necessary to scrape away the passivation material on each pot body in order for the solder to take. You will also need to use a hotter-than-normal soldering iron in order to heat the pot bodies sufficiently for soldering. In practice, the pot bodies will later all be in contact with the bare metal of the case, so it should not be necessary to connect the GND pad on the PC board to the case itself. However, if you elect to house the board in a plastic case, it will be necessary to connect the GND pad to the ground (-) terminal of CON3. The PC board assembly can now be completed by attaching an M3 x 12mm spacer to each corner, secured by M3 x 15mm machine screws. That done, thread M3 x 9mm spacers over each end so that you effectively finish Fig.7 shows the drilling details for the front and rear panels of the case. This can either be copied and used as a template or you can download a PDF file from the SILICON CHIP website, print it out and use that instead. Start by attaching the front panel template section to the case. Once that’s done, centre-punch the location of each hole, then remove the template and drill a small pilot (eg, 2mm) hole at each location. Before going further, place the board assembly in the case and check that the three righthand holes line up correctly with the centres of the pot shafts. Once you are satisfied that everything is correct, drill the three potentiometer holes to 6.5mm, then check that the pot shafts (included the threaded portions) go all the way through). Enlarge the holes if necessary using a tapered reamer until it fits correctly. The switch cutout is made by first pilot-drilling the two marked posisiliconchip.com.au 130 23.5 31 23.5 44.5 13.25 31 33 4 B A A A 11 B 70 4 10 6.5 (FRONT PANEL) HOLES A: 6.5mm DIAM. HOLES B: 5.5mm DIAM. (FOR SWITCH CUTOUT) ALL DIMENSIONS IN MILLIMETRES HOLES C: 8.0mm DIAM. HOLES D: 9.5mm DIAM. HOLE E: 12.5mm DIAM. 130 22 34 D C 24 C C D 24 20 70 E C 15 C 20 25 30 25 15 (REAR PANEL) Fig.7: this diagram shows the drilling templates for the front and rear panels. Centre-punch each hole position and drill small pilot holes before carefully enlarging them to size using progressively larger drills and a tapered reamer. tions, then enlarging them to 5.5mm and drilling a third hole between them. The centre piece can then be knocked out and a small flat file used to gradually enlarge the cutout to the marked rectangular outline. Slowly enlarge it in each direction until the switch snaps into place and is locked in by its plastic tabs. It will take a good 10-15 minutes of patient filing, so take it slowly and make sure you don’t make the hole too large or crooked. should each be marked on the underside of the case and are positioned 6mm in from the front panel and 21mm in from the sides. Drill them to 3mm then slide the board into position and fit the mounting screws. Don’t worry about securing the pots to the front panel at this stage —that step comes later. For the time being, just check that everything lines up correctly, then remove the board and power switch so that the rear panel can be drilled. Installing the PC board Rear panel drilling In order to later secure the PC board, it’s necessary to drill mounting holes in the base of the case for the front (but not the rear) spacers. The two holes Eight holes have to be drilled in the rear panel – two for the insulated RCA input sockets (D), four for the loudspeaker terminals (C), one for siliconchip.com.au the DC power socket (C) and one for the fuse (E). Begin by securing the drilling template accurately in position (use tape), then centre-punch each hole location, and drill small pilot holes. The template can then be removed and the holes enlarged to the sizes indicated using drills and a tapered reamer (ie, 8mm for the binding posts and DC connector, 9.5mm for the RCA sockets and 13-15mm for the fuseholder, depending on the exact type). Use an oversize drill to deburr the holes, then install the rear panel hardware as shown in the photos. Make sure all the nuts are done up tightly so the components can’t rotate. By the way, insulated RCA input sockets May 2010  61 Using A Mosfet As A Diode In this project we have used a Mosfet instead of a diode for reverse polarity protection, for the reasons explained in the article. Fig.8 shows how an N-channel Mosfet is typically used for motor control, lamp flashing or any other task where a high current DC electronic switch is required. Because a Mosfet’s source is generally connected to the substrate, a parasitic diode known as the “body diode” is present. This is shown in the symbol and it cannot be avoided. Because its source is connected to ground, Q1 is on whenever the gate voltage is above the Mosfet’s on-threshold (usually 2-4V). The body diode is reverse biased and does not conduct unless the load is inductive and switch-off causes a large enough positive voltage spike to trigger reverse breakdown (avalanche). What we want to do, though, is use a Mosfet to prevent current flow if VCC becomes negative. In the case of Fig.8, if this were to happen, the body diode are mandatory if you want to get low distortion. Pay attention to the orientation of the holes in the binding posts. The upper two (red) should have the holes vertical, while the lower two (black) should be orientated with the holes 30-45° from vertical so that you can insert the speaker leads from the side. Attaching the heatsink The specified heatsink is a 55 x 105mm “fan” type. It is quite heavy, so it will need to be attached to the base of the case using two right-angle steel INSULATING BUSH TDA7377V brackets (obtained from Bunnings). To do this, stand the heatsink vertically on a flat surface and place a bracket flush against the flat side at one end. Mark the centre of the mounting hole, then repeat this procedure at the other end. The two holes are then centre-punched and drilled to 4mm. Remove any swarf from around the holes using an oversize drill, then attach the brackets using two M4 x 10mm machine screws, spring washers and nuts. Now remove the rear spacers from the PC board, install it in the case and INSULATING PAD SPRING M3 WASHER NUT HEATSINK M3 x 15MM SCREW would conduct and it would be impossible for the Mosfet to provide reverse polarity protection. Hence, we must reverse the Mosfet and connect it so that the source is positive with respect to the drain, as shown in Fig.9. Note that the body diode is now forward biased when VCC is positive. If we also bias the Mosfet on, all of the current will flow through the channel (ie, source to drain) instead. The channel path will have a much lower voltage drop than the body diode. We achieve this by connecting a resistor between the supply input and the gate. When the supply voltage is positive, the Mosfet is turned on and if it becomes negative it will be turned off and of course, the body diode will be reverse-biased! Because the source is no longer connected to ground it may seem that we can no longer turn the Mosfet on. In fact, the source is pulled to ground via the body diode. The final refinement adds two backto-back zener diodes between the gate Fig.10: this diagram shows how the TDA7377V amplifier IC is attached to the heatsink. It must be electrically isolated from the heatsink using an insulating bush and pad. 62  Silicon Chip + VCC ILOAD RLOAD D VCONTROL G Q1 IRF1405 S Fig.8: using a Mosfet as a switch (typical connection). D VCONTROL RPULLUP G RLOAD Q2 IRF1405 S ILOAD + VCC Fig.9: using a Mosfet as an active rectifier. and source terminals. They are included to prevent a supply voltage spike of more than ±20V from destroying the Mosfet. slide the heatsink up to it so that it sits flush against IC2’s metal tab. Check that the heatsink is correctly centred, then mark the mounting holes for the heatsink brackets on the bottom of the case. The heatsink and PC board are then removed and the marked locations drilled to 4mm. The next step is to drill a mounting hole in the heatsink for IC2’s metal tab. That’s done by first reinstalling the PC board in the case and securing the heatsink to the base using two M4 x 10mm machine screws and nuts. It’s then just a matter of marking the hole location, then removing the heatsink, centre-punching the marked location and drilling to 3mm. Now use an oversize drill to carefully deburr the mounting hole. This step is most important —if there’s any metal swarf around the hole, it could punch through the insulating washer that’s used to electrically isolate IC2’s tab from the heatsink and create a short circuit. Basically, it’s just a matter of checking that the mounting area is perfectly smooth by running your finger over the hole. Attaching IC2 to the heatsink IC2’s tab must be electrically isosiliconchip.com.au Performance Total harmonic distortion plus noise: typically <0.03% Signal-to-noise ratio: 93dB (96dB A-weighted) with respect to 10W into 8Ω Channel separation: -72dB at 1kHz Input sensitivity: 500mV RMS for 10W into 8Ω Input impedance: 8.3kΩ Stability: unconditional This view inside the prototype clearly shows the heatsink mounting details. Note that the speaker polarity has been reversed in the final version (ie, the positive speaker leads should go towards the rear of terminal blocks CON4 & CON5 on the PC board). lated from the heatsink using an insulating bush and washer – see Fig.10. It’s just a matter of fitting the heatsink back in the chassis, then attaching IC2’s tab as shown. It’s secured using an M3 x 15mm machine screw, spring washer and nut. Do the screw up firmly to ensure good thermal contact, then use your multimeter (set to a low ohms range) to confirm that IC2’s tab is correctly isolated from the heatsink. By the way, if you use a mica washer rather than a thermal insulating pad, be sure to smear both sides of the washer with thermal grease before bolting the tab down. Front panel A front panel for the specified case can be downloaded from the SILICON siliconchip.com.au CHIP website (as a PDF file) and printed out on a colour printer. It’s attached using double-side tape and this should be done with the PC board and heatsink assembly out of the case. You will also have to temporarily remove the rocker switch if it’s in place. Once the front panel is in position, cover it with some wide strips of adhesive tape, then cut out the holes for the switch and pot shafts using a sharp hobby knife. The adhesive tape covering will protect the label from scratches and finger marks and will provide a durable finish. The PC board and heatsink assembly can now be permanently installed in the chassis. Before sliding it in, fit a nut onto the threaded boss of each pot and wind it all the way up to the pot body. That done, place the assembly in the case and secure it via the heatsink brackets and the screws that go into the front spacers. Now wind the pot nuts forward until they contact the rear of the front panel, then fit three more nuts to the pots from the front. The six pot nuts can now all be tightened to lock the pots firmly in place and prevent the front panel from flexing. Once they are secure, fit the knobs and reinstall the rocker switch. Chassis wiring All that’s left is the chassis wiring. First, cut a short length of red heavyduty hook-up wire, strip the ends and solder it between the centre pin of the DC socket and the middle tab of the May 2010  63 Frequency Response, 4 , 5W, 14.4V 02/23/10 09:56:35 03/19/10 16:33:59 THD+N % vs Power, 4 , 12.0V +10 5 +8 2 +6 1 +4 0.5 THD % dBr +2 -0 -2 0.2 0.1 -4 0.05 -6 0.02 -8 -10 10 20 50 100 200 500 1k 2k 5k 10k 20k 50k 100k 0.01 60m 100m 200m Hz 2 5 10 20 30 Fig.12: this graph of THD+N vs power is similar to that shown in Fig.1 except that the amplifier is powered from a 12V 4A switchmode supply. As you can see, performance doesn’t suffer much except that full power output is reduced due to the lower supply voltage. run from CON4 & CON5 to the binding post terminals on the rear panel and should be made long enough so that they don’t touch the heatsink. Note that we’ve reversed the output terminal polarity compared to our prototype to compensate for the inverting preamplifier stage. Ultimately, though, it doesn’t matter greatly, as long as both pairs of binding posts are connected the same way around (ie, the loudspeakers are not in anti-phase). The power switch wiring is next. This can be run using two 95mm lengths of medium-duty hook-up wire. Begin by stripping about 8mm from one end of each wire and crimping them to two polarised header pins using pliers. Once you have crimped Connecting The GND Terminal If you build the unit into the specified metal case, then it will not be necessary to connect the GND terminal to the case. That’s because the circuit earth is connected to the case via the DC power socket, while the pot bodies are earthed to the case via the nuts used to secure them. In fact, if you do connect the GND pad to the case under these circumstances, you could get an earth loop. Conversely, if you elect to house the board in a plastic case, then it will be necessary to connect the GND pad to the ground (-) terminal of CON3. Alternatively, it can be connected to the negative terminal of the DC socket. Similarly, if the pots are not directly secured to a metal chassis (ie, you don’t fit the nuts), then the GND terminal should be connected to metalwork. You can do this by securing a solder lug to the base of the case and then running a short lead between it and the GND pad on the board. 64  Silicon Chip 1 Watts Fig.11: this shows the amplifier’s frequency response for a 4Ω load with the tone controls centred. The -3dB point is around 25Hz. This is purposefully a little high to reduce the chance of “motor-boating” with a sagging supply voltage under load. fuseholder. A 70mm length of red wire is then run from the end fuseholder tab to the +12V input terminal on the board (ie, at CON3). Now connect the two remaining tabs on the DC socket together and run a 90mm length of black heavy-duty wire to the ground (-) terminal of CON3. In fact, the easiest way to do this is to strip the insulation from the hook-up wire back at least 15mm and wrap the wire around both these tabs before flowing solder over it. Because one of the tabs goes to the metal thread of the DC socket, this connects the negative rail to the case and improves the shielding. Next, connect the speaker outputs, again using heavy-duty red and black hook-up wire (see photos). These leads 500m them, flow some solder into each junction so that it can’t come apart. After soldering, insert the two pins into one of the plastic header blocks then strip about 5mm from the other ends of the wires. These ends are then attached to 4.8mm female spade connectors (a ratcheting crimper will do the best job) which are then pushed onto the switch terminals. Alternatively, solder the wires directly to the switch terminals if that’s what you prefer but be careful not to overheat and damage the plastic switch body. Wiring the RCA sockets All that remains is the wiring to the RCA input sockets. These are connected using two lengths of shielded cable which run back to two polarised pin headers situated behind the volume control. Begin by cutting two 150mm sections of shielded cable, strip 20mm of insulation from each end and twist the copper shield wires together. Then strip 5mm of insulation from the inner wires. At one end, tin the shield and inner wires, then crimp them into polarised header pins and flow solder into the crimp pin so it can’t come apart. Note that it’s necessary to twist the shield wires tightly before soldering them, so that they fit into the header pins. After soldering, insert the pins into siliconchip.com.au the two remaining plastic header blocks. In each case, the inner wire of the shielded cable must go to the “+” side of the header block (see Fig.4). This means that when the headers are plugged in, the inner wire of each header must be to the left, as viewed from the front of the PC board. The shield leads must be to the right, so that they connect to the earth pattern of the PC board when the headers are plugged in. The other ends of the shielded leads can then be soldered to the RCA sockets. In each case, the inner lead goes to the centre terminal of the socket, while the shield wire is soldered to the solder tab. As stated above, it’s necessary to use insulated RCA sockets for the inputs. After connecting them, it’s a good idea to check that neither RCA socket surround is shorted to the case (if they are, the performance will suffer). You can do this by using your multimeter to check for continuity between the outside metal surround of each RCA socket and the case. You should get an open circuit reading for both sockets. If the meter does indicate a short, check that the shield wires are not touching the case at the metal tabs. If they are, just bend the tabs forward slightly until the short is cleared. The assembly can now be completed by plugging the other ends of the shielded leads into the headers on the PC board. Don’t get them mixed up – the left input (white socket) should go to the header on the left side of the PC board and vice versa. Once the wiring is complete, use some cable ties to secure the various leads as shown in the photos. This not only keeps them looking tidy but will also prevent them from coming adrift. That’s it —construction is complete. Final testing Now for a final test. Install the 6.5A fuse into the fuseholder and connect a signal source (eg, a CD player) and a pair of speakers. Be sure to connect the speakers in phase and don’t crosswire the leads. Now turn the volume knob all the way down, switch on and slowly turn the volume up. If you hear audio loud and clear then all is well! If not, switch off immediately and check the chassis wiring carefully. If there’s a problem, it’s a good idea to first measure the voltage across the power terminal siliconchip.com.au Parts List 1 vented aluminium case (Jaycar HB-5444) 1 PC board, code 01104101, 97 x 78mm 1 55mm “fan”- type heatsink (Jaycar HH-8570, Altronics H-0250) 1 SPST mini rocker switch (Jaycar SK-0975, Altronics S-3202/S-3247) 2 4.8mm female spade lugs 2 small steel brackets (Bunnings RAB020) 4 M4 x 10mm machine screws 4 M4 nuts 4 M4 spring washers 1 2.1mm I.D. chassis-mount DC socket (Jaycar PS-0522, Altronics P-0622) 1 low-voltage M205 chassismount fuseholder (Jaycar SZ-2020, Altronics S-5992) 1 M205 6.5A fast-blow fuse 2 red insulated binding posts (Jaycar PT-0453, Altronics P-9252) 2 black insulated binding posts (Jaycar PT-0454, Altronics P-9254) 1 red insulated RCA socket (Jaycar PS-0276, Altronics P-0218) 1 white insulated RCA Socket (Jaycar PS-0278, Altronics P-0220 [Black]) 2 16mm knobs (Jaycar HK-7762, Altronics H6040) 1 24mm knob (Jaycar HK-7764, Altronics H-6044) 3 2-pin terminal blocks (5.08mm spacing) 3 2-pin polarised headers (2.54mm spacing) 3 2-pin polarised header connectors (2.54mm spacing) 1 TO-218 mica or silicone insulating washer (with bush) 5 M3 x 6mm machine screws 1 M3 x 10mm machine screw 4 M3 x 15mm machine screws 2 M3 spring washers 2 M3 nuts block, to make sure power is actually reaching the board. If that doesn’t solve the problem, you’ll need to recheck the component placement and orientation, as well as the solder joints. If the fuse blows, then 4 M3 x 12mm tapped Nylon spacers 4 M3 x 9mm tapped Nylon spacers 1 500mm length of red heavyduty hook-up wire 1 500mm length of black heavyduty hook-up wire 1 300mm length of medium-duty hook-up wire 1 400mm length of single-core shielded cable 1 300mm length of 0.71mm tinned copper wire Heatsink compound (if using a mica insulating washer) 8 100mm cable ties 3 additional nuts for pots Potentiometers 1 100kΩ linear dual gang 16mm potentiometer (VR2 – B100k) 1 50kΩ linear dual gang 16mm potentiometer (VR3 – B50k) 1 10kΩ log dual gang 16mm potentiometer (VR1 – A10k) Semiconductors 1 TL074 quad op amp (IC1) 1 TDA7377V quad power amplifier (IC2) (available from Futurlec) 1 IRF1405 MOSFET (Q1) 2 15V 1W zener diodes (ZD1,ZD2) 1 1N4004 diode (D1) Capacitors 4 2200µF 25V electrolytic 1 100µF 25V electrolytic 2 47µF 16V electrolytic 4 4.7µF non-polar (NP) electrolytic 1 1µF 25V electrolytic 6 470nF MKT 1 100nF MKT 2 10nF MKT 4 4.7nF MKT 2 10pF ceramic Resistors (0.25W, 1%) 5 100kΩ 4 4.7kΩ 8 22kΩ 2 1kΩ 4 10kΩ 4 10Ω you likely have a short circuit in your chassis wiring, because the earlier tests on the board would have shown up any shorts on the board itself. Assuming all is well, put on your favourite CD and enjoy the sound! SC May 2010  65