Using 5V arduino with 12v solenoid lock

I wish to use an arduino like this with a 12v solenoid lock like this. How can I do this. I am told that using this might work, but I am also thinking I can use a transistor's amlification to do that. Can you tell which one is better and if transistor, how to do that?

• you can definitely use a somewhat small transistor (600mA) for that. search the web for "arduino relay interface", choose a circuit, subsitute the relay with your solenoid, and you're done. Commented Nov 8, 2015 at 8:18
• That ebay solenoid does not distinguish in its "datasheet" between its pull and hold power consumption; not does it list real and apparent/total power. Good luck sizing a transistor for that. Also if I multiply their stated current and voltage (presumably to get total power), I get less than their stated real power. Commented Nov 8, 2015 at 9:25
• @RespawnedFluff: Since it's a DC solenoid there'll be no difference between its pull an hold power consumption except for the moment when it's first connected to the 12 volt supply. Also, since it's DC, it'll have a power factor of 1 and there won't be any "apparent power" associated with it. Finally, 12volts, DC, times 0.6 amperes is 7.2 watts, precisely what they state.
– EM Fields
Commented Nov 8, 2015 at 9:51
• @EM Fields: They state 7.5W. Also look up some real solenoid datasheets and see that the activation voltage is a few volts below the nominal one, which makes their calculation even more dubious. And no, even for a DC solenoid you have different pull and hold currents. electronicdesign.com/analog/… Commented Nov 8, 2015 at 9:53
• @RespawnedFluff: Agreed on the 7.5 watt number. However, since there'll never be anything pulling on the plunger, the hold power will be irrelevant and all that'll matter will be the 7.2 watt pull-in power required to get it moving against the spring.
– EM Fields
Commented Nov 8, 2015 at 10:00