Pages: [1]   Go Down
Author Topic: struggling choosing a transistor base resistor  (Read 547 times)
0 Members and 1 Guest are viewing this topic.
reading,berkshire
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all
looking for some help on choosing a base resistor for a transistor!
transistor is a ZTX300 (was the only one i could find lying around.) Im trying to run a relay from my arduino,its rated voltage is 24V and coil current is 30mA.
Ive done numerous calcs and came up with different resistor values!! Heres the one im semi confident on! Please let me know id i done it wrong
Data sheet links
transistor   http://www.datasheetcatalog.org/datasheet/zetexsemiconductors/ztx300.pdf
Relay          http://docs-europe.electrocomponents.com/webdocs/0e8b/0900766b80e8b0be.pdf

formula Rb = Vc*hfe / 5*lc  my calcs (24*50)= 1200/(5*.03)=8000
So going by this am i correct in assuming i need an 8K resistor?
If not,does anyone know what resistor i need because my head hurts and i give up
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 631
Posts: 34488
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The exact value is not important. It will tell you only the maximum value to use. Normally you will want to supply between 2 times and 10 times the current you want to give yourself some margin.
So while 8K sounds reasonable then anything between 1K and 4K7 would be fine.
Logged

reading,berkshire
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cheers Mike
when you say 2 times to 10 times the current i presume you mean the base current?
I have also choosen a diode to go across the relay coil (1N4001) i presume this would be fine as it is just acting as a surge protector
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 631
Posts: 34488
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes that is base current.
The diode is fine, it is not surge current however it is reverse voltage caused when the relay turns off.
Logged

UK
Offline Offline
Faraday Member
**
Karma: 100
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

In a perfect world you would use a schottky diode as it has a faster switching speed so can bleed off the back-emf sooner, but a 1N4001 is fine.
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

reading,berkshire
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cheers guys.
1 more for yer. Do i need to connect the gnd on arduino to the 0v of the 24V or will the arduino be fine gnd through the usb cable
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 631
Posts: 34488
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Do i need to connect the gnd on arduino to the 0v of the 24V
Yes, yes, yes

This is why:-
http://www.thebox.myzen.co.uk/Tutorial/Power_Supplies.html
Logged

reading,berkshire
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cheers Mike. Remember reading that a month or so back aswell smiley-red
Logged

Pages: [1]   Go Up
Jump to: