0

This question already has an answer here:

I successfully learned how to turn on an LED. Now, having a battery and a motor, I want to turn on the circuit using the Pi: basically starting the motor when I send a signal from Pi, but not sending current to the motor itself.

I want the Pi to only send the signal that I want to power the motor using the battery.

How can I do that?

A simple way would be just using an electromagnet which will turn on the circuit mechanically, but I want to use an electric component if possible.

marked as duplicate by Ghanima Aug 9 '16 at 14:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You could use a MOSFET as a switch to turn the motor on/off. – Ron Beyer Aug 9 '16 at 14:31
  • Despite the mentioning of 12V in the linked question, the idea and the answers are quite fitting. – Ghanima Aug 9 '16 at 14:43
  • @Ghanima Well, the motor thing was just an example. Another example would be to turn on any circuit, like a programatic switch. Would that work in general? Thanks! – Ionică Bizău Aug 9 '16 at 15:44
1

You can use a MOSFET, as suggested by @Ron-Beyer

MOSFET

But if it's a heavy motor you'll need to consider a opto isolated relay. (the modern version of closing a curcuit with a electro magnet, still the same technique)

Relay

And if the motor is so big, that the inrush current might get a problem : use a solid state relay! Solid State Relay

Not the answer you're looking for? Browse other questions tagged or ask your own question.