Electrical – Base Resistor for 2N3904 help

resistors

I'm a newbie to eletronics but have a circuit diagram that uses a 2N3904 transistor to drive a relay rated at around 320ohms.
However, I already have a relay that is rated at 720 ohms which I would like to use and need to know the value of the new base resistor required.
The circuit is supplied from a 12 volt DC car battery through an LM7812 (12v out) voltage regulator. The relay I want to use (OMRON G6A 234P) is 12 volts, with 720 ohms coil and 16.7mA current rating and will have an IN4148 diode across the coil connections.
Would really appreciate it if one of you experts here could let me know what base resistor I need for the 2N3904 in this circuit.

Best Answer

It looks like you have something like this:

Schematic diagram showing 2N3904 transistor driving relay

(Original image source from ZappBots)

You don't specify what your control voltage is (the one you'd use to source current to the base) but in general, you could choose a value for the base current equal to a tenth of the load current and that way, you could choose a base resistor:

$$R_B=\dfrac{V_{control}-0.7}{I_B} $$

Since the coil needs 16.7mA, say you choose \$I_B\$ = 1.7mA. For example, if the control voltage were 5V, then \$R_B\$ would be:

$$R_B=\dfrac{5-0.7}{1.7\text{mA}}= 2.53k\Omega $$

Something close to that should work.