Author Topic: WS2812 and EMC  (Read 2055 times)

0 Members and 2 Guests are viewing this topic.

Offline artagTopic starter

  • Super Contributor
  • ***
  • Posts: 1070
  • Country: gb
WS2812 and EMC
« on: January 17, 2022, 10:29:50 pm »
Has anyone here used WS2812 or similar LEDs in a product that needed to conform to EMC standards ?
There's bot a long wire with a 800kHz data ilne and a bunch of PWM'd LEDs.
They're probably a nightmare to suppress. Has anyone tried ?
 

Offline srlevitt

  • Newbie
  • Posts: 1
  • Country: gb
Re: WS2812 and EMC
« Reply #1 on: September 28, 2023, 02:56:10 pm »
 

Offline artagTopic starter

  • Super Contributor
  • ***
  • Posts: 1070
  • Country: gb
Re: WS2812 and EMC
« Reply #2 on: October 16, 2023, 01:02:47 am »
Due to production needs my led array is now 13 strings of 11 leds instead of one string of 140 leds. This is unlikely to help the EMC situation but I'm only now starting to make measurements. Unfortunately although I have measurement equipment I don't yet have a calibrated baseline from a test lab.

I read your piece on stackexchange with interest. As I understood it one guy had built a system with no problems but the leds are in an aluminium envelope with holes around each led. I can't afford that, though some sort of aluminium foil housing might be an option. The mechanical designer's face when I ask her to replace a painfully developed plastics superstructure with tinfoil will be a picture thought it might actually be quite good.
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: WS2812 and EMC
« Reply #3 on: October 16, 2023, 01:31:56 am »
you can probably vary the 800kHz to spread it out if that helps
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14476
  • Country: fr
Re: WS2812 and EMC
« Reply #4 on: October 16, 2023, 02:25:10 am »
you can probably vary the 800kHz to spread it out if that helps

Yes. The datasheet gives a rather wide tolerance on timings (each low/high state +/-150ns), so at least according to the DS, you should have +/-300ns max over one period (1.25µs), which is +/-24%. That's quite a span for spread spectrum.
Of course, that will complicate the code a little bit.
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: WS2812 and EMC
« Reply #5 on: October 16, 2023, 02:57:50 am »
you can probably vary the 800kHz to spread it out if that helps

Yes. The datasheet gives a rather wide tolerance on timings (each low/high state +/-150ns), so at least according to the DS, you should have +/-300ns max over one period (1.25µs), which is +/-24%. That's quite a span for spread spectrum.
Of course, that will complicate the code a little bit.

at what timespan does the spreading need to happen? maybe just change the frequency slightly every reset period?
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21686
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: WS2812 and EMC
« Reply #6 on: October 16, 2023, 02:59:15 am »
Filtering on any signal outputs, and probably ESD protection, is an absolute minimum.  An MCU pin toggling regularly has harmonics up into the 100s of MHz.  An LC lowpass made from a ferrite bead (30 to 1000 ohms at 100MHz, depending), and a C0G say 100 to 1000pF, is a good start.  Clamp diodes for ESD are also a good idea.

Just ferrite beads might well address the linked question, or at least afford considerable reduction.

If the LEDs themselves produce noise (what are they, PWM once set? I forget), there's not much you can do about that.  Preferably they would be made on a two-layer strip (one side ground plane), with frequent supply bypass capacitors, but if they're just parallel traces on a single layer, you're a bit screwed, short of a mesh screen over the whole damn thing.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline spostma

  • Regular Contributor
  • *
  • Posts: 118
  • Country: nl
Re: WS2812 and EMC
« Reply #7 on: October 17, 2023, 04:09:47 pm »
Add a resistor so the output impedance is at lease equal to the line impedance,
thus making a series termination like the PCI bus used to do.

Generally, try to minimize writing to the WS2812 strings, as they keep the last-writen RGB PWM value.
They all run on their own local free-running 5.25MHz oscillator, so they tend to become spread-spectrum alltogether.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5907
  • Country: es
