Silicon ChipBalanced Input Attenuator for the USB SuperCodec, Part 2 - December 2020 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Saying goodbye to Adobe Flash
  4. Feature: Automotive Electronics, Part 1 by Dr David Maddison
  5. Project: Power Supply for Battery-Powered Vintage Radios by Ken Kranz & Nicholas Vinen
  6. Subscriptions
  7. Feature: Making PCBs with a Laser Engraver or Cutter by Andrew Woodfield
  8. Project: Dual Battery Lifesaver by Nicholas Vinen
  9. Feature: A Closer Look at the RCWL-0516 3GHz Motion Module by Allan Linton-Smith
  10. Serviceman's Log: A brush with disaster by Dave Thompson
  11. Project: Balanced Input Attenuator for the USB SuperCodec, Part 2 by Phil Prosser
  12. Feature: El Cheapo Modules: Mini Digital Volt/Amp Panel Meters by Jim Rowe
  13. Project: Flexible Digital Lighting Controller, part 3 by Tim Blythman
  14. PartShop
  15. Vintage Radio: 1928 RCA Radiola 60 superhet by Dennis Jackson
  16. Product Showcase
  17. Market Centre
  18. Advertising Index
  19. Notes & Errata: Flexible Digital Lighting Controller, November 2020; Tiny LED Christmas Ornaments, November 2020; 7-Band Audio Equalisers, April 2020
  20. Outer Back Cover

This is only a preview of the December 2020 issue of Silicon Chip.

You can view 37 of the 112 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.

Articles in this series:
  • Automotive Electronics, Part 1 (December 2020)
  • Automotive Electronics, Part 1 (December 2020)
  • Automotive Electronics, Part 2 (January 2021)
  • Automotive Electronics, Part 2 (January 2021)
Items relevant to "Power Supply for Battery-Powered Vintage Radios":
  • Vintage Battery Radio Power Supply PCB [11111201] (AUD $7.50)
  • IPP80P03P4L-07 high-current P-channel Mosfet (Component, AUD $2.50)
  • Vintage Battery Radio Power Supply PCB pattern (PDF download) [11111201] (Free)
Items relevant to "Dual Battery Lifesaver":
  • Dual Battery Lifesaver PCB [11111202] (AUD $2.50)
  • IPP80P03P4L-07 high-current P-channel Mosfet (Component, AUD $2.50)
  • Dual Battery Lifesaver PCB pattern (PDF download) [11111202] (Free)
Items relevant to "A Closer Look at the RCWL-0516 3GHz Motion Module":
  • Sample audio for the RCWL-0516 radar module with frequency multiplier (Software, Free)
Items relevant to "Balanced Input Attenuator for the USB SuperCodec, Part 2":
  • USB SuperCodec PCB [01106201] (AUD $12.50)
  • USB SuperCodec Balanced Input Attenuator add-on PCB [01106202] (AUD $7.50)
  • Parts source grid for the USB SuperCodec (Software, Free)
  • USB SuperCodec PCB pattern (PDF download) [01106201] (Free)
  • USB SuperCodec Balanced Input Attenuator add-on PCB pattern (PDF download) [01106202] (Free)
  • USB SuperCodec front panel artwork (PDF download) (Free)
  • Drilling and cutting diagrams for the USB SuperCodec Balanced Input Attenuator (PDF download) (Panel Artwork, Free)
Articles in this series:
  • USB SuperCodec (August 2020)
  • USB SuperCodec (August 2020)
  • USB SuperCodec – part two (September 2020)
  • USB SuperCodec – part two (September 2020)
  • USB SuperCodec – part three (October 2020)
  • USB SuperCodec – part three (October 2020)
  • Balanced Input Attenuator for the USB SuperCodec (November 2020)
  • Balanced Input Attenuator for the USB SuperCodec (November 2020)
  • Balanced Input Attenuator for the USB SuperCodec, Part 2 (December 2020)
  • Balanced Input Attenuator for the USB SuperCodec, Part 2 (December 2020)
