I have a vehicle with twin LED headlights. The LED's have a cooling fan that runs when the LED's are on.
The bike operates at 13.8v -- due to other projects on the bike, I have a stable 12v, 5v, and 3.3v available (all limited to 3amp tho).
The lights have a low & high mode. When switched to high, the fan spins faster. The difference between high and low is voltage (about 10 on low and 20 on high). Fast switching between high and low results in the led slowly heating up, as the fan doesn't instantly spin faster.
The goal is to build a headlight modulator to cycle (ala sine wave) between 10v and 20v about 2 to 3 times a second while leaving the fan on high to keep it cool enough.
I've done various projects on my own, but I have no idea how to start designing the power supply that i can manipulate via an arduino PWM pin (5v). I don't want to randomly pick some opamp & hope it works with trial and error until it does.
Would someone be able to help me?