I have a circuit in my car's headlamp system, which is supposed to trigger a relay whenever the high beams are activated. The high beams are ground-switched, so I have ground/12v on the 85/86 posts of the relay.
The problem is, however, that the high beams are also the daytime running lights, and PWM is active during the day on the 12v rail, causing the relay to rapidly flicker. Is there something that can be done to detect the PWM or cause the relay to only work when there's no PWM?