Silicon ChipUSB Power Injector - October 2004 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Australia's future energy options
  4. Feature: The Humble “Trannie” Turns 50 by Kevin Poulter
  5. Review: Stressless Wireless by Peter Smith
  6. Feature: Epson’s Latest Micro-Flying Robot by Silicon Chip
  7. Project: SMS Controller, Pt.1 by Peter Smith
  8. Project: RGB To Component Video Converter by Jim Rowe
  9. Feature: This new PICAXE-08M is a wee ripper! by Stan Swan
  10. Review: The Amateur Scientist 2.0 by Peter Smith
  11. Project: USB Power Injector by Jim Rowe
  12. Project: Remote Controller For Garage Doors & Gates by Oatley Electronics
  13. Vintage Radio: Those troublesome capacitors, Pt.1 by Rodney Champness
  14. Back Issues
  15. Book Store
  16. Advertising Index
  17. Outer Back Cover

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

You can view 22 of the 104 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:
  • Amateur Radio (November 1987)
  • Amateur Radio (November 1987)
  • Amateur Radio (December 1987)
  • Amateur Radio (December 1987)
  • Amateur Radio (February 1988)
  • Amateur Radio (February 1988)
  • Amateur Radio (March 1988)
  • Amateur Radio (March 1988)
  • Amateur Radio (April 1988)
  • Amateur Radio (April 1988)
  • Amateur Radio (May 1988)
  • Amateur Radio (May 1988)
  • Amateur Radio (June 1988)
  • Amateur Radio (June 1988)
  • Amateur Radio (July 1988)
  • Amateur Radio (July 1988)
  • Amateur Radio (August 1988)
  • Amateur Radio (August 1988)
  • Amateur Radio (September 1988)
  • Amateur Radio (September 1988)
  • Amateur Radio (October 1988)
  • Amateur Radio (October 1988)
  • Amateur Radio (November 1988)
  • Amateur Radio (November 1988)
  • Amateur Radio (December 1988)
  • Amateur Radio (December 1988)
  • Amateur Radio (January 1989)
  • Amateur Radio (January 1989)
  • Amateur Radio (April 1989)
  • Amateur Radio (April 1989)
  • Amateur Radio (May 1989)
  • Amateur Radio (May 1989)
  • Amateur Radio (June 1989)
  • Amateur Radio (June 1989)
  • Amateur Radio (July 1989)
  • Amateur Radio (July 1989)
  • Amateur Radio (August 1989)
  • Amateur Radio (August 1989)
  • Amateur Radio (September 1989)
  • Amateur Radio (September 1989)
  • Amateur Radio (October 1989)
  • Amateur Radio (October 1989)
  • Amateur Radio (November 1989)
  • Amateur Radio (November 1989)
  • Amateur Radio (December 1989)
  • Amateur Radio (December 1989)
  • Amateur Radio (February 1990)
  • Amateur Radio (February 1990)
  • Amateur Radio (March 1990)
  • Amateur Radio (March 1990)
  • Amateur Radio (April 1990)
  • Amateur Radio (April 1990)
  • Amateur Radio (May 1990)
  • Amateur Radio (May 1990)
  • Amateur Radio (June 1990)
  • Amateur Radio (June 1990)
  • Amateur Radio (July 1990)
  • Amateur Radio (July 1990)
  • The "Tube" vs. The Microchip (August 1990)
  • The "Tube" vs. The Microchip (August 1990)
  • Amateur Radio (September 1990)
  • Amateur Radio (September 1990)
  • Amateur Radio (October 1990)
  • Amateur Radio (October 1990)
  • Amateur Radio (November 1990)
  • Amateur Radio (November 1990)
  • Amateur Radio (December 1990)
  • Amateur Radio (December 1990)
  • Amateur Radio (January 1991)
  • Amateur Radio (January 1991)
  • Amateur Radio (February 1991)
  • Amateur Radio (February 1991)
  • Amateur Radio (March 1991)
  • Amateur Radio (March 1991)
  • Amateur Radio (April 1991)
  • Amateur Radio (April 1991)
  • Amateur Radio (May 1991)
  • Amateur Radio (May 1991)
  • Amateur Radio (June 1991)
  • Amateur Radio (June 1991)
  • Amateur Radio (July 1991)
  • Amateur Radio (July 1991)
  • Amateur Radio (August 1991)
  • Amateur Radio (August 1991)
  • Amateur Radio (September 1991)
  • Amateur Radio (September 1991)
  • Amateur Radio (October 1991)
  • Amateur Radio (October 1991)
  • Amateur Radio (November 1991)
  • Amateur Radio (November 1991)
  • Amateur Radio (January 1992)
  • Amateur Radio (January 1992)
  • Amateur Radio (February 1992)
  • Amateur Radio (February 1992)
  • Amateur Radio (March 1992)
  • Amateur Radio (March 1992)
  • Amateur Radio (July 1992)
  • Amateur Radio (July 1992)
  • Amateur Radio (August 1992)
  • Amateur Radio (August 1992)
  • Amateur Radio (September 1992)
  • Amateur Radio (September 1992)
  • Amateur Radio (October 1992)
  • Amateur Radio (October 1992)
  • Amateur Radio (November 1992)
  • Amateur Radio (November 1992)
  • Amateur Radio (January 1993)
  • Amateur Radio (January 1993)
  • Amateur Radio (March 1993)
  • Amateur Radio (March 1993)
  • Amateur Radio (May 1993)
  • Amateur Radio (May 1993)
  • Amateur Radio (June 1993)
  • Amateur Radio (June 1993)
  • Amateur Radio (July 1993)
  • Amateur Radio (July 1993)
  • Amateur Radio (August 1993)
  • Amateur Radio (August 1993)
  • Amateur Radio (September 1993)
  • Amateur Radio (September 1993)
  • Amateur Radio (October 1993)
  • Amateur Radio (October 1993)
  • Amateur Radio (December 1993)
  • Amateur Radio (December 1993)
  • Amateur Radio (February 1994)
  • Amateur Radio (February 1994)
  • Amateur Radio (March 1994)
  • Amateur Radio (March 1994)
  • Amateur Radio (May 1994)
  • Amateur Radio (May 1994)
  • Amateur Radio (June 1994)
  • Amateur Radio (June 1994)
  • Amateur Radio (September 1994)
  • Amateur Radio (September 1994)
  • Amateur Radio (December 1994)
  • Amateur Radio (December 1994)
  • Amateur Radio (January 1995)
  • Amateur Radio (January 1995)
  • CB Radio Can Now Transmit Data (March 2001)
  • CB Radio Can Now Transmit Data (March 2001)
  • What's On Offer In "Walkie Talkies" (March 2001)
  • What's On Offer In "Walkie Talkies" (March 2001)
  • Stressless Wireless (October 2004)
  • Stressless Wireless (October 2004)
  • WiNRADiO: Marrying A Radio Receiver To A PC (January 2007)
  • WiNRADiO: Marrying A Radio Receiver To A PC (January 2007)
  • “Degen” Synthesised HF Communications Receiver (January 2007)
  • “Degen” Synthesised HF Communications Receiver (January 2007)
  • PICAXE-08M 433MHz Data Transceiver (October 2008)
  • PICAXE-08M 433MHz Data Transceiver (October 2008)
  • Half-Duplex With HopeRF’s HM-TR UHF Transceivers (April 2009)
  • Half-Duplex With HopeRF’s HM-TR UHF Transceivers (April 2009)
  • Dorji 433MHz Wireless Data Modules (January 2012)
  • Dorji 433MHz Wireless Data Modules (January 2012)
