The circuit shown in the figure is intended to drive solenoids up to 2 A from a signal at the high level or a voltage between 1 and the supply voltage. The circuit was obtained from my Mechatronics Sourcebook published in the United States. The transistor can be the TIP32 or even the BD136 if the solenoid current is up to 500 mA. The supply voltage can be between 3 and 12 V and the input current is a few mA.