Articles in this series:
  • El Cheapo Modules From Asia - Part 1 (October 2016)
  • El Cheapo Modules From Asia - Part 1 (October 2016)
  • El Cheapo Modules From Asia - Part 2 (December 2016)
  • El Cheapo Modules From Asia - Part 2 (December 2016)
  • El Cheapo Modules From Asia - Part 3 (January 2017)
  • El Cheapo Modules From Asia - Part 3 (January 2017)
  • El Cheapo Modules from Asia - Part 4 (February 2017)
  • El Cheapo Modules from Asia - Part 4 (February 2017)
  • El Cheapo Modules, Part 5: LCD module with I²C (March 2017)
  • El Cheapo Modules, Part 5: LCD module with I²C (March 2017)
  • El Cheapo Modules, Part 6: Direct Digital Synthesiser (April 2017)
  • El Cheapo Modules, Part 6: Direct Digital Synthesiser (April 2017)
  • El Cheapo Modules, Part 7: LED Matrix displays (June 2017)
  • El Cheapo Modules, Part 7: LED Matrix displays (June 2017)
  • El Cheapo Modules: Li-ion & LiPo Chargers (August 2017)
  • El Cheapo Modules: Li-ion & LiPo Chargers (August 2017)
  • El Cheapo modules Part 9: AD9850 DDS module (September 2017)
  • El Cheapo modules Part 9: AD9850 DDS module (September 2017)
  • El Cheapo Modules Part 10: GPS receivers (October 2017)
  • El Cheapo Modules Part 10: GPS receivers (October 2017)
  • El Cheapo Modules 11: Pressure/Temperature Sensors (December 2017)
  • El Cheapo Modules 11: Pressure/Temperature Sensors (December 2017)
  • El Cheapo Modules 12: 2.4GHz Wireless Data Modules (January 2018)
  • El Cheapo Modules 12: 2.4GHz Wireless Data Modules (January 2018)
  • El Cheapo Modules 13: sensing motion and moisture (February 2018)
  • El Cheapo Modules 13: sensing motion and moisture (February 2018)
  • El Cheapo Modules 14: Logarithmic RF Detector (March 2018)
  • El Cheapo Modules 14: Logarithmic RF Detector (March 2018)
  • El Cheapo Modules 16: 35-4400MHz frequency generator (May 2018)
  • El Cheapo Modules 16: 35-4400MHz frequency generator (May 2018)
  • El Cheapo Modules 17: 4GHz digital attenuator (June 2018)
  • El Cheapo Modules 17: 4GHz digital attenuator (June 2018)
  • El Cheapo: 500MHz frequency counter and preamp (July 2018)
  • El Cheapo: 500MHz frequency counter and preamp (July 2018)
  • El Cheapo modules Part 19 – Arduino NFC Shield (September 2018)
  • El Cheapo modules Part 19 – Arduino NFC Shield (September 2018)
  • El cheapo modules, part 20: two tiny compass modules (November 2018)
  • El cheapo modules, part 20: two tiny compass modules (November 2018)
  • El cheapo modules, part 21: stamp-sized audio player (December 2018)
  • El cheapo modules, part 21: stamp-sized audio player (December 2018)
  • El Cheapo Modules 22: Stepper Motor Drivers (February 2019)
  • El Cheapo Modules 22: Stepper Motor Drivers (February 2019)
  • El Cheapo Modules 23: Galvanic Skin Response (March 2019)
  • El Cheapo Modules 23: Galvanic Skin Response (March 2019)
  • El Cheapo Modules: Class D amplifier modules (May 2019)
  • El Cheapo Modules: Class D amplifier modules (May 2019)
  • El Cheapo Modules: Long Range (LoRa) Transceivers (June 2019)
  • El Cheapo Modules: Long Range (LoRa) Transceivers (June 2019)
  • El Cheapo Modules: AD584 Precision Voltage References (July 2019)
  • El Cheapo Modules: AD584 Precision Voltage References (July 2019)
  • Three I-O Expanders to give you more control! (November 2019)
  • Three I-O Expanders to give you more control! (November 2019)
  • El Cheapo modules: “Intelligent” 8x8 RGB LED Matrix (January 2020)
  • El Cheapo modules: “Intelligent” 8x8 RGB LED Matrix (January 2020)
  • El Cheapo modules: 8-channel USB Logic Analyser (February 2020)
  • El Cheapo modules: 8-channel USB Logic Analyser (February 2020)
  • New w-i-d-e-b-a-n-d RTL-SDR modules (May 2020)
  • New w-i-d-e-b-a-n-d RTL-SDR modules (May 2020)
  • New w-i-d-e-b-a-n-d RTL-SDR modules, Part 2 (June 2020)
  • New w-i-d-e-b-a-n-d RTL-SDR modules, Part 2 (June 2020)
  • El Cheapo Modules: Mini Digital Volt/Amp Panel Meters (December 2020)
  • El Cheapo Modules: Mini Digital Volt/Amp Panel Meters (December 2020)
  • El Cheapo Modules: Mini Digital AC Panel Meters (January 2021)
  • El Cheapo Modules: Mini Digital AC Panel Meters (January 2021)
  • El Cheapo Modules: LCR-T4 Digital Multi-Tester (February 2021)
  • El Cheapo Modules: LCR-T4 Digital Multi-Tester (February 2021)
  • El Cheapo Modules: USB-PD chargers (July 2021)
  • El Cheapo Modules: USB-PD chargers (July 2021)
  • El Cheapo Modules: USB-PD Triggers (August 2021)
  • El Cheapo Modules: USB-PD Triggers (August 2021)
  • El Cheapo Modules: 3.8GHz Digital Attenuator (October 2021)
  • El Cheapo Modules: 3.8GHz Digital Attenuator (October 2021)
  • El Cheapo Modules: 6GHz Digital Attenuator (November 2021)
  • El Cheapo Modules: 6GHz Digital Attenuator (November 2021)
  • El Cheapo Modules: 35MHz-4.4GHz Signal Generator (December 2021)
  • El Cheapo Modules: 35MHz-4.4GHz Signal Generator (December 2021)
  • El Cheapo Modules: LTDZ Spectrum Analyser (January 2022)
  • El Cheapo Modules: LTDZ Spectrum Analyser (January 2022)
  • Low-noise HF-UHF Amplifiers (February 2022)
  • Low-noise HF-UHF Amplifiers (February 2022)
  • A Gesture Recognition Module (March 2022)
  • A Gesture Recognition Module (March 2022)
  • Air Quality Sensors (May 2022)
  • Air Quality Sensors (May 2022)
  • MOS Air Quality Sensors (June 2022)
  • MOS Air Quality Sensors (June 2022)
  • PAS CO2 Air Quality Sensor (July 2022)
  • PAS CO2 Air Quality Sensor (July 2022)
  • Particulate Matter (PM) Sensors (November 2022)
  • Particulate Matter (PM) Sensors (November 2022)
  • Heart Rate Sensor Module (February 2023)
  • Heart Rate Sensor Module (February 2023)
  • UVM-30A UV Light Sensor (May 2023)
  • UVM-30A UV Light Sensor (May 2023)
  • VL6180X Rangefinding Module (July 2023)
  • VL6180X Rangefinding Module (July 2023)
  • pH Meter Module (September 2023)
  • pH Meter Module (September 2023)
  • 1.3in Monochrome OLED Display (October 2023)
  • 1.3in Monochrome OLED Display (October 2023)
  • 16-bit precision 4-input ADC (November 2023)
  • 16-bit precision 4-input ADC (November 2023)
  • 1-24V USB Power Supply (October 2024)
  • 1-24V USB Power Supply (October 2024)
  • 14-segment, 4-digit LED Display Modules (November 2024)
  • 0.91-inch OLED Screen (November 2024)
  • 0.91-inch OLED Screen (November 2024)
  • 14-segment, 4-digit LED Display Modules (November 2024)
  • The Quason VL6180X laser rangefinder module (January 2025)
  • TCS230 Colour Sensor (January 2025)
  • The Quason VL6180X laser rangefinder module (January 2025)
  • TCS230 Colour Sensor (January 2025)
  • Using Electronic Modules: 1-24V Adjustable USB Power Supply (February 2025)
  • Using Electronic Modules: 1-24V Adjustable USB Power Supply (February 2025)
