Monday, December 28, 2015

Direct AC LED Driver

Direct AC LED driver or AC-AC driver is getting very popular in the solid-state-lighting world.  Starting with Seoul Semiconductor with its AC LED and then apply the same technology with conventional LED but better efficiency.  Now Seoul Semiconductor even have the solution that works very well with Triac dimmer.

AC drive for LED is actually quite simple but care must be taken into consideration when configure the LED strings.  It is not quite  straight forward as compared to the SSL with AC-DC power supply.  You need to make sure the power loss at the switching IC as little as possible else the IC will shut down due to over temperature.  Some IC has the feature of lowering the regulated current output but that will affect the brightness output as well, which is not good.  Figure 1 shows the AC drive block diagram.


Figure 1. AC Drive Block Diagram

From the diagram, each channel current is regulated using the current sense, some IC only requires one resistor to set the current.  The control circuit will turn on the channel in stages by tracking the incoming AC voltage input.  Figure 2 shows when the channel been turned on.


Figure 2. Channel On-Off Sequence

From figure 2, as the AC voltage increases the control circuit will turn on the respective channel when the AC voltage is higher than the total VF LED string.  First it will turn on channel #1, then off channel #1 and turn on channel #2, turn off channel #2 and turn on channel #3, and so on.  By doing this the Current phase and Voltage phase are almost the same phase that the Power Factor obtain will be close to 1.  You don't have to worry about the Total Harmonic Distortion (THD) as well since there is no high frequency switching.  No worry on the EMC test on the SSL if you decided to perform the test.  

Disadvantage is that you may need more LED compared to the conventional AC-DC power supply.  The Lumen-per-Watt (Lm/W) also will be lower as well but still in an acceptable range looking at this less complexity design.  Another disadvantage is that the complete SSL PCB is non-isolated, all the conducted area is non-isolated.  If the SSL product is designed with plastic casing then it shouldn't be an issue.  In other words, if you decide to use this driving technique you need to isolate the design mechanically.  

Monday, January 5, 2015

STM8S Low Power Feature - Active Halt Mode

I had been using Microchip micro-controller from its 8-bit series up to 32-bit series.  Recently I have
the opportunity to use ST Micro 8-bit micro-controller STM8S series.  It has similar feature as Microchip, not all, but almost similar.  Good thing is that it has a CAN (Control Area Network) Bus hardware module for such as a small MCU and furthermore its pricing is as low as 12F or 16F Microchip.  

For this article, I would like share on the low power management feature which I think quite cool. Some MCU has different sleep modes such as Idle, Sleep, Deep Sleep, Deep-deep Sleep (or dead, maybe not waking up at all....just joking).  STM8S has the feature known as "Active-Halt-Mode".  At a glance, I thought Halt Mode consumes lower power but actually Active-Halt-Mode is much much lower.  During this mode, you could even turn off the internal voltage regulator, clock oscillator, peripheral, power to internal flash memory, etc....hmmm, maybe can consider "Dead" :)  The only way to wake up the MCU is via external I/O interrupt or a timer known as "Auto-Wake-Up (AWU)".  Before entering the Active-Halt-Mode, the AWU is enabled prior going into Halt Mode.  User has the option to select the time interval for the MCU to wake up and do something.  User has the option to wake up, service the AWU interrupt, then back to sleep or back to main then back to halt mode.  During Active-Halt-Mode with all turning off, one could achieve around 66 micro-Amp.  

In the next time, I will share some of the code on how the Active-Halt-Mode is written in the IAR C-compiler...free version, of course :)