Silicon ChipUSB Power Adaptor - May 2025 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Using WinCompose for typing special symbols
  4. Feature: Digital Scent and Taste by Dr David Maddison, VK3DSM
  5. Project: Versatile Battery Checker by Tim Blythman
  6. Feature: Electronex 2025 by Noel Grey (AEE)
  7. Project: Tool Safety Timer by Phil Prosser
  8. Project: RGB LED Analog Clock by Nicholas Vinen
  9. PartShop
  10. Project: USB Power Adaptor by Nicholas Vinen
  11. PartShop
  12. Review: RNBD451 Bluetooth LE Module by Tim Blythman
  13. Feature: Precision Electronics, Part 7: ADCs by Andrew Levido
  14. Subscriptions
  15. Serviceman's Log by Various
  16. Vintage Radio: Emerson 888 mini-mantel set by Ian Batty
  17. Market Centre
  18. Advertising Index
  19. Notes & Errata: Pico/2/Computer, April 2025; Surf Sound Simulator, November 2024
  20. Outer Back Cover

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

You can view 54 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 "Versatile Battery Checker":
  • Versatile Battery Checker PCB [11104251] (AUD $5.00)
  • PIC16F18146-I/SO programmed for the Versatile Battery Checker [1110425A.HEX] (Programmed Microcontroller, AUD $10.00)
  • 1.3-inch blue OLED with 4-pin I²C interface (Component, AUD $15.00)
  • 1.3-inch white OLED with 4-pin I²C interface (Component, AUD $15.00)
  • Versatile Battery Checker kit (Component, AUD $65.00)
  • Versatile Battery Checker front panel [11104252] (PCB, AUD $7.50)
  • Versatile Battery Checker firmware (Software, Free)
  • Versatile Battery Checker PCB pattern (PDF download) [11104251] (Free)
  • Versatile Battery Checker panel drilling diagram (Panel Artwork, Free)
Items relevant to "Tool Safety Timer":
  • Tool Safety Timer PCB [10104251] (AUD $5.00)
  • PIC16F15214-I/P programmed for the Tool Safety Timer [1010425A.HEX] (Programmed Microcontroller, AUD $10.00)
  • Tool Safety Timer firmware (Software, Free)
  • Tool Safety Timer PCB pattern (PDF download) [10104251] (Free)
  • Tool Safety Timer panel artwork & drilling diagrams (Free)
Items relevant to "RGB LED Analog Clock":
  • RGB LED 'Analog' Clock PCB (19101251) (AUD $15.00)
  • PIC16F18146-I/SO programmed for the RGB LED 'Analog' Clock [1910125A.HEX] (Programmed Microcontroller, AUD $10.00)
  • BZ-121 miniature GNSS receiver (Component, AUD $30.00)
  • RGB LED 'Analog' Clock kit (Component, AUD $65.00)
  • RGB LED 'Analog' Clock firmware (Software, Free)
  • RGB LED 'Analog' Clock PCB pattern (PDF download) (19101251) (Free)
Items relevant to "USB Power Adaptor":
  • USB Power Adaptor PCB [18101251] (AUD $2.50)
  • USB Power Adaptor kit (Component, AUD $10.00)
  • USB Power Adaptor PCB pattern (PDF download) [18101251] (Free)
Articles in this series:
  • Precision Electronics, Part 1 (November 2024)
  • Precision Electronics, Part 2 (December 2024)
  • Precision Electronics, part one (January 2025)
  • Precision Electronics, Part 3 (January 2025)
  • Precision Electronics, part two (February 2025)
  • Precision Electronics, Part 4 (February 2025)
  • Precision Electronics, Part 5 (March 2025)
  • Precision Electronics, part three (March 2025)
  • Precision Electronics, part four (April 2025)
  • Precision Electronics, Part 6 (April 2025)
  • Precision Electronics, Part 7: ADCs (May 2025)
  • Precision Electronics, part five (May 2025)
  • Precision Electronics, part six (June 2025)

Purchase a printed copy of this issue for $13.00.

