Silicon ChipMINI LEDRIVER - September 2023 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Subscriptions: PE Subscription
  4. Subscriptions
  5. Back Issues: Hare & Forbes Machineryhouse
  6. Publisher's Letter: Super-accurate analogue clock
  7. Feature: We both have truths, are mine the same as yours? by Max the Magnificent
  8. Feature: The Fox Report by Barry Fox
  9. Feature: Net Work by Alan Winstanley
  10. Project: GPS-Synchronised Analogue Clock by Geoff Graham
  11. Project: MINI LEDRIVER by Tim Blythman
  12. Project: Wide-Range OHMMETER by Phil Prosser
  13. Feature: Make it with Micromite by Phil Boyce
  14. Feature: Max’s Cool Beans by Max the Magnificent
  15. Feature: AUDIO OUT by Jake Rothman
  16. Feature: Circuit Surgery by Ian Bell
  17. Feature: Electronic Building Blocks by Julian Edgar
  18. PCB Order Form
  19. Advertising Index

This is only a preview of the September 2023 issue of Practical Electronics.

You can view 0 of the 72 pages in the full issue.

Articles in this series:
  • (November 2020)
  • Techno Talk (December 2020)
  • Techno Talk (January 2021)
  • Techno Talk (February 2021)
  • Techno Talk (March 2021)
  • Techno Talk (April 2021)
  • Techno Talk (May 2021)
  • Techno Talk (June 2021)
  • Techno Talk (July 2021)
  • Techno Talk (August 2021)
  • Techno Talk (September 2021)
  • Techno Talk (October 2021)
  • Techno Talk (November 2021)
  • Techno Talk (December 2021)
  • Communing with nature (January 2022)
  • Should we be worried? (February 2022)
  • How resilient is your lifeline? (March 2022)
  • Go eco, get ethical! (April 2022)
  • From nano to bio (May 2022)
  • Positivity follows the gloom (June 2022)
  • Mixed menu (July 2022)
  • Time for a total rethink? (August 2022)
  • What’s in a name? (September 2022)
  • Forget leaves on the line! (October 2022)
  • Giant Boost for Batteries (December 2022)
  • Raudive Voices Revisited (January 2023)
  • A thousand words (February 2023)
  • It’s handover time (March 2023)
  • AI, Robots, Horticulture and Agriculture (April 2023)
  • Prophecy can be perplexing (May 2023)
  • Technology comes in different shapes and sizes (June 2023)
  • AI and robots – what could possibly go wrong? (July 2023)
  • How long until we’re all out of work? (August 2023)
  • We both have truths, are mine the same as yours? (September 2023)
  • Holy Spheres, Batman! (October 2023)
  • Where’s my pneumatic car? (November 2023)
  • Good grief! (December 2023)
  • Cheeky chiplets (January 2024)
  • Cheeky chiplets (February 2024)
  • The Wibbly-Wobbly World of Quantum (March 2024)
  • Techno Talk - Wait! What? Really? (April 2024)
  • Techno Talk - One step closer to a dystopian abyss? (May 2024)
  • Techno Talk - Program that! (June 2024)
  • Techno Talk (July 2024)
  • Techno Talk - That makes so much sense! (August 2024)
  • Techno Talk - I don’t want to be a Norbert... (September 2024)
  • Techno Talk - Sticking the landing (October 2024)
  • Techno Talk (November 2024)
  • Techno Talk (December 2024)
  • Techno Talk (January 2025)
  • Techno Talk (February 2025)
  • Techno Talk (March 2025)
  • Techno Talk (April 2025)
  • Techno Talk (May 2025)
  • Techno Talk (June 2025)
