Silicon ChipAutomated PCB Assembly for Home Constructors - August 2021 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Productivity Commission report on the Right to Repair
  4. Feature: Advanced Medical & Biometric Imaging – Part 1 by Dr David Maddison
  5. Project: Second Generation Colour Maximite 2 – Part 1 by Geoff Graham & Peter Mather
  6. Feature: Automated PCB Assembly for Home Constructors by Geoff Graham
  7. Feature: The History of Op Amps by Roderick Wall & Nicholas Vinen
  8. Project: Nano Pong using an 8-pin PIC by Tim Blythman
  9. Serviceman's Log: Rocking Raucous Retro Roland Repair by Dave Thompson
  10. Project: Multi-Purpose Battery Manager by Tim Blythman
  11. Product Showcase
  12. Feature: El Cheapo Modules: USB-PD Triggers by Jim Rowe
  13. Project: Simple Linear MIDI Keyboard by Tim Blythman
  14. PartShop
  15. Vintage Radio: Bush VTR103 AM/FM radio by Ian Batty
  16. Market Centre
  17. Advertising Index
  18. Notes & Errata: Ultra-LD MK.4 Amplifier, July-August 2015
  19. Outer Back Cover

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

You can view 39 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:
  • Advanced Medical & Biometric Imaging – Part 1 (August 2021)
  • Advanced Medical & Biometric Imaging – Part 1 (August 2021)
  • Advanced Imaging - Part 2 (September 2021)
  • Advanced Imaging - Part 2 (September 2021)
Items relevant to "Second Generation Colour Maximite 2 – Part 1":
  • Second-generation Colour Maximite 2 PCB [07108211] (AUD $15.00)
  • Colour Maximite 2 software and documentation (Free)
  • Second-generation Colour Maximite 2 PCB pattern (PDF download) [07108211] (Free)
Articles in this series:
  • Second Generation Colour Maximite 2 – Part 1 (August 2021)
  • Second Generation Colour Maximite 2 – Part 1 (August 2021)
  • Second Generation Colour Maximite 2 – Part 2 (September 2021)
  • Second Generation Colour Maximite 2 – Part 2 (September 2021)
Items relevant to "Nano Pong using an 8-pin PIC":
  • Nano TV Pong PCB [08105212] (AUD $2.50)
  • PIC12F1572-I/SN programmed for Nano TV Pong [0810521B.HEX] (Programmed Microcontroller, AUD $10.00)
  • Nano TV Pong short form kit (Component, AUD $17.50)
  • Firmware for Nano TV Pong (Software, Free)
  • Nano TV Pong PCB pattern (PDF download) [08105212] (Free)
Items relevant to "Multi-Purpose Battery Manager":
  • Battery Manager Soft Switch PCB [11104211] (AUD $5.00)
  • Battery Manager I/O Expander PCB [11104212] (AUD $2.50)
  • Battery Multi Logger PCB [11106201] (AUD $5.00)
  • PIC32MX170F256B-I/SO programmed for the Battery Manager [1110620B.hex] (Programmed Microcontroller, AUD $20.00)
  • PIC16F1455-I/SL programmed for the Microbridge [2410417A.HEX] (Programmed Microcontroller, AUD $10.00)
  • DS3231MZ real-time clock IC (SOIC-8) (Component, AUD $8.00)
  • DS3231 real-time clock IC (SOIC-16) (Component, AUD $7.50)
  • 2.8-inch TFT Touchscreen LCD module with SD card socket (Component, AUD $25.00)
  • SMD resistor - 15mΩ ±1% M6332/2512 3W (CRA2512-FZ-R015ELF or similar) (Source component, AUD $2.00)
  • Matte/Gloss Black UB3 Lid for 2.8-inch Micromite LCD BackPack (PCB, AUD $5.00)
  • Battery Manager software [1110620B.hex] (Free)
  • Battery Manager Soft Switch PCB pattern (PDF download) [11104211] (Free)
  • Battery Manager I/O Expander PCB pattern (PDF download) [11104212] (Free)
  • Battery Multi Logger PCB pattern (PDF download) [11106201] (Free)
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 "Simple Linear MIDI Keyboard":
  • 64-Key Arduino MIDI Shield PCB [23101211] (AUD $5.00)
  • 8x8 Tactile Pushbutton Switch Matrix PCB [23101212] (AUD $10.00)
  • Simple Linear MIDI Keyboard PCB [23101213] (AUD $5.00)
  • Firmware for the 64-Key Arduino MIDI Matrix (Software, Free)
  • Software for the Arduino MIDI Shield & 8x8 Key Matrix plus 3D keycap model (Free)
  • 64-Key Arduino MIDI Shield PCB pattern (PDF download) [23101211] (Free)
  • 8x8 Tactile Pushbutton Switch Matrix PCB pattern (PDF download) [23101212] (Free)
  • Simple Linear MIDI Keyboard PCB pattern (PDF download) [23101213] (Free)
  • Simple Linear MIDI Keyboard Joiner PCB [23101214] (AUD $1.00)