Re: WS2812 and EMC
« Reply #8 on: October 17, 2023, 05:56:08 pm »
Exactly, each led actively relays the input to the output, but not instantly, so you don't really have 10ft antenna radiating the same signal, only the traces going between leds.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline artagTopic starter

  • Super Contributor
  • ***
  • Posts: 1070
  • Country: gb
Re: WS2812 and EMC
« Reply #9 on: October 17, 2023, 06:58:15 pm »
My cable is FFC and fairly short as are the LED strips - all within the same container. However it needs to be translucent so shielding is awkward.

What I'd really like to find is a set of voltage-converting buffers that have slew rate limiting on them. However that's more the area of line drivers than bus buffers, and rarely more than one or two per package.
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: WS2812 and EMC
« Reply #10 on: October 17, 2023, 08:03:03 pm »
My cable is FFC and fairly short as are the LED strips - all within the same container. However it needs to be translucent so shielding is awkward.

What I'd really like to find is a set of voltage-converting buffers that have slew rate limiting on them. However that's more the area of line drivers than bus buffers, and rarely more than one or two per package.

just add a series resistor, but that only affect the signal to the first LED, each LED will driver the next in the strip
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14476
  • Country: fr
Re: WS2812 and EMC
« Reply #11 on: October 18, 2023, 04:25:51 am »
I can't give any particular guarantee, as there are tons of compatible WS28xx LEDs on the market and who knows which you'll get and whether they actually match the datasheet (which is not that obvious to find curiously).

But according to the DS I have, looking at the switching characteristics, I think you're probably overthinking the digital data signal EMC issue. Each has a buffer to forward the data line that is relatively slow. They're meant to be mounted each close to one another rather than very distant (even if the total strip length can be long), so they don't need beefy buffers. (So OTOH, don't expect these LEDs to work very well without extra buffering if you had several meters of cable between each.)

If you have gathered evidence that the digital signals themselves could cause EMC issues, you would have to add a series resistor... between each LED. Annoying.

Now what may be more concerning is the noise coming from the power rail. The DS is not particularly explicit about what the controller does. It states that it uses contant current driving, so we can assume they're at least not PWM'ing. But who knows. How much can you again trust those datasheets since you may get ahold of compatible LEDs that are not "genuine" (the original vendor making these is Worldsemi), but I wouldn't be surprised if they had been endlessly cloned with varying characteristics.

But even if the LEDs are not PWMing, obviously the current draw from the power rail will vary with the RGB control pattern of the LEDs, so beware of your own power supply first. That's what I would personally focus my concerns on.
« Last Edit: October 18, 2023, 04:28:32 am by SiliconWizard »
 

Offline artagTopic starter

  • Super Contributor
  • ***
  • Posts: 1070
  • Country: gb
Re: WS2812 and EMC
« Reply #12 on: October 18, 2023, 07:48:54 pm »
I think they do PWM. All the ones I've ever used have the characteristic dot pattern if you move them whilst partially illuminated. The normal strips you buy have 100-180nF on each LED but additional bulk capacitance is often recommended, apparently because it reduces failure rate - possibly due to the data signals being greater than the sagging power lines.
 

Offline Northy

  • Regular Contributor
  • *
  • Posts: 217
  • Country: england
Re: WS2812 and EMC
« Reply #13 on: October 18, 2023, 08:54:11 pm »
Are you actually using the flexible tape or are these on your own PCB?

I got a product through that had a few hundred on flexible tape, I thought they would be an issues, but didn't seem to be. The product had HDMI in it and that was a total PITA.

I've also used 14 or so of the side firing type on another design in the past on my own PCB. I added an R/C between each one, just incase there was any problem at EMC. I'm not sure if that ever made it to testing....

We also got custom tape made that was easier to bend round corners and had a 'data return' the full length of the tape at one point, it actually wasn't that much extra than the off the shelf stuff. So if you do struggle, you could have something similar made with an R/C between, or more decoupling, or whatever was needed?

G
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf