by BuildTheRobots · 8y ago · 0 comments
Seeing as we're talking about lights on vehicles though, why in the world isn't the use of PWM dimming on a vehicle illegal?
The first thing you teach kids when programming arduinos is to dim an LED using PWM and then move the LED through space; oh look, it's not a dim light, it's a strobing light!
Why in the world it's acceptable to put a strobe light onto a vehicle which by definition moves though space, is entirely beyond me. If you're stuck either behind, or worse, watching one go laterally in your peripheral then it's massively distracting :(
If it's 8bit PWM at lowest output (1/256 on-rate) you need about 3(m) x 3.14(pi) / 0.1(s) / 0.001(m) x 256 so you don't see gaps between dots, 24mhz PWM. That does seem high...
Some of the really good LED dimming solutions I've seen that employ PWM are in the 30+ kHz range.
Of course, constant current dimming is the best, but it tends to be expensive.