Hello,
While i was building circuit i found that i need pwm signal in order to step-down the voltage and use it for led driver.
This driver will be used as headlight and signal backlight of the bike. I tried to voltage divide my input 3v from 12v battery but it seemed dc does not working by understanding using 100% of duty cycle.
following is my current schematic but i think i may need stm32 for giving properiate frequency with duty cycle for PWM. is my thought correct?