mini By Tim Blythman LE river This small, low-cost module can drive relatively large 12V white LEDs from a USB or 5V DC power source. Sometimes you don’t need a floodlight; a modest amount of light is enough, and the Mini LED Driver is an economical way to deliver it. I n the June 2023 issue, we featured some 70W LED panels that are incredibly bright when run at their maximum power (around 6A <at> 12V). But those panels can still be handy when run at lower currents; they generate quite a bit of light even at 1A/12W, and there are plenty of other white LEDs out there which are designed to run at around 10W. This Mini LED Driver is perfect for them. The main motivation behind it is to safely power 12V LED panels from a 5V DC source. If you’re like us, you have many spare USB power supplies or power banks that can be pressed into service to supply 5V. This Mini LED Driver can deliver enough current to drive most white LEDs to provide a good light level. If they’re large panels, like the 70W types, then they are so under-driven that their lifespan will be significantly extended due to reduced heat production. The Mini LED Driver is based around the commonly-available, low-cost boost modules using the XL6009 IC, but it adds a few extra features. Those modules don’t have inbuilt current ­limiting except for short-­circuit protection; our added circuitry provides an adjustable current limit. In the June 2023 High-power Buckboost LED Driver article, we explained why it’s preferable to run LEDs from a current-limited source. In brief, simply providing a fixed voltage to LEDs will not give consistent light output. Minor voltage variations can cause disproportionately large changes in current, perhaps even enough to damage the LEDs. The current limiting feature we’ve added will also protect the input 28 supply, particularly if you’re using a small USB power supply to power LEDs that would draw too much current for it to handle at full brightness. The other feature the Mini LED Driver adds is a low input voltage cutout. This avoids the possibility that the boost module does not perform correctly with a low input voltage. Also, if the power comes from a battery, it will prevent excessive discharging of the battery, which could damage it. The XL6009 boost module Numerous DC/DC converter modules are available. They come in two main types – boost and buck – although some modules combine both capabilities. The buck types reduce the incoming voltage to a lower level. In contrast, buck/boost designs like the Altronics Z6337 (see the photo opposite) contain two controller ICs (and duplicate many other parts) and can either reduce or increase the incoming voltage. These types of module are effectively a boost and buck module combined. But for this project, we’re specifically using dedicated boost type modules. These modules have a small PCB that includes a switchmode boost controller IC, a minimum of passive components, plus a trimpot to set the output voltage. The input and output connections are simply solder pads. There are many different ‘XL6009’ module designs floating around, and they do not all perform the same. So, to ensure that you get the correct type, use one with the following specification: n 49x23mm module that uses the XL6009 (LM2577 equivalent) boost regulator IC. n Input is 3-32V, output is 5-35V at up to 4A continuous. n Efficiency up to 96%, switching frequency 400kHz. n Output voltage is adjusted using a multi-turn trimpot. n The input and output DC connections are made via pads in the corner of the PCB. n The version we used has a red PCB, a single inductor and SMD electrolytic capacitors in metal cans. Note that there are at least two other red PCB versions, both with two inductors, plus others with blue PCBs. We haven’t tested them all so it’s best to stick to the version shown above. n We r e c o m m e n d e B a y i t e m s 253022096489 or 253958534625; or from AliExpress you can use: https://bit.ly/pe-sep23-alx1 or https://bit.ly/pe-sep23-alx2 (option ‘XL6009 Red’). We have used modules based on the MT3608 IC for some previous projects. In those cases, the module is soldered directly to another PCB and treated as Features and Specifications ∎ Can drive 12V LEDs or LED panels from a 5V DC supply (eg, USB) ∎ Adjustable output current and voltage, up to 1A/20V ∎ Small and low in cost ∎ Input up to 4A/20V, subject to boost module capacity Practical Electronics | September | 2023 Mini LED Driver Fig.1: the Mini LED Driver circuit has two main sections. The first section provides the low-voltage cut-out function, using transistors Q2-Q4 and associated passives. The second samples the current between the boost module and the output at CON3 and injects a signal back into the boost module after diode D1 to limit the output current to a more-or-less fixed level. though it were just another component, much like the Mini LED Driver. The Arduino-based Programmer for DCC Decoders (October 2019) similarly used such a module to derive 12V power from a 5V USB supply. In that case, 12V was needed to correctly power and program the DCC decoders. For the Mini LED Driver, we have chosen a different boost module. The XL6009 IC makes it more capable than the MT3608-based module, giving headroom to operate the module comfortably within its limits. Implementing the current limiting feature with the XL6009-based module is also slightly easier. It’s somewhat larger, but the complete Mini LED Driver still measures just 72mm by 24mm. One caveat with these modules is that reader Jonathan Woithe wrote in to tell us that these modules do not always regulate their output voltage correctly under some input voltage conditions. This means that the module can produce up to 50V, even when set lower, which is clearly not desirable! This problem only occurs when the incoming supply voltage is below the minimum specified voltage for the XL6009 IC. So, for example, if the module is powered by a battery that runs flat, it may be subject to these output spikes. We avoid this problem by shutting down the XL6009 module when the incoming voltage is low while also providing battery over-­discharge protection. The Mini LED Driver is presented as a bare PCB and is intended to be used as an enhanced module as part of a larger assembly that might include a power supply and an LED panel or another device that uses power from the Mini LED Driver. Practical Electronics | September | 2023 So the Mini LED Driver provides three main functions over a simple boost module: it’s easier to connect to, has current limiting and a low-­ voltage cut-out. We haven’t tested the Mini LED Driver in other applications. Still, it could be handy to help charge a 12V battery with the appropriate settings and a diode on the output, or anywhere a 12V DC source is needed at modest currents (up to about 1A). Circuit details Fig.1 shows the circuit diagram of the Mini LED Driver. The input supply is wired to either CON1 or CON2, while the LEDs (or another load) connect to CON3. CON1 is a pair of screw terminals to which you can connect bare wires. This type of connector will handle up to 5A with ease. Mini-USB connector CON2 makes it convenient to power it from a USB power supply, but most USB connectors will not handle more than about 2A, so the screw terminals are better for higher input currents. CON3 is another screw terminal block from which power can be drawn. If the low-voltage cut-out and current limiting are not operating, the Mini LED Driver behaves just like a boost module. Circuit ground from inputs CON1 and CON2 is connected straight through to output CON3 and to the boost module’s ground terminals, IN− and OUT−. The low-voltage cut-out connects between the CON1 and CON2 inputs and the boost module, switching power to the module’s IN+ terminal. The low voltage cut-out works as follows. A divider formed by 10kW and 1.5kW resistors connects across the incoming supply. The junction of these two resistors connects to the base of NPN transistor Q3. When the voltage at this junction is above about 0.6V, Q3 is switched on, and it pulls the gate of P-channel MOSFET Q4 down, powering the boost module. The 10kW/1.5kW divider means that an input voltage of about 4.6V is needed to switch on Q3, along with Q2 and Q4. At the same time, Q3 sinks current from the base of PNP transistor Q2 via a pair of series-connected 10kW resistors, which serve both to limit the current sunk from Q2’s base and ensure it is held off when Q3 is not sinking current. These two resistors also hold Q4’s gate high when Q3 is off, so it is also switched off when appropriate. There are two resistors because Q4’s gate needs to be pulled more than 1V below the supply voltage to switch it on, while Q2’s base-emitter junction limits its base voltage to around 0.6V below the incoming supply. The 47kW resistor between Q2’s collector and Q3’s base provides some hysteresis for this voltage comparator. This Altronics Z6337 buck-boost module uses two controller ICs and two inductors to provide separate buck and boost capabilities. The Mini LED Driver is intended to be used with a boost-only module. 29 The trimpot on the boost module is for changing the voltage, while the adjustment screw for the current trimpot can just be seen poking out below it. The wire just visible below the upper trimout here is critical for the Mini LED Driver’s operation. It is connected to a point on the boost module PCB that joins to the XL6009 IC’s feedback pin. When Q3 switches on, Q2 supplies a small amount of extra biasing current into the junction of the 10kW/1.5kW voltage divider. This means that the input voltage needs to drop to around 3.9V before Q2, Q3 and Q4 switch off. This reduces the chance of the low-voltage cut-out oscillating when the input voltage is close to the cut-out point. The 100nF capacitor in parallel with the 1.5kW resistor also helps by further slowing down its response. The default resistors have been chosen to give correct operation with a nominally 5V USB supply and protect against such things as the USB supply’s voltage dropping. Although not explicitly designed for it, the Mini LED Driver can operate from higher voltages. We will mention some of the provisos and limitations later. By the way, the 20V maximum limit of this design is due to the maximum gate-source voltage rating of MOSFET Q4, while Q4 also limits the current fed to the boost module to 4A as its drain current limit is 4.2A. Still, the XL6009 module tops out at around 4A anyway, so using a beefier MOSFET wouldn’t gain us much. We have not added any input current limiting as most USB supplies will lose control before delivering 4A. Current limiting The XL6009 IC on the boost module controls the output voltage by comparing an internal voltage reference to a fraction of the output voltage, and adjusting its operation to try to keep them the same. The trimpot on the boost module is part of a resistive voltage divider used There are quite a few different modules with the XL6009 chip on them. This is the one we found worked best, and it’s inexpensive. 30 to sample an appropriate fraction of the output voltage. So the output voltage can be set by adjusting the trimpot. We provide current limiting by injecting current into this voltage divider, making it appear to the switchmode chip that the output voltage is higher than it actually is, causing it to reduce its output. A 15mW shunt resistor is connected between the boost module’s output (OUT+) and output connector CON3. The voltage across this resistor is proportional to the current drawn by the load at CON3. The ZXCT1009 shunt monitor IC (IC1) amplifies this voltage difference and converts it to a current that flows from its pin 3 output. This current is 10mA for each 1V across the shunt. Note that the 15mW shunt resistor reduces the voltage applied to the load, but as its value is low, the difference is only a few millivolts (15mV at 1A), so it is not important. Since a 1A load current will induce 15mV across the 15mW shunt resistor, that will result in 150µA flowing from pin 3 of IC1 (10mA × 15mV ÷ 1V). The upshot is that IC1 produces a current that is 1/6667 (or, if you prefer, 3/20000) that of the output current. This current is fed to the FB (feedback) pin on the attached boost module through the 4.7kW resistor, trimpot VR1 wired as a variable resistor and schottky diode D1. This current will tend to reduce the output voltage in proportion to the current, but this is not the main factor in the current-­ limiting circuitry. There is also NPN transistor Q1 to consider. Q1’s base and emitter (with a 220W emitter degeneration resistor to moderate its gain) are connected across the 4.7kW resistor and VR1. If more than 0.6V appears across those two components, Q1 will start to conduct. This action forms the bulk of the current-limiting feature, with the extra current being sourced into the FB pin through Q1’s collector and emitter. The 2.2kW collector resistor limits the maximum current that can be injected, helping to keep this arrangement stable. The voltage between the base and emitter of Q1 depends on both the load current and the setting of potentiometer VR1. So, based on Ohm’s law, that means that VR1 can be used to set the load current at which Q1 will start to conduct and therefore the maximum current that the whole device can supply. Note that if you use a supply voltage different to 5V, the current limit will change due to Q1’s collector resistor connecting to the incoming supply. But most sources of 5V DC are regulated, so this generally won’t matter. It is something to keep in mind if you’re going to power this circuit directly from a battery pack. Finally, there are two capacitors connected across the output. We have used two smaller parts here as they fit the outline of the Mini LED Driver better. They smooth out the voltage across the shunt resistor, which would otherwise be quite peaky due to the upstream capacitors on the boost module. Due to this, the Mini LED Driver is not well suited as a current-­regulated source for dynamic loads, as these capacitors can only allow a slow response. If the load resistance suddenly changed, then these capacitors would need to charge or discharge before the system could settle at a new steady state. During this time, the current through the shunt would not represent what is happening downstream of CON3. Fortunately, LEDs present a slowly changing load. The Mini LED Driver just needs to cope with changes that occur as the LED forward voltage changes with slowly changing variables such as temperature. Keep in mind that this current-limiting scheme is not effective as short-circuit protection, because the boost module cannot reduce its output voltage below its input voltage (except for the small drop due to its onboard diode). Basically, the Mini LED Driver cannot limit its output voltage to anything much below its input voltage and certainly not down to levels near zero. Current adjustment VR1 is wired such that the fully clockwise position corresponds to 0W between its two connected terminals. So the clockwise position sets a 4.7kW resistance between IC1’s Iout and the diode, while the fully anti-clockwise position thus sets a 9.7kW resistance. Assuming a threshold of around Practical Electronics | September | 2023 0.6V for a silicon base-emitter junction, Q1 will start to conduct at 127µA from IC1 when VR1 is set fully clockwise, and 62µA from IC1 when fully anti-clockwise. This means that the usable output current setting range is nominally from 0.85A down to 0.41A (recalling the factor of 6667 explained previously), although these are not hard limits. During one of our tests, we started by setting the Mini LED Driver voltage to 12V with no load and with VR1 set to its minimum. We then connected one of the large 70W LED panels and measured a panel current of 0.48A at 11.1V. Setting the current limiting to maximum gave 0.84A at 11.3V but the current could be increased to 1A by increasing the voltage setpoint (at no load) to around 12.6V. We measured close to 3A at the 5V input, so we don’t expect many USB supplies will work at these levels anyway. The fact is, the current limiting comes on gradually, which is necessary to keep the Mini LED Driver stable. It also means that the LED operating point can be tweaked by careful adjustment of both the current and voltage settings. Fig.2 shows the effects of changing loads on the Mini LED Driver. We made these plots with the no-load voltage set to 12V and the current-limiting trimpot set to its lowest and highest positions, plus a third point near the middle. There is a limit to how low a voltage can be achieved by the current limiting circuitry; around 8.3V in this case. That is due to the 2.2kW resistor limiting the current injected into the voltage divider. Other boost modules that use different divider resistors for their voltage setting will behave differently as the injected current will change the setpoint by a different amount. This is one of the reasons we’re recommending a specific module, as shown in the photos opposite. This is the one that worked the best in our testing. If you must try a different boost module, we recommend thoroughly testing the combination before putting it to use. We used the Arduino Programmable Load from the June 2022 issue for much of our testing, including plotting Fig.2. Efficiency We also measured the module’s efficiency and found that it did not reach the 96% figure claimed by the suppliers of many of these boost modules. They usually specify the efficiency for boosting 12V to 20V; boosting 5V to 12V is both a higher ratio and starting Practical Electronics | September | 2023 from a lower voltage, so efficiency will not be at its peak. With a regulated 5V DC input and 12V at the output, a helpful rule of thumb is to multiply the output current by three to work out the theoretical input current. This corresponds to an approximate efficiency of 80%. Options You might decide to leave off CON1 or CON2 if you know that you will definitely only use one of them, but we’ll explain the construction procedure as if fitting both. Keep in mind that the Mini LED Driver will draw a considerable current with a 5V supply. Any significant sag in its input voltage could result in the low-voltage cut-out operating. A USB connector will have a noticeably higher resistance than the screw terminals. So, we recommend fitting both in case this resistance turns out to be too high, and you need to use the screw terminal instead of the USB connector. Construction This board is not difficult to assemble, but it almost exclusively uses surface-­mounting parts. So ensure you have the necessary tools and supplies, including solder, flux paste, solder wicking braid, a fine-tipped iron (or at least not a huge one), tweezers, decent lighting and a magnifier. For more tips and tricks regarding SMD soldering, see our feature on the topic in the December 2022 issue. The PCB is well-marked, but you can also refer to the overlay diagram (Fig.3) to see which parts go where. The PCB is coded 16106221, measures 72mm x 24mm and is available from the PE PCB Service . Start with CON2, the mini-USB connector. Apply flux to the pads and rest the connector in place. It has locating lugs, so it should lock into the correct position. Clean the soldering iron tip and apply a small amount of fresh solder. Touch the iron to the two extended end pads in the row of five – only these two are needed to supply power. If you bridge them to any other pins, use the solder wick to remove any excess before proceeding. Then apply a generous amount of solder to secure the four corner leads on the shell, which will ensure that the connector is mechanically secure. Work through the transistors, diode and IC next. They are all in identical-­ looking SOT-23 packages, but there are five different types, so take care that they are not mixed up. The PCB is marked with the part numbers as well as the designators. Fig.2: these curves show the behaviour of the Mini LED Driver when set to a nominal 12V and three different current limit settings. The curves correspond to VR1 at minimum (cyan/blue), maximum (red) and roughly halfway between the two extremes (green). Check the types against the overlay, working with one type at a time. The SOT-23 parts are small, but the leads are pretty spread out, so they are quite easy to work with. Apply flux to the pads for these parts, then use tweezers to roughly place each part in turn. Tack one lead and check that the remaining leads are all within their pads. If not, adjust as necessary using the iron and tweezers. Then solder the remaining leads. Do the same with the eight small (3.2 × 1.6mm) resistors, checking their values against the silkscreen as you go. Much the same technique is used for these parts as for the semiconductors. Fit the larger (6.3 × 3.2mm) current shunt resistor next. It is harder to mix up with the other parts because of its unique size for this project. The solitary SMD capacitor goes next to the 1.5kW resistor and can be soldered similarly. That completes the fitment of the surface mounting parts. Next, clean the PCB of any flux residue before proceeding further – and do allow the board to dry thoroughly. You can test the low-voltage cut-out feature if you can connect a variable power supply to the CON1 or CON2 inputs. It’s best to do so now, before connecting the boost module, as it’s easier to fix any problems you find. Do not exceed 20V, and mind the polarity of the connections to CON1. Ramp the input voltage up and down. Check that the voltage between the IN+ and IN− points is present when CON1 or CON2 is above the upper threshold (around 4.6V). When the input is below the lower threshold (near 3.7V), it should drop out. Completion The remaining parts to mount are CON1, CON3, trimpot VR1, the two electrolytic capacitors and finally, 31 Fig.3: the trickiest part of assembling the Mini LED Driver is ensuring you don’t mix up the various SOT-23 parts. Check the PCB markings before soldering these components in place. The boost module sits over the top of this PCB, as you can see from our other photos. While the feedback connects electrically to pin 5 of the XL6009 IC, it’s usually easier to solder to a trimpot lead after checking for a low resistance between it and the IC feedback pin. the boost module. Solder CON1 and CON3 first. They should sit far enough apart to allow the boost module to sit between the connectors on the ends. Fit VR1 next. While you could solder it in the standard vertical position, the boost module will sit over the Mini LED Driver PCB, blocking adjustment. So instead, install it on its side, as shown in our photos. Ensure that the adjustment screw is positioned correctly. You should also adjust the trimpot to its minimum (fully anti-clockwise) in preparation for testing. The two electrolytic capacitors sit near CON3. The longer positive leads go into the pads marked with small + symbols. Push them down firmly against the PCB before soldering and trimming the leads. A warning before fitting the boost module; we have seen some boost modules that (confusingly) increase their voltage when the trimpot is adjusted counter-clockwise. If you are using a different module from the type we supply, check its voltage by powering it up and measuring its output with a multimeter before soldering it to the Mini LED Driver board. Otherwise, you could cook those two capacitors the first time you power it up. Having checked that, solder the short length of wire to the feedback pin at the reverse of the voltage adjust trimpot on the underside of the boost module. It is intended to be connected to the middle pin, to align with the other PCB, but you might see that two of the boost module’s trimpot’s pins are connected together anyway. You can see where this connects in our photos. On the XL6009 modules that we are using, this should line up directly with the FBPIN pad on the Mini LED Driver PCB, but it might be in a different location if you are using a different module. Since it lines up directly, a component lead off-cut might be adequate, 32 but if you can’t run the wire directly, use a short length of fine insulated wire instead (eg, Kynar or wire wrap wire). Now solder component lead offcuts or short lengths of stiff wire to the four corners of the boost module at the IN+, IN−, OUT+ and OUT− pads. These should all face down in the same fashion as the wire going to FBPIN. We found a pair of tweezers or pliers handy to grip the wire while soldering it (to avoid burned fingers). Now you can join the two boards together with the boost module above the Mini LED Driver PCB, ensuring that the pad labels match. Allow some clearance between the two PCBs if possible, and tack one lead in place. Adjust the boards to ensure that nothing is making contact where it shouldn’t and check that they are square and parallel, then solder the four corner pads followed by the wire for FBPIN. Trim any wires that are longer than necessary. Testing During testing, remember that the Mini LED Driver is not short-circuit proof. So take care with the attached loads to ensure that there is no chance of a short circuit or very low resistance that might overload MOSFET Q4. As we mentioned earlier, the Arduino Programmable Load works well for testing, but you could use a fixed resistor (eg, 22W 10W or two 10W 5W resistors in series) or a high-power white LED. The following assumes a 5V supply and might not work if you have a much higher supply. Apply power without a load and adjust the CON2 output to 12V using the XL6009 module trimpot. If you can’t smoothly adjust the voltage at the output, check the Mini LED Driver assembly before proceeding further. Remember to not set the output above 20V! With VR1 on the Driver set to its minimum position, a 20W or lower Parts List – Mini LED Driver 1 double-sided PCB measuring 72mm x 24mm, coded 16106221 1 DC-DC boost module based on XL6009 controller with red PCB (MOD1, see text) [See Silicon Chip part SC6546 for part specification: www.siliconchip.com.au/Shop/] 1 2-way, 5.08mm screw terminal block (CON1) AND/OR 1 mini-USB socket (CON2) 1 2-way, 5.08mm screw terminal block (CON3) 5 20mm lengths of 1mm diameter solid core wire or component lead offcuts (see text) Semiconductors 1 ZXCT1009 high-side current shunt monitor, SOT-23 (IC1) 1 BAT54 (or BAT54C or BAT54S) schottky diode, SOT-23 (D1) 2 BC847B NPN bipolar transistors, SOT-23 (Q1, Q3) 1 BC857B PNP bipolar transistor, SOT-23 (Q2) 1 PMV50EPEA or AO3407 P-channel MOSFET, SOT-23 (Q4) Capacitors 2 100μF 25V electrolytic 1 100nF 50V X7R M3216/1206 SMD ceramic Resistors (all 1206/M3216 1/8W unless specified otherwise) 1 47kW 3 10kW 1 4.7kW 1 2.2kW 1 1.5kW 1 220W 1 5kW top adjust multi-turn trimpot (VR1) 1 15mW 2512/M6432 3W current shunt resistor Practical Electronics | September | 2023 You can clearly see the wire from the FBPIN pad to the trimpot above. resistance load should draw near 0.6A and cause the output to enter current limiting. Referring to Fig.2, check that your unit responds similarly to our prototype. If the output voltage or current seems to be dropping more than this, check that your USB supply is operating within its limits. It might have its own internal current limiting. If the voltage at CON1 is not being maintained near 5V, that is a sign that the supply you are using is not handling the load. It is a good idea to check the voltage going to the boost module at the IN+ and IN− pads. If this is much less than the voltage at CON1, the low-voltage cut-out is operating. That may be due to voltage drops in the cable or the USB supply sagging under load. Adjust VR1 and check that the current limit changes. You might need to increase the load (decrease the resistance) by adding extra parallel resistors. Set the current to your desired value and connect your desired load. Then, confirm that this configuration works as expected. GET T LATES HE T COP Y OF TEACH OUR -IN SE RIES A VAILAB L NOW! E Using other boost modules We don’t recommend this unless you are experienced. Finding the feedback (FB) pin can be tricky if your boost module is not labelled. A good place to start is the centre pin of the adjustment trimpot, although we have seen some modules that do not follow that trend. The FB pin is brought out on the XL6009 IC, and most boost controllers should have an external feedback pin, so it makes sense to start looking there. On the XL6009, it is the rightmost of the small pins (pin 5). On the modules we have tried, it is the smaller pin closest to the voltage adjustment trimpot. You could solder a wire directly to this pin, although it won’t be as neat as connecting to the adjustment trimpot terminal. Instead, you can use a multimeter set on continuity mode to find another more accessible (eg, through-hole) solder joint with a near-zero resistance to the feedback pin. If in doubt, look for a data sheet for the switchmode controller chip on your module. Order direct from Electron Publishing PRICE £8.99 (includes P&P to UK if ordered direct from us) Using it We tried the Mini LED Driver with one of the large 70W LED panels we used in June with the Buck-Boost LED Driver. We connected the LED panel after setting the output to 12V with no load and winding the current limiting to its minimum. It drove the panel at 480mA, with the output voltage being 11.1V. Slowly increasing the current limit increased the panel current and brightness. To confirm that the current is being adequately regulated, disconnect the LED panel and check that the output voltage rises by at least half a volt; this means that there is headroom for the Mini LED Driver to regulate its current. We found that the panel would dim and sometimes flicker after the current was set past a certain point, meaning that the USB power supply had reached its limit. Another symptom of overloading is a high-pitched sound from the boost module when under load. If this occurs, then wind the current limit down to prevent damage to the USB supply. Reproduced by arrangement with SILICON CHIP magazine 2023. www.siliconchip.com.au EE FR -ROM CD ELECTRONICS TEACH-IN 9 £8.99 FROM THE PUBLISHERS OF GET TESTING! Electronic test equipment and measuring techniques, plus eight projects to build FREE CD-ROM TWO TEACH -INs FOR THE PRICE OF ONE • Multimeters and a multimeter checker • Oscilloscopes plus a scope calibrator • AC Millivoltmeters with a range extender • Digital measurements plus a logic probe • Frequency measurements and a signal generator • Component measurements plus a semiconductor junction tester PIC n’ Mix Including Practical Digital Signal Processing PLUS... YOUR GUIDE TO THE BBC MICROBIT Teach-In 9 – Get Testing! Teach-In 9 A LOW-COST ARM-BASED SINGLE-BOARD COMPUTER Get Testing Three Microchip PICkit 4 Debugger Guides Files for: PIC n’ Mix PLUS Teach-In 2 -Using PIC Microcontrollers. In PDF format This series of articles provides a broad-based introduction to choosing and using a wide range of test gear, how to get the best out of each item and the pitfalls to avoid. It provides hints and tips on using, and – just as importantly – interpreting the results that you get. The series deals with familiar test gear as well as equipment designed for more specialised applications. The articles have been designed to have the broadest possible appeal and are applicable to all branches of electronics. The series crosses the boundaries of analogue and digital electronics with applications that span the full range of electronics – from a single-stage transistor amplifier to the most sophisticated microcontroller system. There really is something for everyone! Each part includes a simple but useful practical test gear project that will build into a handy gadget that will either extend the features, ranges and usability of an existing item of test equipment or that will serve as a stand-alone instrument. We’ve kept the cost of these projects as low as possible, and most of them can be built for less than £10 (including components, enclosure and circuit board). © 2018 Wimborne Publishing Ltd. www.epemag.com Teach In 9 Cover.indd 1 01/08/2018 19:56 PLUS! You will receive the software for the PIC n’ Mix series of articles and the full Teach-In 2 book – Using PIC Microcontrollers – A practical introduction – in PDF format. Also included are Microchip’s MPLAB ICD 4 In-Circuit Debugger User’s Guide; MPLAB PICkit 4 In-Circuit Debugger Quick Start Guide; and MPLAB PICkit4 Debugger User’s Guide. ORDER YOUR COPY TODAY: www.electronpublishing.com Practical Electronics | September | 2023 33