Noob here. If I plug in my DC motor into 5V and GRD, it will run. However, plugging the DC motor into GRD and an Arduino pin and then using digitalWrite(dc_pin, HIGH), the motor will not spin. It will spin if I set up the DC motor with a transistor and control the transistor with an Arduino pin. Why is this? Is the Arduino pin not giving out 5V when set to high?
What I was hoping to do is this: Plug both ends of the DC motor into Arduino pins. Then set one pin to HIGH and one to LOW, making the motor spin. Then I would switch the first pin to LOW and the second pin to HIGH, reversing the direction that the motor spins. Any reason why this wouldn't work?
Thanks!!!