Follow up from the thread Oct 2019 Minimising EM noise from PWM switched fairly lights?
Hi folks,
Recap - this is an educational project for my son to drive some existing garden LED fairy lights from a Raspberry Pi ZeroW
The only problem, as fully expected, is they are chucking out more EMI than I'd like and I don't want to be causing problems for others. So - yes, it's a crappy control method but we are where we are (see below) This is a case of trying to do a little more with a non ideal starting point and I'd be super grateful for any pointers on that basis :)
The noise I have is showing up on an AM radio as a clear buzz at the base PWM frequency (100Hz), audible across the MW range. This becomes undetectable about 5 - 10 yards from my property boundary depending on direction. The locals have been warned and no one's complained yet. However it's a lot noisier than the supplied controller and without a scope I can't see what the manufacturer did - but that leads us to Q1:
model, simple few turnes of wire antenna and looking at the spectrum (I think spectrum software comes bundled with the Picoscope)?
Q2) I've read about frequency dithering of PWM to spread the noise out from narrow to broadband. That's something I could do in software easily. No quite sure how far to dither - 100-200Hz, 100-1000Hz? Anyone heard of that?
Q3) Low pass LC filter to attentuate some of the higher harmonics:
On the plus side, I am really pleased with the software :) Pity my electonics skills suck which is why I'm reduced to using pre built HBridge L298 modules from ebay. But I'm keen to try to learn a little more and this is as educational for me as the lad - any help gratefully received :)
If starting from nothing, I wouldn't do it like this - I'd go straight to NeoPixels and have all the lamp control localised to each lamp. I might indeed order some strngs from China next year - but for this year, I do have these existing lights wrapped around trees already - and PWM is an instructive project in its own right. I am just mindful that I have the responsibility to not wreck havoc on my neighbours :)
Cheers and all the best,
Tim
============Lights spec =============
This is the equivalent circuit: The LEDS are wired in alternate-reversed configuration so that lamp 1,3,5... are driven on a forward current, lamp 2,4,6... are driven on reverse current.
Drive voltage 30V, about 140mA for all 150 lamps in 3 strings.
That's what it is - they're wrired like that as bought based on 4 wires. Not certain of the exact configuration - might be 5, 6 or more in series depending on the exact Vf of the LED. =====================================