i'm new in raspberry pi. i want to parallel powered my raspberry pi with 12 v and 5 amp, because i want to powered not just the raspberry pi. i want to powered a solenoid too that run in 12 volt and 4 amp. so i have a idea to powered it from gpio, but refer to this link, the raspberry pi can't powered from the gpio. does anyone has a solution to powered the raspberry pi besides from usb c power supply ? thank you very much and pardon my english.
This is how to do it:
Ordinarily, solenoids are used to actuate a mechanical device, and have a "control" input that is typically connected to a switch. However, as you've not provided any details on the solenoid or the application, I've shown a manual toggle switch in the schematic. This can be replaced with a relay or a transistor if needed.
I think the rest of the circuit is self-explanatory, but please let us know if you have questions.