0

enter image description here

Can this setup work. I am new to robotics and raspberry pi. I had the motor lying around previously. What I am trying to get is that when the raspberry pi boots up the motor should start spinning and work as a system fan cooler

1
  • Welcome, @HackNoobGod. Your picture is quite unclear, as the lighting isn't great and it makes it hard to see exactly what you've wired together. A clearer picture or a diagram would probably be helpful, and identifying the parts you're using (model name etc) will probably help you get an answer.
    – Aurora0001
    Jan 20, 2018 at 11:21

2 Answers 2

1

If you want the motor permanently running connect it to a 5V and ground pin on the expansion header.

If you want to control the motor (on/off, change speed, change direction) you need to connect it via a motor driver board (or equivalent circuitry). A motor driver board can be controlled by the Pi GPIO and in its turn can control the motor. Suitable motor driver boards can be bought from eBay for a few UK pounds.

It is not safe to connect a motor direct to the Pi GPIO (the 5V and 3V3 and ground pins are not GPIO).

2
  • robotshop.com/ca/en/… Jan 21, 2018 at 1:10
  • Thank you for helping me out. It turns out that I didn't know about 5v pins and ground pins not being gpio. I tried an it worked😁😁 Jan 21, 2018 at 12:10
0

NO!

A motor is producing a EMC that could kill your GPIO and in worst case your Raspberry Pi.

And the current needed to run the motor is probably exceediing the limit of the GPIO!

You need a motor driver circuit, example enter image description here

Your Answer

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

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