I'm learning electronics, so I want to sanity check this approach in case I'm missing something.
I have an arduino (at 5V) controlling power to a set of lights at 12V, via a mosfet. This is all fine, using a separate 5V and 12V power supply.
Is there anything to stop me using 12V for both in parallel, taking one of the parallel branches, passing it through a Buck converter to 5V, and supplying the Aruino, then using the other branch, raw 12V to power my lights, with the arduino switching the 12V via the mosfet.
I've plenty of available power in the 12V supply, but is that in-parallel structure what I need.
I feel like it is an obvious question, but I was unable to google it. Examples seem to use different power supplies for the control + switched circuit. Is my suggestion the way complex circuits use a single power supply for different voltages?