Hi guys,
I am trying to run a simple geared DC motor from a PIC mikrocontroller. This DC motor has high torque and slow speed. When I connect this motor directly to a 5V supply with 0V reference, the motor would run. But I need this motor to spin in both direction. So I connected this motor to two PIC pins (PORTE 1 and 2), and I would set one high and another low at a time, and to spin the other direction I'd do otherwise. The thing is, the motor does not spin when I connect it this way. To test if my program was correct, I connected two LEDs at the same port (one connected in the reverse direction), and the LED would blink one at a time correctly.
Does that mean the PIC is not supplying enough current to the motor? I did try to connect one side of the motor to a direct 5V and another one to the PIC pin. When I set this Pin to high, the motor wouldnt run, and when I set it to low, the motor would run (expected result). But unfortunately I wont' be able to make the motor spin at both direction this way even though I could control the motor's start and stop rotation through a microcontroller.
My guess is that the PIC is not supplying enough current to the motor. Im a noob, im not sure how I should handle this matter. Ive heard about current amplification using transistors. Does anyone know how I can do this? Or is there any other suggestion to make this motor spin at both direction by using a PIC?
Thanks alot guys, any suggestions are welcomed. Ive ran out of ideas.
I am trying to run a simple geared DC motor from a PIC mikrocontroller. This DC motor has high torque and slow speed. When I connect this motor directly to a 5V supply with 0V reference, the motor would run. But I need this motor to spin in both direction. So I connected this motor to two PIC pins (PORTE 1 and 2), and I would set one high and another low at a time, and to spin the other direction I'd do otherwise. The thing is, the motor does not spin when I connect it this way. To test if my program was correct, I connected two LEDs at the same port (one connected in the reverse direction), and the LED would blink one at a time correctly.
Does that mean the PIC is not supplying enough current to the motor? I did try to connect one side of the motor to a direct 5V and another one to the PIC pin. When I set this Pin to high, the motor wouldnt run, and when I set it to low, the motor would run (expected result). But unfortunately I wont' be able to make the motor spin at both direction this way even though I could control the motor's start and stop rotation through a microcontroller.
My guess is that the PIC is not supplying enough current to the motor. Im a noob, im not sure how I should handle this matter. Ive heard about current amplification using transistors. Does anyone know how I can do this? Or is there any other suggestion to make this motor spin at both direction by using a PIC?
Thanks alot guys, any suggestions are welcomed. Ive ran out of ideas.