Voltage Step-Down (Buck) Converter Module Schematic (MP1584)
Drawing a KiCad schematic for a 4056 battery management system (BMS) module was an educational exercise. I've only recently added that BMS module to my repertoire of tools, and now have a better understanding of what that module could and could not do. My next KiCad practice will look at an old friend. I've been using MP1584-based voltage step-down converter (a.k.a. buck converter) for years, ever since I found it worked well to supply a steady 5V DC (up to 3A) to a Raspberry Pi from a battery pack's varying voltage levels.

For the 4056 schematic exercise, I started on my own then checked my answer against others I found online. I'll go a different route this time, because the components on this module are not labeled. It's a minor thing but I want consistent component labels (R1, R2, etc) between my exercise and the answer key, so I'll start by comparing the module against "typical application" schematic in the datasheet and label matching components with the same name.

I flipped the back side image so traces and vias would line up as I compare these two pictures.

I knew there would be some differences between this module and the "typical application" circuit, because it has a potentiometer to adjust the output voltage whereas the datasheet sample schematic had no such adjustment provision.

Here's what I came up with. The potentiometer replaced resistor R1 in the datasheet schematic, acting as the upper half of a voltage divider that provides a feedback signal for the MP1584. Interestingly, this module preserved an option for fixed output by with open pads ready for a small surface-mount resistor. I labeled this pad R11. To convert this module to fixed output, we can unsolder the potentiometer and solder something in R11.
Resistors R5 and R6 formed another voltage divider, whose output level will dictate whether the MP1584 is enabled and running (>1.5V) or go to low power sleep (<1.2V) I found these earlier in an attempt to raise the enable voltage level. This schematic exercise confirmed my earlier understanding was correct and provided context relative to the rest of the module.
Capacitor C6 in the datasheet schematic was part of the COMP (control loop frequency compensation) circuit, but it was omitted on this module leaving just its friends C3 and R3 to do the job. I don't understand enough to know why this is OK. Or if it's not OK, what the consequences might be.
It's probably not dropping capacitors for the sake of reducing component count, because the module actually added two capacitors not on the datasheet sample schematic: one each to help buffer input and output voltage. The small C11 is electrically parallel to the larger C1 buffering between VIN and GND. And a small C21 is electrically parallel to the larger C2 between VOUT and GND. It's possible these capacitors needed to be close to something. If not, using different capacitors help smooth out response across the frequency range. In the intended use where MP1584 is part of a known circuit, specific frequency response can be planned for. But since this is a module that may be connected to different circuits, compatibility across a broader range makes sense.
One detail I found interesting was the BST (bootstrap) pin, which the datasheet explained is part of the power supply circuit for the high-side MOSFET driver. That seems reasonable except it is supposed to be connected to SW (switch) via a capacitor. SW is the output signal for the high-side switch. How is that high-side MOSFET powered by its own output? There must be something interesting going on with the startup behavior of this pin. Is it typical of buck converters? I can look at another one to compare.
This KiCad learning project is publicly available on GitHub