Go Down

Topic: struggling choosing a transistor base resistor (Read 566 times) previous topic - next topic

acecore

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

Grumpy_Mike

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.

acecore

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

Grumpy_Mike

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.

majenko

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.
Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

acecore

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

Grumpy_Mike

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

acecore

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

Go Up