but can anyone explain what are the differences between the two approaches? And why people is following the second one [the pre-built 4-MOSFET booster boards]?
The pre-built boards are easier. You don't have to source the PCBs and all of the other components, and you don't have to solder anything. They let you build out your system incrementally, in that you can buy four outputs at a time.
The pre-built boards are a bit cheaper, especially outside of the US, and especially if you don't need as many ports as the expansion boards have. If you're in the US, building the main + power board will run you $100 to $150, depending on where you get the parts. The MOSFET boards run about $10 each, so for the same money you could buy 10 of the pre-built boards.
The expansion boards are a bit neater and more compact. You'd only have 2 or 3 boards overall (connected by tidy little ribbon cables). The expansion boards also organize the input wiring a bit better, as the GPIO ports on the KL25Z are arranged somewhat randomly - e.g., the button inputs can't be grouped together onto a single header the way they are on the expansion boards.
The expansion boards give you the ability to have many more ports overall. With the pre-built MOSFET boards, you're limited to the GPIO capacity of the KL25Z. At the absolute most, you can have about 45 output ports - but that assumes you don't want any plunger or button inputs. If you do want plunger and/or button inputs, you have to trade those against output ports. In the default standalone KL25Z configuration, 22 ports are allocated for buttons, another several are allocated for the plunger, and about 22 are assigned for outputs. You can repartition that as you wish, but any output port you add will take away one of the inputs.
And importantly, the KL25Z is limited to 10 PWM-capable ports. PWM is necessary if you want to be able to dim a light or modulate a motor speed, so it's basically required for all flashers, button lamps, and the shaker and gear motor ports. 10 PWM ports isn't enough for the standard 5-flasher set. In contrast, the expansion boards give you 16 PWM ports for the flashers on the main board, another 16 PWM ports for low-power LEDs (like flipper button lamps), also on the main board, and 32 additional PWM ports on each power board.
So, to summarize the respective trade-offs:
MOSFET boards:
- easier
- may be cheaper for smaller systems
- limited to 20-40 ports overall
- limited to 10 PWM ports
- output ports trade against input ports
Expansion boards:
- almost unlimited ports
- almost unlimited PWM ports
- neater
- more compact
- may be cheaper for a large system