A lot of people use these LM2596 modules to drive LED and fans.
By soldering a pull up resistor it can be controlled by digital output from a microcontroller.
I use them as switches with cheap 12V LED modules.
This is 10$ of hardware total: