The first set of boards went out a few weeks ago, and we quickly realised there was a bit of a niggle with the board design. Because the fading of the LEDs was being achieved using pulse width modulation (a DC signal pulsing at varying high frequencies, giving the appearance of fading) all the LEDs needed to be oriented in a particular direction, otherwise they wouldn't work. Not a deal breaker, but super annoying considering that all the ramps need to be removed, the strips pulled out, tested, and then any LEDs that weren't firing turned around in the housing. Not exactly an installation plan I would call 'plug and play'.
The original boards used AC to power the strips (like all GI lighting), which is why LED direction wasn't a problem. I thought I'd have a crack at redesigning the board to handle AC dimming. Couldn't be that hard, right?
Now if you're an electrician, (or an idiot like me who researches this stuff for kicks) you'll probably know that AC dimming can be done in two different ways. They're referred to as l
eading edge and
trailing edge dimming.
Leading edge dimming is when the AC signal is cutoff partway through it's half cycle, which lessens the overall output and dims the bulbs.
This is the easier (and cheaper) type of AC dimmer to build, and uses Triacs under the hood. As we all know by referring to the scientific theorem of Sod, easier ways always have a catastrophic gotcha that will render the design unusable. And why would this be any different? Leading edge dimming causes LEDs to flicker horribly. So out that plan goes.
That leaves us with
trailing edge dimming, which is where the half cycle is only activated partway through the half cycle.
Most modern LED dimmers, the ones you buy for your fancy light switches in your disco lit pinball dungeons, will use this method. The theorem of sod explains that while this method will be perfect for LED based dimming situations, it will be about 3 times as complicated a circuit to build. That Sod - such a character!
The new circuit!
Figure 3 - Look at that horrific array of mosfets
The new circuit change is made up of..
- 1 x opto isolator (used to electronically isolate two circuits, ie, AC and DC) to calculate the zero crossing
- 8 x opto isolators, to isolate the DC drive circuit from the AC mosfets
- 16 x mosfets (up from 8), one to manage each side of the AC cycle
Anyway, who cares right - play a video of it working you lying POS!
Doesn't look like much, but this is a big breakthrough.
Still need to confirm that the fading technique I'm using results in a similar pattern effect, which will require building out the additional channels.
@replicas @Toxteth O'Grady @davro-one @Calimori @Ads Nems @Fifty