I am stuck for a few days already at finding a solution for controlling a motor. We can easily find a motor or LED on the market. However, those modules for motors do not have a built-in regulator as inductors can smooth out the voltage itself.
What I want is a variable power supply module with a voltage regulation function, whose output voltage (e.g. 5V to 12V) can be controlled via PWM . Does such a thing exist in the market?
I would like to use Arduino/Raspberry to control PWM signal.
As I am looking for a general solution that can be used for different Loads, I don't know the spec of the Loads, let say they are ranging from 5V to 12V and max rated current would not be >2A. You may take CNC Laser module as example