Electrical – use a Step-up Power Converter with Arduino instead of a Relay

arduinoconverterrelaystep-up

I want to make two projects that use a 12v input, a solenoid valve and a electrical lock. Both need a 12v current to work. I've seen some exemples for both projects that use a relay and an Arduino to activate mechanisms that need more than the 5v Arduino´s output. I was wondering, however, if I could use a Step-up Power Converter connected directly to Arduino´s Digital Pin. Is it possible? And is it safe?

Best Answer

A relay (solid-state relay or FET) is the best way to switch high voltage from low voltage.

Arduino has low current output not meant to do what you're describing. It's not possible. Use a relay or a FET. It is even safer to use an optocoupler for isolation.