Articles in this series:
  • Arduino-based MIDI Soundboard - Part 1 (April 2021)
  • Arduino-based MIDI Soundboard - Part 1 (April 2021)
  • Arduino-based MIDI Soundboard – Part 2 (May 2021)
  • Arduino-based MIDI Soundboard – Part 2 (May 2021)
  • Simple Linear MIDI Keyboard (August 2021)
  • Simple Linear MIDI Keyboard (August 2021)

Purchase a printed copy of this issue for $10.00.

By Geoff Graham Professional PCB Assembly If you aren’t confident soldering small SMDs, don’t have time or don’t want to populate your boards with dozens or hundreds of components, there is another option. For a modest fee, you can have your boards professionally assembled using parts that you specify, and in many cases these components will cost just a pittance! O ur first article on the Second Generation Colour Maximite 2 computer (which you can see on page 26 of this issue) mentioned that you could have the PCB professionally assembled. This includes the PCB fabrication, supply of the components and the soldering of these components onto the board. So, how do you get that done? The process is remarkably cheap and easy, even if you only want a couple of boards assembled. For the home constructor, this is a boon as you can now ‘hire’ a machine to assemble a complex board that would be difficult, if not impossible, to put together yourself. You design your PCB using SMD parts as you would normally do, but instruct your PCB design software to generate two extra files: a Bill Of Materials (BOM) and a Component Placement List (CPL). With these files the fabricator has enough information to supply the components and solder them in their correct positions. For a relatively complicated PCB like the one used in the Second Generation Colour Maximite 2, this saves the effort involved in sourcing then tediously soldering over a hundred tiny components. Furthermore, for someone who is not comfortable soldering SMD components, this avoids that issue entirely. It is worth reflecting on how the times have changed. A little over ten years ago, a typical hobby project would be based on a single-sided PCB etched and drilled at home. Even Silicon Chip projects were based on PCBs The assembled prototype PCB for the Second Generation Colour Maximite 2, exactly as received from JLCPCB. It has about 100 components supplied and soldered, with only the large components (connectors, switch etc) to be fitted. siliconchip.com.au Australia's Australia’s electronics magazine August 2021  35 like that. Now, a fabricator will make you a four-layer PCB for the price of a hamburger and then populate it for the price of a six-pack of VB. How great is that? Designing the board Most PCB design software can generate BOM and CPL files. As an example, the designer of the Second Generation Colour Maximite 2 printed circuit board (Peter Mather in the UK) used DesignSpark. This is a free program from RS Components, and it did a great job. To fabricate the prototype Colour Maximite 2 board, we used a company called JLCPCB (https://jlcpcb.com/) in China. There are other companies (mainly in China; there are some in Australia too) who will do the same, so you are not restricted to JLCPCB. Still, we will use them as an example of how you go about getting your own boards populated. We have covered how to design PCBs before, so we will not go over that again. However, to get the fabricator to populate the board, you need to supply one more bit of information to the PCB design software. This is the unique part code assigned by the fabricator to each component. The fabricator needs these numbers to identify the components to load into their pickand-place machines. If you go into the JLCPCB website, there is a link at the top labelled “Resources”, and if you click on that you can then select “SMT Parts Library”. Then you can browse the various categories (Capacitors, Resistors etc) in their catalog, or you can search using a part code or a value. These are all surface mount components (JLCPCB can assemble some through-hole components by “hand soldering”, at an extra cost). When you select a component, it will list the part code used by the fabricator, which, in the case of JLCPCB, is called the “LCSC Part number”. You must then enter this part code into the properties of the component in the PCB design software. You can also search for parts (and find their numbers) at the LCSC website, which is a Chinese component supplier and the sister company of JLCPCB (http://lcsc.com). This is an example of the Bill Of Materials (BOM) file generated by DesignSpark. The fabricator uses this file to associate a component’s reference designator with their part code. An example of the Component Placement List (CPL) file, used by the pick-andplace robots to place the component on the PCB. It lists the part’s designator, the PCB coordinates of the centre of the component, which side of the board to place the part and the orientation (ie, rotation). 36  Silicon Chip Australia’s electronics magazine It’s important to know the capabilities of the manufacturer; JLCPCB’s can be found at https://jlcpcb.com/ smt-assembly For example, they can only perform PCB assembly on boards between 20 x 20mm and 250 x 250mm in size, with a quantity of no more than 50 PCBs. Parts selection There are a few tricks to selecting parts. If the part is not in their catalog or identified as “Not Stocked”, you will have to source and solder that part yourself after receiving the board. This is true of most non-SMD components, including connectors. But do not be put off if you cannot initially find the component that you need. It might be listed in a different package, different temperature specification etc. An extended search often will get you what you need; JLCPCB says that they stock over 80,000 components. As a last resort, it might be easier to redesign your circuit to use something that they do have in stock, for example, a regulator with a different footprint. If you plan to have the Second Generation Colour Maximite 2 board assembled during 2021, you will probably find that the ARM processor and the 32 megabit memory chips are out of stock. This is due to the current semiconductor shortage; all you can do is wait until they come back into stock, then get in quickly before they run out. JLCPCB lists components as being either “basic” or “extended”. Basic parts are always loaded on their pickand-place robots and are ready to be placed onto your PCB. This primarily applies to items like small resistors and capacitors. The extended components are the less common items that are stored in their warehouse. These must be retrieved and loaded on the pick-andplace robot specially for your build, so they attract an additional charge per item (generally a few dollars each). You need to watch out for the extended fee, as it can add up. For example, the Second Generation Colour Maximite 2 board was initially designed using M3216 (3.2 x 1.6mm, imperial 1206) sized resistors, but most of these are listed by JLCPCB as extended parts. Given the number of different resistor values, that would have added over $40 to the board assembly cost. siliconchip.com.au Redesigning the PCB to use the slightly smaller M2012 (2.0 x 1.2mm, imperial 0805) resistors, listed as basic parts eliminated that cost with no difference in functionality. The components supplied by JLCPCB are generally reasonably priced. For example, an M2012/0805 SMD resistor is less than half a cent. The other factor is that there is no wastage; your project might need (for example) one 10W resistor. If you were assembling that at home, you would likely end up purchasing 10 or even 100 to get that single resistor at a reasonable cost. Component Placement Files With the correct part codes entered into the component properties, you can then get your PCB design software to generate the Bill Of Materials (BOM) and Component Placement List (CPL) files. These are spreadsheets, normally in Excel format. Depending on the software, these files might need some reformatting to suit the fabricator’s specifications (eg, adding headers, swapping columns etc). The BOM file is a list of all components, including their description, the reference designator (R21, C1 etc), the component footprint and the fabricator’s part code. The fabricator is really only interested in their part code and the reference designator. The CPL file lists the reference designator, the X and Y coordinates of the component’s centre on the board, the PCB layer that the component is to be placed on and the rotation of the component in degrees. JLCPCB can only populate one side of a PCB, so in our example CPL file that side is the top layer. The PCB is defined by files in the standard Gerber format, and these are the same as you would use if you were only getting a PCB made without the component assembly. You do need to supply the “paste” file (which is used to create the PCB stencil), which has the outlines of the solder paste stencil that is used to deposit solder paste on the pads as required. Most PCB assemblers will add a separate charge to manufacture the PCB stencil. For a four-layer PCB, as used in the Second Generation Colour Maximite 2, there are a total of ten files required to make the PCB, plus the “paste” file. Placing the order JLCPCB requires that you create a siliconchip.com.au login so that you and they can manage your job. You can then upload your Gerber files defining the PCB. That is easy; just drag and drop the ZIP or RAR file containing all the files onto the web page. Following this are multiple options that you can select (solder mask colour, PCB thickness, copper finish etc), but you can leave these at their defaults for most projects (including the CMM2 Gen2). JLCPCB will auto-fill most of the entries based on the Gerber files which is very convenient – but not all manufacturers do this, so take note. At this point, the website will ask you to select which Gerber files represent the various copper layers on your board and the number of boards that you want to be made. If you just want a PCB (without assembly), you are finished. But at the bottom of the web page, there is a button that allows you to select “SMT assembly”. If you choose that, you will be asked how many you want to assemble and who should add the tooling holes. The tooling holes are small holes in the PCB used in the assembly process, and you usually let JLCPCB add them. Clicking “next” will take you to a web page that asks you to upload the BOM and CPL files. Again, this is a simple drag-and-drop operation. Final checks Clicking “next” again will take you to the summary page. This page lists all the components on the board and provides a ‘preview’ of the assembled board. It is vital that you check this thoroughly as it is easy for a mistake to propagate through, and this is the last checkpoint before sending the board off for assembly. For example, you might find some components listed as being out of stock, and this is where you need to go back to the JLCPCB parts list and select something different. You can either go back to your PCB design software to make the change, or you can just manually edit the BOM file and change the part number there. Either way, you will have to upload your files again and recheck the component listing to ensure that all is OK. The final step is to check the preview provided by JLCPCB of the assembled board. This image is very realistic and shows the PCB with its Australia’s electronics magazine solder mask, vias and silkscreen in great detail. The components are photorealistic, with their markings clearly visible, and they should be positioned in their correct location. This image is almost as good as having the final board in your hand, and provides confidence that you will get what you intended. A detailed check of this image is vital, as it can show all sorts of errors that you did not realise existed when you designed the board. The most common is incorrect component orientation. It is possible that the orientation of the component in your PCB footprint will be different from the footprint used by JLCPCB. That can cause polarised components to be reversed, ICs with pin 1 in the wrong place etc. So check every part thoroughly and, if necessary, edit the CPL file to change the orientation parameter for the offending component, then reload the file. The final result With the component list and image checks completed, JLCPCB will present you with a list of the costs that make up the total price for the assembled board. This includes the price for the board itself, fixed setup charges, extended parts charges, the cost of components etc. Of course, the service is more cost-effective if you are getting a reasonable number of boards made, but it is still worthwhile if you only want two boards assembled (their minimum). The cost of our assembled board for the Second Generation Colour Maximite 2 (as shown in the photo) was about $10 for the four-layer PCB, $59 for the components and $19 for assembly (plus postage). These costs are per board, for two boards and in Australian dollars. Since then, the exchange rates and component prices could have changed, so your experience might vary. Given the complexity of the board, we feel that this is a reasonable price, especially considering that everything is supplied and soldered for you. The actual assembly cost was small, and it makes you wonder why you would be bothered soldering a hundred tiny components when you could have it done professionally for the price of one dish at a restaurant. SC August 2021  37