[Great Scott] should win an award for quickest explanation of a buck converter ... Arduino, but a closer inspection with an oscilloscope still shows 5V peaks that would be dangerous to a 3.3V circuit.
A simple boost or buck converter can’t do both ... your hands really dirty in the construction of such circuits, this ATtiny-based boost converter circuit is fun to play with.