The motor is controlled by a step driver using 12V.
Since my schematics is pretty complicated (ESP, stepdriver, multiple input/output stuff, soundcard and so on) it makes no sense to post all of that.
Fir this project I ordered a pre-made board similar to what you posted.
But when I want to design a pcb for another project lateron is there a standard buck converter chip that uses only a few parts like the 7805 but just as buck converter?
I assume there should be a similar standard unit that people use on their pcb right?
First of all if you add significant heatsink to a 7805 it should still do the trick. They have an automatic over-heat shut down function which kicks in at 115c of the top of my head. That said i have also switched to a buck converter for the same application, though i tend to draw a bit more with some extra 5v components.
the LM2596 is what you would want, just a diode and an inductor extra compared to the 7805. Comes in a few varieties, of course 5v but also 3.3v and adjustable. If you have no real 5v devices you should probably just go for the 3.3v version, so also your ESP32 pcb stays really cool. There are SMT versions which allow you to use the PCB as a heatsink as well. (i do that using a 7805, and that actually does suffice, but does get a tad warm as well.)