Items relevant to "Flexible Digital Lighting Controller, part 3":
  • Flexible Digital Lighting Controller main PCB [16110202] (AUD $20.00)
  • Flexible Digital Lighting Controller Micromite Master PCB [16110201] (AUD $5.00)
  • Flexible Digital Lighting Controller CP2102 Adaptor PCB [16110204] (AUD $2.50)
  • Flexible Digital Lighting Controller LED slave PCB [16110205] (AUD $5.00)
  • PIC16F1705-I/P programmed for the Flexible Digital Lighting Controller [1611020A.HEX] (Programmed Microcontroller, AUD $10.00)
  • PIC32MX170F256B-50I/SP programmed for the Flexible Digital Lighting Controller Micromite master [1611020B.hex] (Programmed Microcontroller, AUD $15.00)
  • PIC16F1455-I/P programmed for the Flexible Digital Lighting Controller WS2812 Slave [16110205.HEX] (Programmed Microcontroller, AUD $10.00)
  • Si8751AB 2.5kV isolated Mosfet driver with integral power supply (Component, AUD $10.00)
  • Micromite LCD BackPack V3 complete kit (Component, AUD $75.00)
  • Hard-to-get parts for the Flexible Digital Lighting Controller (Component, AUD $100.00)
  • Flexible Digital Lighting Controller front panel PCB [16110203] (AUD $20.00)
  • Firmware and software for the Fiexible Digital Lighting Controller (Free)
  • Firmware and PC software for the Digital Lighting Controller [1611010A.HEX] (Free)
  • Flexible Digital Lighting Controller mains slave PCB patterns (PDF download) [16110202-3] (Free)
  • Flexible Digital Lighting Controller Master PCB patterns (PDF download) [16110201, 16110204] (Free)
  • Flexible Digital Lighting Controller LED slave PCB pattern (PDF download) [16110205] (Free)
  • Drilling and cutting diagrams for the Flexible Digital Lighting Controller Micromite master (PDF download) (Panel Artwork, Free)
  • Cutting diagram for the Flexible Digital Lighting Controller mains slave rear panel (PDF download) (Panel Artwork, Free)
  • Cutting diagrams and front panel artwork for the Flexible Digital Lighting Controller LED slave (PDF download) (Free)