Items relevant to "SMS Controller, Pt.1":
  • ATmega8515 programmed for the SMS Controller (Programmed Microcontroller, AUD $15.00)
  • ATmega8515 firmware and source code for the SMS Controller (Software, Free)
  • SMS Controller PCB pattern (PDF download) [12110041] (Free)
Articles in this series:
  • SMS Controller, Pt.1 (October 2004)
  • SMS Controller, Pt.1 (October 2004)
  • SMS Controller, Pt.2 (November 2004)
  • SMS Controller, Pt.2 (November 2004)
Items relevant to "RGB To Component Video Converter":
  • RGB to Component Video Converter PCB pattern (PDF download) [07209041] (Free)
  • RGB to Component Video Converter front and rear panel artwork (PDF download) (Free)
Items relevant to "USB Power Injector":
  • USB Power Injector PCB pattern (PDF download) [07110041] (Free)
  • USB Power Injector panel artwork (PDF download) (Free)
Articles in this series:
  • Those troublesome capacitors, Pt.1 (October 2004)
  • Those troublesome capacitors, Pt.1 (October 2004)
  • Those troublesome capacitors, Pt.2 (November 2004)
  • Those troublesome capacitors, Pt.2 (November 2004)

Purchase a printed copy of this issue for $10.00.

USB Power Injector By JIM ROWE Do you have a new USB-powered peripheral like a scanner that needs more power than can be drawn from the socket on your PC or USB hub? Here’s a little gadget that will solve your problem. It allows you to feed extra power into the USB line, controlled automatically by the PC – so your new peripheral will be turned on and off just as if it were being powered directly by the PC. 68  Silicon Chip E ACH USB SOCKET of a PC or self-powered USB (Universal Serial Bus) hub can supply up to 500mA at 5V DC, which can be used to power many USB peripherals directly. That’s one of the advantages of USB and many of the newer peripherals are designed to be powered in this way. Many low-cost USB hubs are also designed to take their own power from the PC, via their “upstream” USB cable. That’s fine in most cases, as the hub’s internal circuitry only needs a few tens of milliamps to operate. However, things start to get a little more complicated if you try to connect a number of bus-powered USB peripherals to your PC via such a hub, because the hub’s “downstream” output sockets can each only supply a maximum of 100mA. That’s because siliconchip.com.au Fig.1: the USB Power Injector is essentially a switch and a 5V regulator. The Vbus supply from USB socket CON1 turns on transistor Q1 which then turns on Mosfet Q2. This then feeds unregulated DC to REG1 which in turn supplies 5V to the downstream USB socket CON2. all of their power must ultimately come from the PC itself, of course. What happens if you have one of these hubs already powering say, three USB powered peripherals and then you buy a USB-powered scanner or label printer that needs to draw more than 100mA? Ah, that is a problem. Luckily it’s easily solved; all you need is the USB Power Injector described here. It’s designed to be connected in series with the USB cable to your new peripheral and also to a 9V AC or DC plugpack. When it detects 5V DC coming from the PC and/or hub, it switches power from the plugpack through to a builtin 5V regulator, to provide your new peripheral with its own 5V power at up to 500mA. All of the components used in the USB Power Injector are mounted directly on a very small PC board, which fits snugly inside a small jiffy box. How it works Looking at the circuit diagram of Fig.1, power from the external plugpack comes in via socket CON3 and then passes through diodes D1-D4. These provide rectification for an AC plugpack or automatic polarity corsiliconchip.com.au rection for a DC plugpack. Either way, a DC voltage of between 8V and 14V (or thereabouts) appears across the 1000µF reservoir capacitor. CON1 is a USB “Type B” socket, used as the Injector’s “upstream” or input port. It connects back to one of the USB output/downstream ports of your PC or hub, via a standard USB cable. Both of the data lines of CON1 are connected directly to the corresponding pins of CON2, a USB “Type A” socket which is the Injector’s output/downstream port. This connects to your new USB peripheral via another standard USB connecting cable, so the Injector is fully transparent in terms of USB data communication. USB data can pass straight through the Injector in either direction, between PC and peripheral and vice-versa. When the PC is powered down though, power from the plugpack is not able to flow through to the peripheral because P-channel power MOSFET Q2 is connected in series and it is normally turned off. When the PC is turned on, +5V appears at pin 1 of CON1 and this switches on transistor Q1 via a 22kΩ base resistor. Q1 then switches on Q2, which becomes a very low resistance, about 0.1Ω. This feeds the unregulated DC voltage across the 1000µF capacitor through to REG1, a 7805 +5V regulator which now provides +5V to pin 1 of CON2 and your peripheral device. LED1 is used to provide “power on” indication. LED1 is fed via the 820Ω series resistor from the switched DC at the input to REG1, so it’s only illuminated when the Injector’s power is switched on by Q2. The 10µF and 100nF capacitors are included to ensure stable operation of REG1, while diode D5 is to protect it from reverse-voltage damage when the power is turned off. Although REG1 has very little heatsinking, it should be able to power virtually any USB-powered peripheral which draws no more than the maximum drain of 500mA. Construction All the components used in the USB Power Injector (apart from the plugpack) are mounted directly on a small PC board. This measures 76 x 46mm and is coded 07110041. The artwork (Fig.3) for the PC board has rounded cutouts in each corner, allowing it to fit snugly in one of the smallest UB-5 jiffy boxes (83 x 54 October 2004  69 Fig.2: follow this component overlay to assemble the PC board. Don’t get Q2 and REG1 mixed up – they look the same! x 31mm). It’s supported inside the box by four 9mm long M3 tapped spacers, using four countersink 6mm x M3 screws through the bottom of the box and another four round-head Parts List 1 PC board, code 07110041, 76 x 46mm 1 plastic utility box, UB-5 size (83 x 54 x 31mm) 1 USB socket type B, PC-mount (CON1) 1 USB socket type A, PC-mount (CON2) 1 2.5mm concentric LV power socket (CON3) 4 M3 tapped spacers, 9mm long 6 M3 x 6mm machine screws, round head 4 M3 x 6mm machine screws, countersink head Fig.3: check your PC board carefully against this full-size etching pattern before installing any of the parts. 6mm x M3 screws through the PC board itself. Rectangular holes are cut in the narrow ends of the box to provide access to the two USB connectors (CON1 and CON2), while a 3mm round hole is drilled in the end next to CON2, to allow LED1 to protrude. Similarly, a 9mm hole is drilled in one of the longer sides of the box, to allow access to power input connector CON3. The locations of all box holes are shown in Fig.4. The component overlay diagram for the PC is shown in Fig.2 and you can cross-check this with the internal photo. Fit the low-profile resistors and diodes first, taking care with the diode polarity as usual. Then fit the capacitors, taking care with the polarity of the 10µF and 1000µF capacitors. Note that the larger capacitor mounts over on its side, to make sure there is clearance between it and the box lid – see photograph below. Next, fit the three connectors. The two USB connectors are different in terms of their pin layout, so make sure you fit them in their correct positions. You may need to elongate the holes for their attachment lugs slightly with a jeweller’s file, before the connectors will fit down against the board. The last components to fit are the TO-92 transistor Q1, LED1 and the two TO-220 devices Q2 and REG1. Make sure you don’t swap the latter Semiconductors 1 7805 5V regulator (REG1) 1 PN100 NPN transistor (Q1) 1 IRF9540 P-channel MOSFET (Q2) 1 3mm green LED (LED1) 5 1N4004 diodes (D1-D5) Capacitors 1 1000µF 16V PC electrolytic 1 10µF 25V tantalum 1 100nF (0.1µF) multilayer monolithic (code 104 or 100n) Resistors (0.25W 1%) 1 22kΩ 2 10kΩ 1 820Ω 70  Silicon Chip The PC board is mounted inside the case on four M3 x 9mm tapped spacers and secured using machine screws. Note how the 1000µF electrolytic capacitor is mounted. siliconchip.com.au The power indicator LED protrudes through a hole in the end of the case, adjacent to the USB output socket (CON2). devices, as this may cause one or both of them to be damaged. Both devices mount flat down against the top of the board, with a 6mm x M3 machine screw and nut used to hold them down and also provide a small amount of heatsinking. Make sure also that you fit LED1 with its “flat” side towards connector CON2 and its longer anode lead further away. The LED leads are soldered in place with the body about 11mm above the board and they are then bent down at right angles about 4mm above the board, so the body can protrude through the matching hole in the end of the box. Once you have made the necessary holes in the UB-5 box (including the countersunk holes in the bottom, for the PC board mounting screws), the completed board assembly can be mounted in the box using the 9mm M3 tapped spacers. Fig.4: this diagram shows the drilling and cutout details for the plastic case that’s used to house the board assembly. Checkout time There are no adjustments or setup needed on the completed USB Power Injector and very little in the way of testing. All you need do is connect the output of a 9V DC or AC plugpack to CON3 and confirm that indicator LED1 doesn’t light until you also connect CON1 to a downstream USB port on your PC or USB hub. If the LED then turns on and off when the PC is itself turned on and off, this confirms that it’s working correctly. All siliconchip.com.au Fig.5: this front panel label can be cut out and attached to the lid of the case. It can be protected using wide strips of clear adhesive tape. that remains is to screw on the lid of the UB-5 box and fit the cover plugs – although you might also want to stick on a dress label as well, to finish the job. The artwork for a suitable label is SC shown in Fig.5. October 2004  71