variable power supply

I am doing a project for college and need schematic and code for a simple variable power supply to be controlled by the Arduino for Thevenins circuit to control VCC something that will go up to 12V or 24V will be fine thanks

And your input to the project is...........?

Look at PWM to output a variable voltage that can be used to control the power supply you need to design.

Weedpharma