Buck converter (step-down DC-DC) power supply slice.
Arduino-based control sketch (slice_buck.ino).
slice_buck.ino