Im having trouble understanding how or if it even is possible to regulate a voltage with a MOSFET. I want to regulate an output voltage of 0-24VDC 0.5A(continuosly) with the duty cycle of a 0-5V 1kHz PWM signal from a PCA9685 LED driver.
My initial solution was using a low pass filter then run the average voltage through an op-amp. But I was told that this was not a good solution. Because I want 16 analog DC outputs, using op-amps will be both costly and I will need a cooling solution. The 24VDC source is from a truck. The output should also have short-circuit protection, and shouldnt allow more than 0.5A of current.
Is this possible with a MOSFET? Will i still need cooling solutions for this? And what would such a circuit look like?
Thanks.