Silicon ChipTouchscreen Digital Preamp with Tone Control – Part 2 - October 2021 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: The chip shortage is now a component shortage
  4. Feature: Detecting Gravitational Waves by Dr David Maddddison
  5. Product Showcase
  6. Project: Tele-com – an intercom using analog phones by Greig Sheridan & Ross Herbert
  7. Project: Two- or Three-Way Stereo Active Crossover – Part 1 by Phil Prosser
  8. Feature: El Cheapo Modules: 3.8GHz Digital Attenuator by Jim Rowe
  9. Project: SMD Test Tweezers by Tim Blythman
  10. Review: PicoScope 6426E USB Oscilloscope by Tim Blythman
  11. Project: Touchscreen Digital Preamp with Tone Control – Part 2 by Nicholas Vinen & Tim Blythman
  12. Review: Solder Master ESM-50WL Cordless Iron by Tim Blythman
  13. Serviceman's Log: Life on the 'bleeding edge' by Dave Thompson
  14. Feature: UT-P 2016 MEMS Woofer by Allan Linton-Smith
  15. Vintage Radio: Reinartz 4-valve reaction radio by Fred Lever
  16. PartShop
  17. Market Centre
  18. Advertising Index
  19. Notes & Errata: Tapped Horn Subwoofer, September 2021; Touchscreen Digital Preamplifier, September 2021; Battery Manager, August 2021; Bush VTR103 AM/FM radio, August 2021; Silicon Labs FM/AM/SW Digital Radio, July 2021; 7-Band Stereo Equaliser, April 2020; CLASSiC DAC, February-May 2013
  20. Outer Back Cover

This is only a preview of the October 2021 issue of Silicon Chip.

You can view 47 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.

Items relevant to "Tele-com – an intercom using analog phones":
  • The Tele-com Intercom PCB (aka OzPLAR) [12110211] (AUD $30.00)
  • The Tele-com Intercom PCB pattern (PDF download) [12110211] (Free)
  • Tele-com front & rear panel 3D printing files (Panel Artwork, Free)
Items relevant to "Two- or Three-Way Stereo Active Crossover – Part 1":
  • Two- or Three-Way Stereo Active Crossover PCB [01109211] (AUD $15.00)
  • Two- or Three-Way Active Crossover PCB patterns (PDF download) [01109211] (Free)
Articles in this series:
  • Two- or Three-Way Stereo Active Crossover – Part 1 (October 2021)
  • Two- or Three-Way Stereo Active Crossover – Part 1 (October 2021)
  • Two- or Three-Way Stereo Active Crossover – Part 2 (November 2021)
  • Two- or Three-Way Stereo Active Crossover – Part 2 (November 2021)
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 "SMD Test Tweezers":
  • SMD Test Tweezers PCB set [04106211+04106212] (AUD $10.00)
  • PIC12F1572-I/SN [0410621A.HEX] or PIC12LF1572-I/SN [0410621C.HEX] programmed for the SMD Test Tweezers (Programmed Microcontroller, AUD $10.00)
  • 64x32 white OLED screen (0.49-inch, 1.25cm diagonal) (Component, AUD $10.00)
  • Improved SMD Test Tweezers kit (Component, AUD $35.00)
  • Firmware for the SMD Test Tweezers [0410621A.HEX] (Software, Free)
  • SMD Test Tweezers PCB patterns (PDF download) [04106211/2] (Free)
Items relevant to "Touchscreen Digital Preamp with Tone Control – Part 2":
  • Touchscreen Digital Preamp PCB [01103191] (AUD $12.50)
  • Touchscreen Digital Preamp ribbon cable/IR adaptor PCB [01103192] (AUD $2.50)
  • PIC32MX170F256B-50I/SP programmed for the Touchscreen Digital Preamp, 2.8in screen version [0110319A.hex] (Programmed Microcontroller, AUD $15.00)
  • PIC32MX170F256B-50I/SP programmed for the Touchscreen Digital Preamp, 3.5in screen version [0110319B.hex] (Programmed Microcontroller, AUD $15.00)
  • Micromite LCD BackPack V3 complete kit (Component, AUD $75.00)
  • Micromite LCD BackPack V2 complete kit (Component, AUD $70.00)
  • Micromite LCD BackPack V1 complete kit (Component, AUD $65.00)
  • Firmware for the Touchscreen Digital Preamp (Software, Free)
  • Touchscreen Digital Preamp PCB patterns (PDF download) [01103191/2] (Free)
