B
[email protected]
- Jan 1, 1970
- 0
Hello again, I'm working on a new PIC experiment in which I'm trying to
control a motor. I'm ignoring the speed of the motor and just trying to
have it be either on or off. The first thing that I tried was just to
attach one lead of the motor to ground and the other to an output pin
on the PIC. I quickly found out that this does not work. I assume that
this is because the chip cannot provide the current that the motor
requires. I then figured that the way to do this was to use a
transistor. I did a bit of reading on the web and it seemed like this
was the right idea. I devised the following circuit for how to do this:
http://img151.imageshack.us/img151/8270/circuit7dx.jpg
With this design I need to put the pin low in order to turn the motor
on. It works great if I use an LED, but with the motor in place it acts
sort of strangely. I must be ignoring something. Perhaps I'm using the
wrong transistor. I'm using a 2N3906 and a high of about 3V.
Thanks for any input!
Brick
control a motor. I'm ignoring the speed of the motor and just trying to
have it be either on or off. The first thing that I tried was just to
attach one lead of the motor to ground and the other to an output pin
on the PIC. I quickly found out that this does not work. I assume that
this is because the chip cannot provide the current that the motor
requires. I then figured that the way to do this was to use a
transistor. I did a bit of reading on the web and it seemed like this
was the right idea. I devised the following circuit for how to do this:
http://img151.imageshack.us/img151/8270/circuit7dx.jpg
With this design I need to put the pin low in order to turn the motor
on. It works great if I use an LED, but with the motor in place it acts
sort of strangely. I must be ignoring something. Perhaps I'm using the
wrong transistor. I'm using a 2N3906 and a high of about 3V.
Thanks for any input!
Brick