Offline
Newbie
Karma: 0
Posts: 11
|
 |
« on: April 08, 2011, 04:42:50 am » |
Hi everybody, first of all, thank you for this great forum which help me to intro to Arduino. I want to control a small dc motor with a pin from Arduino. I saw a schematic here http://www.hispavila.com/3ds/atmega/motorescc_files/motorcc_tr.gif and I am wondering how can I know the kind of the transistor for this power (5v)? Also, why do I have to put a resistor in front of the Arduino's pin? It is protection? I know they are electronic questions. Thanks in advance!
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19066
I don't think you connected the grounds, Dave.
|
 |
« Reply #1 on: April 08, 2011, 05:03:55 am » |
If you think about it, the voltage has very little to do with the choice of transistor. Imagine you'd said "12V motor" - it could be a model railway loco...or a diesel engine starter motor. Both could be termed "small".
The diagram suggests an NPN, but you need to know the stall current of the motor.
The resistor is there as a current-limiter.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #2 on: April 08, 2011, 05:16:40 am » |
Sorry, I didnt write details for the motor. Is a 3v motor so I think I dont need a transistor, do you agree?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #3 on: April 08, 2011, 05:20:46 am » |
Link specs of the motor.
As AWOL said volts don't matter. It's the current draw of the motor.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #4 on: April 08, 2011, 05:23:20 am » |
Mine is the first one: http://www.bitsbox.co.uk/motors.htmlAs I can see, I need 450 mA to feed the motor and Arduino´s pin only provide 40 mA. Right?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19066
I don't think you connected the grounds, Dave.
|
 |
« Reply #5 on: April 08, 2011, 05:41:23 am » |
Something like a TIP120? I think even a 2n2222 would work. Quite a lot of current for a small motor - no stall current posted.
|
|
|
|
« Last Edit: April 08, 2011, 05:43:54 am by AWOL »
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #6 on: April 08, 2011, 05:45:41 am » |
I am interested on how do you know is TIP120? where do you look for? what is the way to know a specific transistor? thanks for your answers
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19066
I don't think you connected the grounds, Dave.
|
 |
« Reply #7 on: April 08, 2011, 05:50:20 am » |
I think the TIP120 may be overkill, but is a good solid common transistor to use for stuff like this. It is a Darlington (actully it is two transistors in one package), so has high gain, and is good for up to about 5 amps (IIRC).
The 2n2222 is good for up to about 1 amp, but the gain is only about 1/3rd that of the TIP120.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #8 on: April 08, 2011, 05:57:50 am » |
but the motor only need 450 mA and you speak about 5 A
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19066
I don't think you connected the grounds, Dave.
|
 |
« Reply #9 on: April 08, 2011, 06:01:37 am » |
Yes. That's right 450mA < 5A
I have a bag full of them, so I use them a lot.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #10 on: April 08, 2011, 08:53:20 am » |
Thank you for explain it me so patiently. I will try with one of them ;-)
|
|
|
|
|
Logged
|
|
|
|
|
|