I would like to be able to power the RPi and the solenoid from the same wall socket using a single power supply. For example, I've been using a 5V 2.5A switching power supply to power the RPi, but am open to other options.
How would I go about doing this? I'm open to using a rechargable battery pack to power the solenoid if it can be recharged via the power supply or RPi. Size is a consideration - smaller components are better. Any input is welcome!