1

I found this motor from an old piece of equipment. When a button is pressed, the battery powered motor turns on. When I took apart the button, its functionality was to make two metal plates touch each other, creating a current flow. I'm wondering if I can hook up these wires to my Pi's GPIO pins and program a script that will fake the wires being connected. Is this possible?

2 Answers 2

2

A relay is your best choice, as it will connect the wires, and will require only one line. The script will have to power the relay to activate the motor. Connect the relay to the button's signal, and it will simulate the button when you close the relay.

2
  • What specs should I look for when trying to find a compatible relay? Commented Jan 21, 2017 at 15:05
  • @user Try this Commented Jan 23, 2017 at 14:16
2

No! You can use a relay.

I suggest you do some research before connecting anything to your Pi and learn a bit about circuitry.

There are hundreds of books and tutorials.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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