USB Power Adaptor Project by Nicholas Vinen This simple and cheap PCB provides an easy way to add a USB socket to a 5V DC powered device. It accepts a Type-C or mini/micro Type-B socket and provides optional reverse power flow/reverse polarity protection and LED power indication. I wanted to add a USB socket to my RGB LED Clock (the article just before this one) for power, but I couldn’t fit one near the PCB edge as it is totally occupied with LEDs. Horizontal USB connectors won’t work if placed in the middle of the board. Tim Blythman suggested I mount the socket on a small, separate PCB and suggested that it could have other uses. Hence this project. To make the board as flexible as possible, I have placed four different USB socket footprints on this tiny 12.7 × 26.5mm board. You can attach the very common SMD mini Type-B socket, one of two readily available micro Type-B sockets or one of two fairly standard Type-C sockets. Use whichever suits your needs. The resulting 5V DC is available on a set of four pads in the middle of the PCB. These allow a two-way pin header to be fitted in eight orientation and polarity combinations. This is especially handy if you’re mounting this PCB to another one via a pin header, as you can choose which direction the USB socket will face (north, south, east or west) regardless of the header polarity. You don’t have to attach this board to another one; you can solder a pair of wires, or a header and use jumper wires. In fact, it’d be a convenient way to feed 5V to a breadboard from a computer or USB charger. If using a micro Type-B socket, you can choose one with or without through-hole mounting pins; the PCB will accept either. Having said that, we’ve specified the type with pins in the parts list as it is easier to mount and more secure once soldered. Similarly, for USB Type-C, you can use a six-pin power-only socket or a 12-pin power-plus-data socket (the data pins are not connected). The circuit is very simple, as shown 78 Silicon Chip in Fig.1. You can use a 1A or 3A schottky diode for D1, or a 0W resistor (shown as a dashed link shorting D1 out). USB connectors are polarised, so in theory, you don’t need D1 for reverse-polarity protection. Its main purpose is to prevent power from feeding back into the USB power source if the target board is separately powered. So whether you fit D1 or a 0W resistor will depend on whether that is possible in your application. If you’re wiring up the USB cable yourself, or if its forward voltage is irrelevant (eg, the target board immediately reduces it to 3.3V with a low-dropout regulator), you may still want to fit D1 for reverse polarity protection. You don’t need to fit the LED and its series resistor if you don’t need a power-on indicator. As for the other two resistors, they are only required if you are fitting a USB Type-C socket, to signal to the power source to supply 5V. For Type-B sockets, you can just leave them off. Construction Depending on which socket you are using, follow the relevant overlay diagram: Fig.2(a) for USB-C power only, Fig.2(b) for USB-C power and data, Fig.2(c) for mini-B or Fig.2(d) for micro-B. All other required or optional components are shown fitted. If you don’t need LED1, leave it and the resistor on the opposite side of the board off. If you don’t need D1, replace it with the 0W resistor. Start by fitting the USB socket. It will make soldering easier if you spread a thin layer of flux paste over all the pads for your particular socket before you place it on the board. Only the USB-C power-only socket lacks locating posts; the others should snap into place and you can then tack one pin and check that all the pins are Australia's electronics magazine Fig.1: the four possible USB sockets are wired in parallel and it has provision for the two 5.1kW pull-down resistors needed for a Type-C socket to receive 5V. D1 prevents power flowing back into the USB socket, while LED1 provides power-on indication. siliconchip.com.au From left-toright: the Mini USB, USB-C & Micro USB versions. aligned. For the USB-C power-only socket, you’ll have to position it by eye initially. Remelt that initial solder joint and nudge it until its six relatively large leads are over their pads. Add a bit more flux paste over the remaining leads and then solder them. Once those leads have been soldered, you can solder the mechanical mounting pins or tabs. The USB-C power+ data socket is designed for 1mm-thick PCBs, which is why we’ve specified this board that way. Otherwise, its mounting tabs won’t go all the way through the board. You may need to turn your iron up a bit while soldering the mechanical mounting tabs as the USB socket case will draw heat away from them. Turn it back down when you’ve finished. Most sockets have pins that are closely spaced, so it’s likely you will have some bridges between them now. If you do, add some more flux paste and then press solder-wicking braid down on them with the tip of your soldering iron. Wait for the solder to flow, then slide the braid away from the pins. It should remove the excess solder and leave behind nice-­looking joints. Now is a good time to clean off any flux residue, either with a specialised flux remover, isopropyl alcohol or methylated spirits. Then inspect the board under magnification and good light. Verify that all the USB socket solder joints are good. If not, add some more flux paste and rework them, either by adding more solder or removing excess solder with the wicking braid. If you fitted either of the USB-C sockets, you’ll now need to install the two side-by-side 5.1kW resistors. Without them, you may not get power. Now move on to diode D1. If fitting it, make sure it’s orientated as shown. Otherwise, replace it with the siliconchip.com.au 0W resistor, so there is a path for current to flow from the USB socket to CON3/CON4. If you want the power indicator LED, solder it now. It is also polarised. The best way to do this is to use a DMM set on diode test mode to probe the ends of the LED until it lights up. The black probe will be touching the cathode when it does, so that is the side you solder to the pad marked K on the PCB. If fitting this LED, don’t forget its series resistor; otherwise, it can be left off. That just leaves pin header CON3/ CON4. There are two + symbols shown in two corners; the other corner pads are ground (ie, negative). There are four possible positions that you can solder a two-pin header here, on either side of the board. Whichever one you choose, one of its pins will go to a pad marked with a + symbol. So choose the location that gives your required polarity (if it matters). Fig.2 shows four of the possible locations for that header. Alternatively, Fig.2: follow the appropriate overlay diagram for the socket you are using. All show D1 and LED1 fitted but you can replace the former with a 0# resistor or wire link, or omit the latter, if you want. The presence and location of CON3/ CON4 will also depend on your requirements. Australia's electronics magazine May 2025  79 Parts List – USB Power Adaptor 1 1mm-thick black double-sided PCB coded 18101251, 12.7 × 26.5mm 2 5.1kW M3216/1206 SMD resistors (only required for Type-C USB sockets) 1 0W M3216/1206 SMD resistor/link Pick one of these sockets: 1 SMD Type-C USB power-only socket (CON1) [GCT USB4135 or equivalent] 1 SMD Type-C USB 2.0 socket (CON2) [GCT USB4105 or equivalent] 1 SMD mini Type-B socket (CON5) [Molex 0675031020 or equivalent] 1 SMD micro Type-B socket (CON6) [GCT USB3080-30-01-A or equivalent] Optional parts 1 2-pin header (CON3/CON4) 1 SS14 (1A), SS34 (3A) or equivalent schottky diode, DO-214AC (D1) 1 M3216/1206/SMA SMD LED plus 5.1kW M3216/1206 SMD resistor (LED1) simply solder two wires to these pads, one to a pad marked + and the other to an unmarked (ground) pad. The accompanying photo shows the USB Power Adaptor fitted with a Type-C socket mounted on our RGB LED Analog Clock (presented earlier in this issue) using CON3. That position was chosen as it matched the polarity of the power header on the Clock PCB. Testing Plug your assembled board into a USB power supply and use a DVM to check the output at CON3/CON4. If you connect the red probe to a + pad and the black probe to one of the other two, you should get a reading of about +5V, or +4.7V if you fitted D1 rather than a 0W resistor or wire link. If you get nothing, check that your supply is on and that diode D1 is orientated correctly or linked out. If you fitted LED1, it should light up. If you can measure voltage but it isn’t on, it may be backwards or have a bad solder joint. Also check the series resistor’s solder joints. All that’s left is to wire this up or solder it to your target board, apply power and check that it works. Make sure you get the output connection polarity right! Note that the final version of the PCB fixes a couple of minor problems with the prototype ones shown in the photos. It’s a little bit shorter so the plugs can reach the sockets more easily, the USB-C 2.0 connector has four solder pads to secure the shell rather than two, and the micro-B footprint was improved to make it easier to solder and more secure. The power + data version of the USB-C Power Adaptor. We didn’t have a 0W resistor on hand so used a piece of wire instead. Using it Besides the RGB LED Analog Clock, some of our recent projects that this board could potentially be used with include: • Coin Cell Emulator (December 2023; siliconchip.au/Article/16046) • TQFP Programming Adaptors (October 2023; siliconchip.au/Article/ 15977) • Eight Small LED Christmas Ornaments (November 2020; siliconchip. au/Article/14636) • Dual-Channel Breadboard PSU (December 2022; siliconchip.au/ Series/401) In some cases, the connection would be made via the ICSP (in-­ circuit serial programming) header, which has VDD and GND pins next to each other, suitable for connection SC to CON3/CON4 on this board. One of the USB-C versions of the Power Adaptor attached to our new RGB LED Clock. USB Power Adaptor Kit (SC7433, $10.00) Includes everything in the parts list – and a choice of one USB socket from: 1. USB-C power only 2. USB-C power+data 3. mini Type-B 4. micro Type-B. 80 Silicon Chip Australia's electronics magazine siliconchip.com.au