Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #568671
| From | Tim Watts <tw@example.com> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: Fairy Lights PWM Part 2 |
| Date | 2019-12-07 19:50 +0000 |
| Message-ID | <h52e3sFf1hfU1@mid.individual.net> (permalink) |
| References | <h51q2nFau6dU1@mid.individual.net> <8fbff63e-b527-4688-a902-bf099b07a18f@googlegroups.com> |
On 07/12/2019 18:50, Rick C wrote: Hi Rick, Thanks for your reply. > I think others have explained pretty well that it is the fast rise and fall times that are the problem. They have harmonics well up into the MHz range. While those harmonics fall off, they don't go to zero and have potential of being radiated well by the "long wire" antenna you call a pixie light string. > > So there are two ways of fixing the problem. One is to find a way to not radiate the noise such as improving (or degrading, depending on how you look at it) the antenna properties of your wiring. The other is to minimize the edge rates of your transitions to reduce the harmonics. That's the RC filter option? > > One way of minimizing the harmonics that just occurred to me is to not have any, by driving the strings with a combination of a low frequency sine wave and DC. Any brightness level of the two sets of LEDs can be obtained by combining a DC level between the +max and -max along with an AC component with an amplitude of 0 to max value pp. A class D amplifier can drive the lights and a simple filter can remove all the problematic harmonics that would be generated by the class D output. All that remains is a 100 or even 60 Hz output and a DC component. No harmonics, no interference. > I'm not going to pretend to understand why that works - but I understand what you describe. So we do as you say by using what we have (HBridge) but driving at a higher clock rate and finding a digital tranform to represent the 100Hz sine + DC offset. Did I understand that correctly? The pigpio library is set up by describing a waveform in terms of a chain of on and off times for a set of GPIO pins. So if a complete 100Hz cycle can be adequately represented in the available memory which should be possible, a full cycle can be set up and left running, until it needs adjusting for a new brightness. I'm going to have to get my head around how (set-1-duty-%, set-2-duty-%) maps to x.DC-level + y.sin-amplitude though :)
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Fairy Lights PWM Part 2 Tim Watts <tw@example.com> - 2019-12-07 14:08 +0000
Re: Fairy Lights PWM Part 2 Rick C <gnuarm.deletethisbit@gmail.com> - 2019-12-07 10:50 -0800
Re: Fairy Lights PWM Part 2 Tim Watts <tw@example.com> - 2019-12-07 19:50 +0000
Re: Fairy Lights PWM Part 2 Rick C <gnuarm.deletethisbit@gmail.com> - 2019-12-07 12:22 -0800
Re: Fairy Lights PWM Part 2 Tim Watts <tw@example.com> - 2019-12-07 20:04 +0000
Re: Fairy Lights PWM Part 2 Jasen Betts <jasen@xnet.co.nz> - 2019-12-07 20:18 +0000
Re: Fairy Lights PWM Part 2 Tim Watts <tw@example.com> - 2019-12-08 18:10 +0000
Re: Fairy Lights PWM Part 2 Rick C <gnuarm.deletethisbit@gmail.com> - 2019-12-08 12:22 -0800
Re: Fairy Lights PWM Part 2 Tim Watts <tw@example.com> - 2019-12-08 18:16 +0000
Re: Fairy Lights PWM Part 2 tabbypurr@gmail.com - 2019-12-07 20:29 -0800
Re: Fairy Lights PWM Part 2 Klaus Kragelund <klauskvik@hotmail.com> - 2019-12-08 09:42 -0800
Re: Fairy Lights PWM Part 2 Tim Watts <tw@example.com> - 2019-12-08 18:06 +0000
Re: Fairy Lights PWM Part 2 Jasen Betts <jasen@xnet.co.nz> - 2019-12-08 18:57 +0000
Re: Fairy Lights PWM Part 2 klaus.kragelund@gmail.com - 2019-12-08 11:07 -0800
Re: Fairy Lights PWM Part 2 antispam@math.uni.wroc.pl - 2019-12-09 13:40 +0000
Re: Fairy Lights PWM Part 2 bloggs.fredbloggs.fred@gmail.com - 2019-12-11 09:19 -0800
csiph-web