Articles in this series:
  • Flexible Digital Lighting Controller, part 1 (October 2020)
  • Flexible Digital Lighting Controller, part 1 (October 2020)
  • Flexible Digital Lighting Controller, part 2 (November 2020)
  • Flexible Digital Lighting Controller, part 2 (November 2020)
  • Flexible Digital Lighting Controller, part 3 (December 2020)
  • Flexible Digital Lighting Controller, part 3 (December 2020)
  • Digital Lighting Controller Translator (December 2021)
  • Digital Lighting Controller Translator (December 2021)

Purchase a printed copy of this issue for $10.00.

As described last month, this add-on board for the USB SuperCodec provides two balanced inputs with four attenuation options: 0dB, 10dB, 20dB and 40dB. It will fit in with the SuperCodec itself (in the same instrument case), resulting in a sleek all-in-one recording and measurement instrument. Now let’s get onto building it! Part 2: by Phil Prosser Balanced Input and Attenuator for the USB A ll of the components shown and described in the circuit last month fit on a single PCB which is quite quick and straightforward to build. The wiring to connect the two boards isn’t too difficult to make up either, consisting of one stereo shielded cable and one three-wire DC supply lead. The case end panels also need to be drilled differently than what was described for the original SuperCodec. The first step in assembly is to mount all the main components on the printed circuit board. Before assembling it, if you have an accurate resistance meter, you may wish to measure the 0.1% tolerance resistors and find the best matched sets amongst those you have purchased. However, that is optional. As long as they meet the specified tolerances, the performance of your unit should be close to that of our prototype; it might even exceed ours, if you’re lucky. PCB assembly We have made an effort to use only through-hole components for ease of construction and made the room for relay switching of the attenuators rather than a rotary wafer switch. Before starting construction, you will need to determine your desired input impedance. Review last month's article 68 Silicon Chip and then refer to the parts list to see which parts you will need for your selected option. The add-on board is coded 01106202 and measures 99.5 x 141.5mm. Refer to the overlay diagram, Fig.9, during construction. Start by loading the low-profile components: ferrite beads FB1-FB4 and all resistors. Make sure that the 0.1% types go in the specified locations. Tip: if you can match resistors between the ‘hot’ and ‘cold’ legs of each channel, you will get a useful improvement in common-mode rejection but this may not be possible depending on the resistors you purchase and the accuracy of your ohmmeter. If your ferrite beads are the loose types, feed resistor lead off-cuts through them. Keep them tight on the board, and it’s a good idea to use dobs of neutral cure silicone sealant or similar glue to stop them from moving and rattling. Next, mount all the zener diodes and the 1N4148 signal diodes. Be careful to orientate the diode cathode stripes as shown in Fig.9, as they don’t all face the same way. We have specified 3.9V zeners for ZD3 and ZD4, but any value from 3.3V to about 4.7V should work, as these just establish a protection voltage. Australia’s electronics magazine siliconchip.com.au Now install the electrolytic capacitors, which are also polarised; their longer leads must go into the pads marked with + symbols. The 10µF capacitors must be laid down flat as shown in the accompanying photograph, or selected as very low profile units. This is important, as we will be squeezing this board into the box with the USB interface, ADC and DAC. Next, fit the remaining capacitors (plastic film and ceramic). Remember to use 10µF plastic film capacitors for Because the board is a tight fit in the SuperCodec case, some electrolytics must be installed horizontally, as shown here. Indeed, in some cases, they lie horizontally spaced above other components. siliconchip.com.au the coupling caps if you’ve chosen resistors for a 10kΩ input impedance, or 1µF for a 100kΩ input impedance. These too must be laid over on their sides to clear components on the other board. After that, solder the six NE5532 ICs and eight relays. The IC and relay orientations are critical. All the relays are orientated with pin 1 away from the input connectors, while all the op amps have pin 1 toward the inputs. You can mount the ICs on sockets, but we prefer not to as the contacts can oxidise over time, leading to poor connections. If using sockets, solder them with the orientations shown, then straighten the IC pins and carefully push them fully into the sockets. Mount the connectors next, followed by the input select switch. The two right-angle polarised headers can be soldered from the top side, but it’s a good idea to solder the pins on the bottom too. Follow with the two 6.35mm TRS sockets. Make sure these are the specified low-profile types and that they are fitted snug to the board. Your add-on board should now be finished. The three boards are connected by several cables, which we will now describe. Australia’s electronics magazine December 2020  69                          10F                            10F  The output of the Balanced Input Attenuator board is connected to the USB Sound Card board by a 180mm length of shielded cable. To make this, cut a piece of figure8 shielded cable to 180mm, strip 18mm off the sheath at each end, twist the screen wires together and apply the 2.5mm diameter heatshrink to these. Then put the 5mm heatshrink over each coax line and shrink, as shown in the adjacent photograph. Crimp pins Silicon Chip   Making the internal cables 70          10F 10F Fig.9: use this PCB overlay diagram and the photo below as a guide during construction, to see where the components are mounted on the board. Watch the orientations of IC1-IC6, RLY1RLY8 and all the electrolytic capacitors and diodes. The other parts either only go in one way around, or it doesn’t matter. Make sure to trim all soldered leads close to the underside of the PCB to prevent them shorting against the case later. You may notice that diodes D5-D8 are missing from this photo – they were left off the prototype to verify that they had no effect on performance (they didn't!) but were added later. Constructors should fit all eight diodes (D1-D8) as shown on the component overlay above. on each end and insert them into the 4-way plug as shown opposite. The middle two pins are Earth while the outer two pins are for the signal wires. Preparing the SuperCodec board If you haven’t already built the USB Sound Card board, as per the series of articles in the last three issues, do that now. But note that there are two things you need to do slightly differently when building it: Australia’s electronics magazine siliconchip.com.au The output cable should be 180mm of twin screened coaxial cable. The middle two pins are the shields. 1) Do not mount the two 6x2-pin 2.0mm pitch header sockets on the back of the board for the MCHStreamer. We will instead be soldering pigtailed connectors to these locations, to allow us to mount the MCHStreamer above the USB Sound Card board. 2) When building that board, you need to make sure the voltage regulator that is not mounted on a heatsink is pushed right down onto the PCB, or it might foul the Balanced Input Attenuator board. Having completed that board (minus the MCHStreamer connectors), the next step is to solder a power cable to it, which will plug into the Balanced Input Attenuator board and power it. To do this, take 100mm lengths of red, green and black medium-duty hookup wire and attach them to crimp pins, then push these into the power header, as shown in the photograph below. Red (positive) is at the right-hand end, ground (green) in the middle and black (negative) at the left. Power cable and header for the attenuator board. Sleeve the whole cable in a heatshrink tubing sheath, with around 3cm of each wire protruding, then strip the insulation back by about 5mm on each wire and tin the ends. These bare ends are then soldered to component pads on the SuperCodec PCB. The photo below shows where they go. Check you have the wires in the right spots! The black wire goes to the end of the corner-most 10Ω resistor that is closest to the board edge; the red wire goes to the same end of the adjacent 10Ω resistor; the green to the end of the adjacent 5.6kΩ resistor that is furthest from the board edge. Once you’ve done this, double-check that the wires go into the appropriate positions on the plastic block at the other end; otherwise, there will be trouble when you plug it in later. sible to fit the Balanced Input Attenuator in the same case. Rather than plugging the MCHStreamer directly onto the SuperCodec board, is connects via two 12-way plugs that connect to the board via sets of 12 flying leads. The plugs with attached leads should have come with the MCHStreamer unit. To prepare them, measure and cut the pigtail wires to 50mm (5cm), as shown in the photo. The MCHStreamer is supplied with pre wired headers. Trim the leads to 50mm as shown. We need to keep these as short as practicable. Cut all the attached wires to this length and strip, twist and neatly tin 5mm at the ends. Note that while the plugs supplied have black wires on one side and red on the other, they will plug in either way around, and while there is a ground pin on one side, most of the pins carry signals. So it isn’t critical which way around you solder them. The best approach to soldering these to the sets of twelve pads on the PCB is to stand the connector vertically and looking from above, solder the inside row of wires to the outside row of holes in the PCB. We will be plugging this to the top of the MCH Streamer, which will swap the inside and outside rows of wires, as shown in the following photos. Connecting the MCHStreamer The next step is to connect the MCHStreamer to the SuperCodec board, but we are doing it differently than for the standalone USB SuperCodec. Otherwise, it is impos- When plugged into the headers the MCHStreamer ought to sit as shown above. A tight fit but without stressing parts. We need to solder the power cable to the main PCB as shown. Try to hook the wires around the resistor leads and keep things tidy! siliconchip.com.au With the two cables soldered in place, present the MCHStreamer to the pigtailed headers and fold them as shown in the photo. The result is somewhat tight, but does fit inside the box. At this stage, it’s worth checking both PCBs to make sure that you trimmed all component leads neatly. If you’ve left Australia’s electronics magazine December 2020  71 any long, they could interfere with, and possibly short out against the case once inserted into it. There is adequate room below the USB Sound Card to accommodate normal lead lengths; you should not have any problems provided you are tidy. Testing Before inserting everything in the case, it’s a good idea to make sure it’s all working. If you haven’t already tested the USB SuperCodec board in isolation, do it per the instructions in the third SuperCodec article. This will also involve installing the MCHStreamer drivers and getting it working on your computer. Power down the SuperCodec board and plug the power connector from the SuperCodec PCB into the three-pin header on the Balanced Input Attenuator board (CON3). Then use the length of shielded cable with plugs on either end you prepared earlier to connect the audio output of the Attenuator (CON4) to the audio input on the USB Sound Card (also CON4). For the outputs, make up a twin shielded cable with RCA chassis connectors on one end and a 4-pin polarised plug on the other, as per the final SuperCodec article (if you haven’t already). Plug this into CON5. Make sure the whole rig Fig.10: this shows the sizes and shape    of the front & rear panels (front panel at the bottom), and where to cut or drill holes in them. The 3mm hole below the 7.5mm hole only needs to go partway through the inside of the panel. The ventilation holes shown in red are optional, but do help to keep the internal components at a reasonable temperature in hotter environments, so are recommended. When soldering the MCHStreamer connector to the board, the red and black rows of wires need to cross over as shown. 72 Silicon Chip is resting on a non-conductive surface, and nothing can short to anything else before proceeding. Now would be a good time to check, using a continuity tester, that the +9V and -9V rails on the two boards are connected the right way around and not swapped. Check for 0V continuity between the boards at the same time. Then, with the MCHStreamer plugged into the USB sound card, plug in the 12V supply to power the whole assembly up. Assuming it passes the “smoke test”, verify that all the supply rail voltages are still correct. You would have tested these with the SuperCodec alone already, but a fault on the Balanced Input Attenuator board could cause them to be wrong now. Assuming they’re OK, check that the attenuator relays work; each time switch S1 is moved, it should generate a nice click from the relays. Then plug the whole device into your computer and repeat the output test that you carried out earlier. Check that the USB Sound Card generates a signal when you play sound or music. If this does not work, check that there are no faults on the Balanced Input Attenuator board and check the wiring thoroughly. We have not changed this part of the USB Sound Card, so it should still work fine. Now launch your recording or analysis software (Audacity will work for basic testing). Set the input attenuator to 0dB, apply an audio signal of no more than 1V RMS to Australia’s electronics magazine siliconchip.com.au Modifying your prebuilt SuperCodec Fig.11: if you drilled the ventilation holes on the rear panel, you should also drill some holes towards the front of the bottom panel, as shown here. These allow cool air to be drawn in via convection, which flows along and cools the two boards before exiting through the holes at the top of the rear panel. one of the balanced inputs (eg, using a test oscillator) and check that it is received undistorted in the correct channel (left or right). If you don’t have a test oscillator, you can rig up some cables to loop the USB Sound Card’s outputs back to the balanced inputs and play a test tone. If you do this, remember to set the output level no higher than -8dB to avoid overloading the inputs. If that checks out, switch to the -10dB setting and verify that the input level drops appropriately. If your test oscillator level can go higher, increase it to a maximum of 3V RMS and confirm that you get undistorted near-full-scale input signals. You can also check the -20dB and -40dB settings and verify that the input level drops appropriately, but the waveform shape remains undistorted. Drilling the front and rear panels As mentioned earlier, we are using the same case that was used for the basic USB Sound Card. However, because we’ve had to pack an extra board in, the boards mount to the front and rear panels differently. The revised drilling details are in Fig.10. You can copy/print this and use it as a template, or you can measure with a ruler and mark out the hole locations on the panels. If you have already drilled the panels for the basic USB Sound Card, it is not hard to cut and make new panels from an aluminium sheet of a suitable thickness. You can achieve a high-quality finish by sanding with 400 grit paper after making the holes, then spraying the panels with satin finish black paint. Cut and finish the metal panels as shown in Fig.10. The 3mm “hole” below the switch hole on the front panel (7.5mm in diameter) does not need to be drilled through; it is there to hold the locking pin on the switch. Note the series of holes on the rear panel shown in red; these are for venting hot air and help to lower the operating temperature of the internal components by around 5°C. These are necessary due to the extra internal dissipation siliconchip.com.au If you already built the SuperCodec USB Sound Card and have soldered the headers to the back of the PCB, it is possible to still add the Balanced Input Attenuator, but it’s tricky. Removing the two throughhole headers is not as simple as it sounds. We did it on our prototype, but note that this procedure is for advanced builders wishing for a little excitement! You will need a hot air gun set to about 290°C, a pair of pliers and a steady hand. Set the USB Sound Card on edge and grip the first 12-pin header with the pliers. Heat the solder side of this connector with the air gun, from a distance of about 10mm, and gently wriggle the connector with the pliers. Observe the solder connections and adjust your heating until you see some, then all pins moving in the PCB. At this point, gently pull the connector out while continuing to heat, ensuring that all pins are free to come out. Do not use force! Then use a solder sucker to clean the holes up, ready for the MCHStreamer connector wires. due to the Balanced Input Attenuator board. You could opt not to drill these if you are never going to operate the device at higher ambient temperatures (ie, if it will always be used in an air-conditioned room). But as they are on the rear panel, they are unobtrusive, and it’s generally better to keep the components as cool as possible. Similarly, we have prepared a bottom panel drilling diagram (Fig.11) which shows the location of some extra holes in that panel. Combined with the holes on the rear panel, these provide some convective cooling to drop that temperature. If you’re going to drill one set of holes, you should drill both, or they will not be effective. When finished, install the rubber foot on the front panel as shown in Fig.10 to ensure that the USB Sound Card is held snug against the rear panel. We cut the chamfer of the top of the foot to ensure that the rubber foot fully pushes the PCB back into the case. Then do a test assembly and make sure everything fits OK. Get used to the jiggling required to get things in. Final assembly Assembly is pretty straightforward. Slip the bottom panel off the case, and slide the USB Sound Card in the top slot with the components facing to the bottom panel. The MCHStreamer should already be plugged to the USB Sound Card. Attach the MCHStreamer to the rear panel using an M3 crinkle/star washer, TO-220 bush and fibre or plastic washer. The bush and insulating washer are to ensure that it is insulated from the rear panel, as described in the USB Sound Card article. Make sure the bezel is in place (omitted in photo). You can now put the four screws into the rear panel. Then mount the output connectors as described in the USB Sound Card article. Again, make sure they are insulated from the case. Attach the Earth screw and solder tags as described in the USB Sound Card article, and solder the 10nF capacitor between the Earth tag and ground of the output connector. Australia’s electronics magazine December 2020  73 Assembly is tight, but with the cable lengths recommended allows the balanced attenuator to slide out sufficient to allow the output and power connectors to be plugged in. Watch for the cables snagging on parts on the Codec main board though. The MCHStreamer is fixed to the rear panel using an insulating bush kit. Don't forget this! Plug the 18cm cable that goes between the USB Sound Card input and Balanced Attenuator output into CON4 on the SuperCodec board. Now slot the Balanced Attenuator into the bottom slot, with its components facing towards the USB Sound Card. As you slide it in, pull out the power cable and audio cable that run between the cards and plug them into the Balanced Input Attenuator power connector and output connector. You will need to jiggle things to make sure that the cables do not foul between the two boards. Trust us; it will fit! Ensuring that the rubber foot is stuck to the front panel as shown in the drawing (Fig.10), push the front panel bezel into place. You then need to slide the bottom panel on. After that, push the 6.35mm sockets and switch through the front panel and screw these tight with the provided mounting A view with the bottom panel off during assembly. Next comes the Balanced Attenuator and base plate. 74 Silicon Chip kits. You can now put the four screws into the front panel. At this point, you should be ready to go! Making some test leads If you’re primarily building the Balanced Input Attenuator so that you can make recordings from equipment with balanced outputs, chances are you already have suitable cables. You may need to purchase (or make) some XLR to TRS adaptor cables, to allow you to plug XLR equipment into the inputs. These are readily available and usually not too expensive; for example, Altronics Cat P0750. For audio equipment and distortion testing, though, you will probably want a set of cables with alligator clips on one end and TRS jacks on the other. This provides you with maximum flexibility to connect to the ends of various components in audio gear as needed. The process of building leads is open to your needs and imagination. We will show our approach, but this is by no means the only way. We used 90° “stereo” TRS 6.35mm jacks to get the cables out of the way of the attenuation switch. Strip 25mm off the ends of the balanced (twin-core shielded) cable. Also, strip First extend the Hot, Cold and Screen of the leads, then cover with two layers of heat-shrink to make a robust test lead. Australia’s electronics magazine siliconchip.com.au Test programs for your PC TIP (hot) RING (cold) SLEEVE [or BODY] (screen) Connnections to the 6.35mm stereo plug. We have used the "TRS" naming standard, although you will often see "TRB" used instead. It doesn't matter: the sleeve IS the body! 10mm off each of the inner conductors. Strip 10mm off each end of short lengths of red, green and black hookup wires, and twist and solder these to the balanced cable as shown. Then slip 20mm length of 3mm heatshrink over the solder joints and shrink them down. Now take two 40mm lengths of 6-8mm diameter heatshrink tubing and shrink these over the junction of the cables. We used thin cable; you may need to use larger diameter heatshrink here. Then take two 60mm lengths of tubing and put these over the top as a strain relief. This will give you a secure connection and minimise the likelihood of wire fatigue. The next step is to connect alligator clips of your preference to the red, black and green wires. Start by slipping the rubber covers over the wires first, so you don’t forget them! Then slip a 15mm length of 3mm heatshrink over the cable. Strip off an appropriate length of insulation; for the Jaycar clips, this is about 6mm. Solder and trim off any daggy bits, then crimp the metal strain relief tabs, right at the end of the clip, over the wire. For extra protection, slip the heatshrink down the wire and over the metal strain relief and shrink. Slide the covers over the clips, and these are done! The 6.35mm jacks are similar, just much larger. Don’t forget to slip the covers onto the cable first! Follow with 30mm of 3mm diameter heatshrink as a final cover for the cable (we used thin cable, you may need to use larger diameter tubing). We put some heatshrink over the alligator clip to cable transition to act as strain relief, then slid the rubber boot over the lead. siliconchip.com.au We have used AudioTester 3.0 for testing a lot of different audio gear. This is available as shareware, and a paid subscription is available. It is good but not perfect. You need to select the ASIO interface for playback and record, and also 192kHz for the sampling rate. You can download it from www.audiotester. de/download.htm One problem we’ve noted with AudioTester is that its THD+N readings seem off, especially with test signals well below or above 1kHz. We prefer to use it to measure THD only, and SNR only, then compute the THD+N reading as the RMS sum of the two figures. It appears to do a good job of computing THD, but you need to be careful to use a test signal that isn’t too far below the maximum that the device can accommodate. Otherwise, the resulting harmonics can be so low that they are unmeasurable or severely quantised, and you get an artificially low distortion reading. One alternative that we have used, but not as much, is ARTA. Many people seem to like this software. You can get it from www.artalabs.hr We stripped about 15mm of insulation off the cable, and applied about 8mm of 2mm heatshrink to the Earth screen. Check the connections for the solder lugs to the Tip, Ring and Sleeve. The tip is Hot (red), the ring is Cold (black) and the sleeve is ground (green). Solder these on. If you intend to use this for testing amplifiers, the connector and cable will see the full amplifier output voltage in some cases. Make sure that all connections are secure and that clearances of no less than 1mm are present and secure. Do not use these on mains voltage, in any circumstances! Final testing With the case all put together, power the unit back up, plug it back into your computer and verify that everything still works as before. If it doesn’t, you may have a short circuit somewhere, or forgot to plug something back in when you put it all in the case. If you are recording from a professional audio source, plug this in and set the attenuator level to 10dB, and you are all set. SC Our finished lead. Yes, when constructing the prototype we found we had run out of green clip covers – at least the lead is green! Australia’s electronics magazine December 2020  75