Articles in this series:
  • Touchscreen Digital Preamp with Tone Control – Part 1 (September 2021)
  • Touchscreen Digital Preamp with Tone Control – Part 1 (September 2021)
  • Touchscreen Digital Preamp with Tone Control – Part 2 (October 2021)
  • Touchscreen Digital Preamp with Tone Control – Part 2 (October 2021)
Articles in this series:
  • A high-performance MEMS tweeter that’s just 6.7 x 4.7mm! (May 2020)
  • A high-performance MEMS tweeter that’s just 6.7 x 4.7mm! (May 2020)
  • UT-P 2016 MEMS Woofer (October 2021)
  • UT-P 2016 MEMS Woofer (October 2021)

Purchase a printed copy of this issue for $10.00.

Part 2: by Nicholas Vinen & Tim Blythman Touchscreen & Remote Digital Preamp with Tone Controls Our new Digital Preamplifier, introduced last month, combines high audio fidelity with convenience. It provides input switching, volume adjustment, bass/mid/ treble controls via remote control and a colour touchscreen. It can be built as a standalone unit or integrated into a power amplifier. Having explained how it works, now we’ll go through the construction and testing procedures. T his Preamp brings analog & digital circuitry together, giving the best aspects of both. It’s a relatively simple design with excellent audio quality thanks to its analog roots, but it avoids the complexity of the multiple, expensive ICs that would be needed for a purely digital design. It also avoids using mechanical parts that can wear out, like a mostly analog design using a motorised potentiometer. It has a good range of features including a colour touchscreen interface, infrared remote support, a threeband tone control, a wide gain range and four stereo inputs. Last month’s article explained how all of this is achieved using a Micromite LCD BackPack, two quad low-distortion digital potentiometers and a handful of op amps. That article also had all the relevant performance data. Now that we’ve explained how it all works, let’s start on the assembly procedure. Construction The main PCB overlay for the Digital Preamp is shown in Fig.7. This board is coded 01103191 and measures 206 x 53mm (shown rotated). As mentioned last month, we don’t think the bypass relay (RLY4) and its associated components are necessary, so we have shown them greyed out. Instead, we recommend that you fit 76 Silicon Chip two wire links, shown in red. These let the signal pass to the output without RLY4 being fitted. Assembly is pretty straightforward, with just two SMDs on the board (IC6 & IC7). Those parts are quite large, similar in size to a 14-pin DIP IC, and with widely spaced pins are not hard to solder. Start with those two parts. Find their pin 1 markings and make sure they are orientated correctly, then apply flux paste to all the pads, rest the IC on top and tack one pin down. Check that all the pins are correctly aligned over their pads, then solder them. With enough good-quality flux paste on the pads, you can just load your iron with solder and drag it across the pins, and good joints will form. Clean off the flux residue and carefully inspect the joins to ensure they have all formed properly (with the fillet touching both the pins and the pads) and that there are no bridges between adjacent pins. If you find bridges, apply more flux paste and use some solder wick and a fair bit of heat to remove the excess solder. Repeat the cleaning and inspection process to verify all is OK. Now move on to the resistors, but leave off the larger 1W resistors for now. Note that two of the 100W resistors need ferrite beads slipped onto their leads before soldering – see Fig.7. Australia’s electronics magazine Check each batch with a DMM set to resistance mode before fitting them to the board, and you can then fit those two wire links shown in red using resistor lead off-cuts. Next, mount the diodes. All diodes are polarised, so check their cathode stripes against Fig.7 and the PCB silkscreen before soldering them in place. D1-D12 are all BAT42 schottky types, while D13-D15 are standard 1N4148 signal diodes. Follow with zener diode ZD1. Bend REG4’s leads down by 90° about 6mm from its body, insert them into the PCB and then attach its tab to the mounting hole securely using a short machine screw, washer and nut. Once it’s solidly attached and square, solder and trim its leads. Now you can solder op amps IC1-IC5 to the board, ensuring they are orientated correctly. You can instead solder sockets if you prefer; they make swapping op amps easier but can lead to reliability problems long-term. Follow with bridge rectifier BR1, ensuring its + lead (usually longer) goes into the marked hole. Install the two trimpots (both 500W) and then the three relays in a row, RLY1-RLY3. Ensure the stripes on the relays are positioned as shown, as it is possible to install them backwards. Next, mount all the TO-92 package devices. These are transistors Q1-Q3 siliconchip.com.au and Q5-Q7 plus regulators REG1REG3. As there are five different device types in similar packages, be careful to check the markings so that you don’t get them mixed up. Now is a good time to fit all the ceramic capacitors (two different values) and MKT capacitors (five different values). Refer to Fig.7 and the PCB to ensure the right ones go in the correct locations. Then fit the headers for links LK1-LK3 but do not insert the shorting blocks yet. Follow with the DC socket (if you plan to use it) and the 18-pin header, plus the 3-way terminal block, with its wire entry holes facing the outside of the board. If you are going to fit LED1 onboard, do it now, with its longer anode lead soldered to the pad marked “A”. Otherwise, you could mount a header in its place, or solder a twin lead later. Also install the two 10W 1W resistors now. Bend their leads so that they are suspended a few millimetres above the PCB surface to allow air to circulate, as they get pretty hot. As mentioned last month, you could opt to use 2W resistors, or perhaps four 4.7W 1W resistors arranged in pairs and mounted vertically to spread out the heat load. Then fit all the electrolytic capacitors, with their longer positive leads to the pads marked with a + symbol. Note that the two 47μF caps need to have their leads splayed out to fit the pads provided. That just leaves the RCA sockets. The right-angle sockets will have plastic tabs that clip into the holes drilled into the PCB. Once you have pushed siliconchip.com.au them down fully so they are flat on the PCB, solder their leads. You should also push the vertical connectors down fully before soldering the two tabs and central pin on each. Building the BackPack You have the option of using the Micromite BackPack V2 with a 2.8inch colour touchscreen (May 2017; siliconchip.com.au/Article/10652) or the Micromite BackPack V3 with a higher-resolution 3.5-inch touchscreen (August 2019; siliconchip.com. au/Article/11764). The main advantages of the 2.8-inch version are lower power consumption and the fact that it will more easily fit into a slimmer case. The 2.8-inch screen module is 38.5mm tall, while the 3.5-inch screen is 56.5mm tall. A 1RU case is 44.5mm tall, so it would be difficult to fit the 2.8-inch version into one, while fitting the 3.5-inch version would be impossible. A 2RU case would fit either. Regardless, it’s up to you; build the one you prefer based on the instructions published in those previous issues. Assembly is pretty straightforward, especially if you’re making it from a kit, so if you’re an experienced constructor, you probably don’t need instructions. We can supply a kit for either version with the microcontroller pre-programmed with the appropriate software. The 2.8-inch version is available at siliconchip.com.au/ Shop/20/4237 while the 3.5-inch version is at siliconchip.com.au/ Shop/20/5082 Whichever version you purchase, Australia’s electronics magazine Fig.7: rather than fitting RLY4, we suggest you solder short wire links (shown in red) and then omit the other components (in green) including Q4, Q8 and six resistors. This is the tone control bypass circuitry which we found didn’t improve the performance. Also, watch the orientation of the ICs, relays and diodes, especially IC6 and IC7, as they are hard to reverse if you get it wrong. They should have a dot or divot in the corner to indicate pin 1. October 2021  77 make sure to select the right software. If you’re programming the chip yourself (eg, you already have a BackPack), note that there are two versions of the software to suit the two different BackPacks and screens. See the panel on loading the software below for details. Wiring it up Next, we need to make up the cable and adaptors that will connect the BackPack to the Preamp board. The one which attaches to the BackPack also hosts the infrared receiver (see Fig.8). The two adaptors use identical PCBs (coded 01103192 and measuring 12.5 x 45.5mm). Both are fitted with a SIL header socket strip and a box header, but only one has the resistor, capacitor and infrared receiver onboard. This is the one that plugs into the BackPack. Assemble them as shown in the photos and the overlay diagram, Fig.9. Next, you will need to crimp the IDC sockets onto the ribbon cable, as shown in Fig.10. Adjust the length of this cable to suit your installation. Ideally, you should use an IDC crimping tool to do this, such as the Altronics Cat T1540. However, in a pinch, you can do it in a vice (pun intended) with pieces of timber on either side to protect the plastic. Note that some IDC connectors come in three pieces, as shown in our diagram, with a bar on top to clamp the strain relief loop and another part below to press the cable down onto the blades in the socket. But we’ve also seen two-piece connectors with no strain-relief bar, and if you have that type, omit the loops. There are two things to be careful of. Firstly, don’t compress the plastic so much that you break the top-most part of the connector, as that is not hard to do. Secondly, make sure that the pressure is applied evenly, and all the parts of the socket have been fully pressed together (listen for clicks). This is so that the blades all cut through the insulation and make contact with the copper inside. The main cause of failures in these ribbon cables is due to one or more of the blades failing to cut through the insulation fully, leading to open-circuit connections. For some installations, it might be better to crimp the IDC connectors onto opposite sides of the ribbon cable, rather than the same side as shown in Fig.10. You can do it either way, as long as you make sure that the triangle moulded into the IDC socket indicating pin 1 points to the red striped wire in the ribbon cable at either end. Testing You can perform some basic tests on the main board before connecting the ribbon cable to it. Even if you plan to power the final device from a mains transformer, you can use a 12V AC plugpack or dual-tracking bench supply for testing. With links LK1-LK3 open and nothing connected to the board, apply power. Use a voltmeter to probe the pins on the headers for LK1-LK3 closest to the edge of the board, taking care not to accidentally short across the pairs of pins. A convenient ground point for the black probe of the DVM is the mounting screw for REG4. You should get a measurement close to +5.5V for LK1, +12V for LK2 and -12V for LK3. Adjust VR1 until the reading for LK1 is between 5.49V and 5.50V (or as close as you can get). If you can’t achieve that, or either of the other two readings is way off, remove the power and check for faults in the power supply area. Also check the +5V rail, which will Fig.8: this small adaptor circuit makes it easy to wire up the Preamp board to the Micromite LCD BackPack using a ribbon cable with standard IDC connectors crimped at each end. The IR receiver and its supply filter are only fitted to the board at the BackPack end. ► Fig.9: build one Adaptor board with all the components, as shown here (refer to our photos to see how we bent the IR receiver lead to reach the front panel), while the second Adaptor board should only have CON1 & CON2 fitted. One of these Adaptor boards need to be connected to the Micromite BackPack as shown in the lead photo. 78 Silicon Chip Australia’s electronics magazine siliconchip.com.au power the backpack by probing the right-most lead of REG4. It should be between 4.8V and 5.2V. We’ll assume that you have already loaded the software onto the BackPack; if not, unplug it and do so now, using the usual procedure. The panel titled “How to Load the Preamp Software” has some helpful hints. If you can apply 5V power to the BackPack (eg, using a USB cable with JP1 fitted for the V2 or V3 BackPacks), then you can check that the software loads up normally. Press the buttons and step through the screens. Everything should ‘work’; it just won’t do anything without the Preamp board connected. Assuming it all looks good, remove power, wait a minute or so for the capacitors to discharge and place shorting blocks on LK1-LK3. Plug the ribbon cable firmly into the adaptor board without the IR receiver, then plug its SIL socket into CON8, orientated as shown in our photos. Similarly, plug the ribbon cable into the other adaptor board and the BackPack’s I/O header, as shown in our photos. Now is a good time to verify continuity between pin 1, where the header mounts on the BackPack PCB, and on the preamp PCB, right in the corner. This will verify that you haven’t reversed the connections anywhere. It’s a good idea to check all the pins for continuity between the two boards, as this can show up ribbon cable crimping problems or soldering problems. Once you’re satisfied, reapply power to the preamp board and verify that the LCD screen comes alive, and you can switch between Presets 1-4 by pressing the buttons. By default, these select between inputs 1-4, and you should hear soft clicks coming from the relay(s) each time you switch inputs. Next, adjust VR2 to get exactly half the 5.5V rail voltage at pin 5 of IC4 (ie, very close to 2.75V if your 5.5V supply is spot on). Now it’s time to connect the Preamp’s outputs to an amplifier with its volume wound down, and one of the stereo inputs to a signal source such as a Blu-ray player or MP3 player. Select that input by pressing the associated preset button on the screen. This should pass the signal through moreor-less unaltered, although it might be somewhat attenuated. Start the signal source and slowly wind the amplifier volume up to confirm that you can hear the audio passing through the Preamp. Ensure it is not overly distorted and that both channels are present; otherwise, you probably have a circuit fault. If it seems OK, try adjusting the volume using the on-screen controls, and check that switching to another input effectively mutes the signal. You can also now go into the EQ settings screen and try adding some bass/ mid/treble boost or cut, to verify that those sections of both channels are operating correctly. Remote control Now is also a good time to test out the remote control, if you plan to use one. The Jaycar XC3718 should ‘just work’ while the Altronics A1012A needs to be set to Aux preset 0776 (see its manual for details on how to do that). Point the remote at the IR receiver and check the following functions: • Volume up/down should change the audio level, and you should get a large on-screen display to show you the new volume level (see Screen 9); the popup only shows on the MAIN screen • The mute button should toggle the mute function; since the Jaycar remote lacks a mute button, the play/pause button operates this function • The CH UP and CH DN keys can be used to tweak the band settings after first selecting a band using buttons 7 (bass), 8 (mid-range) or 9 (treble) ► siliconchip.com.au Australia’s electronics magazine Fig.10: here is one way to assemble the ribbon cable. You can also put the IDC connectors on opposite sides of the cable if it suits your installation better; just make sure that the pin 1 triangle marking on each socket points to the red striped wire in the cable. Also be careful to crimp the connectors properly (firmly) without doing it so hard that you shatter the plastic. October 2021  79 How to Load the Preamp Software Loading the software As you might expect with the option to run the software on either a 2.8in or 3.5in display, there are two different HEX files. The MMBasic software is written to work with both but requires different display drivers. If you have a blank chip, use a PIC programmer or the onboard Microbridge to load the appropriate HEX file, as this is less effort than loading MMBasic and then loading the program separately. None of these choices exclude you from accessing and tweaking the MMBasic program to customise it. The HEX file is named “0110319A Preamp 2.8in.hex” for the 2.8in display or “0110319B Preamp 3.5in.hex” for the 3.5in display. If you have a pre-programmed PIC from the Silicon Chip Shop, you will not need to load any software, and the program will start on power-up. You will have specified whether you need the 2.8in or 3.5in display variant at the time of ordering. Loading the software from scratch If you are building the Preamp with the 2.8in display, you simply need to configure the Micromite to work with that screen. From the console, enter the following commands: OPTION LCDPANEL ILI9341, LANDSCAPE, 2, 23, 6 and for the touch panel: OPTION TOUCH 7, 15 Then calibrate the touch panel using the same parameters as we have in our HEX file: GUI CALIBRATE 0, 143, 293, 893, 685 If the above calibration is not accurate, you can simply run: GUI CALIBRATE ... to perform a full manual touch calibration. • Number keys 1-6 should select one of the six presets Final wiring After mounting the unit in the case, all that’s left is to wire up the power supply – assuming you aren’t using the onboard barrel socket. If you have a transformer with a single secondary, wire it between either pins 1 & 2 or 2 & 3 of CON6. If it has twin secondaries, connect them in series in-phase and then wire the junction to pin 2 of CON6 and the other ends to pins 1 & 3, either way around. Similarly, if it’s a centre-tapped secondary, connect the tap to pin 2 and the other wires to pins 1 & 3. If you have a source of ±15V DC, wire the rails to pins 1 & 3 of CON6 either way around, with GND to pin 2. If you are building the Preamp into a full amplifier, connect RCA plug leads to the amp module inputs and plug them into the vertical outputs (CON4 & CON5) on the board. You should be ready to rock’n’roll – or whatever takes SC your fancy! And for the 3.5in display Since the Micromite firmware does not include a driver for the ILI9488 touch controller in the 3.5in panel, a separate library file needs to be loaded to provide that feature and activate it when the Micromite starts up. Load the “ILI9488 Library.bas” file onto the Micromite using MMEdit or your preferred serial terminal program. Enter the following commands at the Micromite prompt: LIBRARY SAVE CPU RESTART OPTION TOUCH 7, 15 GUI CALIBRATE 0, 3891, 3851, -1277, -860 Again, you can simply use the GUI CALIBRATE command without parameters if you find our calibration doesn’t match your hardware. At this stage, you will have a Micromite loaded with an appropriate display driver, which you can test with the GUI TEST LCDPANEL and GUI TEST TOUCH commands. Screen 9: we showed photos of most of the screen displays last month, but here’s one we didn’t show: the large volume number shown when you adjust the volume via the remote control. It’s large enough to see across a room. Each step equates to about one-third of a decibel. The MMBasic file The MMBasic file is designed to work with either display driver; indeed, any display with a similar or higher resolution to the 2.8in display should work, although we can’t vouch for the scaling on other screens that we haven’t tested. This file also contains an abridged version of the above notes in comments near the start of the file. Simply load the “Digital Preamp.bas” file using MMEdit or your serial terminal program and run it from the MMBasic prompt. You should be greeted by the MAIN screen and the sound of relays clicking as the Digital Preamp initialises. The initial condition has input one connected with nominal midpoint (all zeroes) volume, preamplifier and tone control settings. This corresponds to modest gain across all bands. At this stage, the Micromite is in the same state as if it were loaded with the HEX file as described earlier. 80 Silicon Chip Australia’s electronics magazine In this screen, you can adjust the tone control and preamplification settings and see how the Preamp's frequency response will be affected. siliconchip.com.au The updated Altronics A1012A Univeral Remote Altronics has recently updated their A1012 Universal remote control to a newer model, the A1012A (siliconchip.com.au/link/ab9m). We have used the A1012 to control our projects for many years now (along with some contemporary Jaycar remotes). This new model has some minor changes compared to the earlier version, which affect how it works with the Digital Preamp. While the design, styling, and button layout have changed, many button functions are the same. The six device buttons near the top have changed too, with the CD and VCR buttons being replaced by DVD and HD buttons. The setup process for the A1012A is similar to the older A1012. You select one of the devices using its button near the top, press the SET button, then enter a code. The A1012A uses four-digit codes, while the A1012 used threedigit codes. A glance through the codes list for both devices shows at least a partial correspondence between the two units. For example, we often use AUX code 171 for Micromite projects. The testing we did a few years ago showed that this setting produces distinct codes that are consistently detected by MMBasic’s inbuilt IR decoder. In the A1012 code list, this code is shown as third in the list for several manufacturers. When we referred to the A1012A’s code list and tried the third code for the same manufacturers, we found that it gave the same codes and thus worked with our Digital Preamp. So AUX code 0776 on the A1012A is a good substitute for AUX code 171 on the A1012. We haven’t exhaustively tested all the buttons, but it certainly worked for all the functions we tried. Over the last few years, we’ve created a few projects that use A1012 TV codes 089 and 170. It appears that TV codes for the A1012A don’t correspond one-to-one to those of the A1012, presumably due to newer TVs evolving and having more features. Still, we found that the codes 0088, 0149 and 0169 were suggested for TVs on the A1012A’s code list that would have required TV codes 089 and 170 on the A1012. So we tested these codes with an Arduino board that we had equipped with an infrared receiver (see siliconchip.com.au/Article/11196 for the hardware we used). The codes that we received were all identical to those used for the A1012, so it appears that these remotes are mostly interchangeable, and probably only differ in the more obscure codes. So, if you are updating any Micromite projects from the A1012 to the A1012A, we suggest using AUX code 0776. Other projects we have published that make use of the A1012 include: • Currawong Valve Amplifier, November 2014 to January 2015 (siliconchip.com.au/Series/277) • High Visibility GPS Clock, December 2015 & January 2016 (siliconchip.com.au/Series/294). • Preamp and Input Selector, March, April & September 2019 (siliconchip.com.au/Series/333 & siliconchip.com. au/Article/11917). • Altronics MegaBoxes, December 2017 & December 2019 (siliconchip.com.au/Series/322). All of these use the TV codes mentioned above, so they should work fine with the A1012A programmed with TV codes 0088, 0149 or 0169. Note that the Jaycar Cat AR1975 “Total Contol 4 Device TV Remote Control” is similar to the Altronics A1012A in many ways, and we will likely use that in future projects where their small XC3718 remote cannot be used (eg, due to having just 21 buttons, which was enough for this Preamp). Remote control code map: A1012 AUX 171 TV 089 or TV170 siliconchip.com.au A1012A AUX 0776 TV 0088, TV 0149 or TV 0169 Australia’s electronics magazine Silicon Chip Binders REAL VALU E AT $19.50 * PLUS P&P Are your copies of SILICON CHIP getting damaged or dog-eared just lying around in a cupboard or on a shelf? Can you quickly find a particular issue that you need to refer to? Keep your copies safe, secure and always available with these handy binders These binders will protect your copies of SILICON CHIP. They feature heavy-board covers, hold 12 issues & will look great on your bookshelf. H 80mm internal width H SILICON CHIP logo printed in gold-coloured lettering on spine & cover Silicon Chip Publications PO Box 139 Collaroy Beach 2097 Order online from www. siliconchip.com.au/Shop/4 or call (02) 9939 3295 and quote your credit card number. *See website for delivery prices. October 2021  81