Converting ~5V DC to 12V DC safely to turn on/off magnetic l

Hello

I have a 12v magnetic lock, which is just an electromagnet. here the link.http://www.ebay.com.au/itm/Electronic-Latch-Lock-Catch-Door-12V-Electro-magnet-Release-Solenoid-Slant-Slug-/151986271326?hash=item236316745e:g:wvEAAOSwAYtWKf0S

I want to turn it on with my Arduino Uno microcontroller. I need 12v. I need a 5v to 12v DC convertor. Is Pololu 12V Step-Up Voltage Regulator U3V12F12 a good solution? here the link of the product: https://www.pololu.com/product/2117/specs

Do I need a part of Pololu 12V Step-Up Voltage Regulator any additional transistor or diode or relay? Also, is the current from the Arduino enough to power a magnetic lock, or should I have an external power source?

Thanks

Hello.

Supplying power to your lock device’s solenoid through the an Arduino’s IO pin is inappropriate, so you would not be able to use that regulator like that. In general, it probably makes more sense to use a MOSFET to control your magnetic lock. You would still need something to supply 12V to the MOSFET, but since you are using an Arduino Uno, you could probably use the same 12V supply to power both the Uno and the MOSFET.

- Grant

thanks

Thanks for your replays. Very helpful. Just one more thing. Are these elements a good solution:

1.MOSFET : N-Channel 60V 30A (https://www.sparkfun.com/products/10213)

  1. Diode: Vr - Reverse Voltage:50V; If - Forward Current:1A (http://www.mouser.com/ProductDetail/Fairchild-Semiconductor/1N4001/?qs=PKwgOmPR8%252bnXpabSf4kJpg%3d%3d)

Any additional resistor needed? Any diagram circuit how to connect all of them?

I found these diagram , is that ok? http://electronics.stackexchange.com/questions/212133/how-do-i-turn-on-a-magnetic-lock-with-an-arduino

Thanks

The diagram you linked to looks fine. Also, on the product page for the MOSFET you linked to, it looks like there is a link to a tutorial about using MOSFETS, including circuit diagrams, you might find helpful.

- Grant