I am building a smart lock and while the software and hardware parts are OK, the electronics part are an adventure for me.
I have an old 230-12V power unit and I need to use it to power both a Raspberry Pi (5V) and the lock (12V). I found a 12→5V converter and the last part remaining is to be able to control the 12V power with an RPi GPIO.
What is the kind of device I am supposed to look at? I am ready to dive in but need a pointer in the right direction.
I would very much prefer a device that is ready to use, but soldering is probably not a problem either.
I imagine that I could build a PBC on which everything would be in one place, nice and compact but this will be for a future exercise (maybe the low power part would come pretty soon, mains will wait)