• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Get free circuit help 24/7

New Projects | Privacy Policy | About us | Contact | Disclaimer | Copyright | Videos 

You are here: Home / Electronics Tutorial / Transistor Relay Driver Circuit with Formula and Calculations

Transistor Relay Driver Circuit with Formula and Calculations

Last Updated on September 14, 2022 by Swagatam 107 Comments

In this article we will comprehensively study a transistor relay driver circuit and learn how to design its configuration by calculating the parameters through formulas.

Importance of Relay

Relays are one of the most important components in electronic circuits. Especially in circuits where high power transfer or mains AC load switching is involved, relays play the major role in implementing the operations.

Here we will learn how to correctly operate a relay using a transistor and apply the design in electronic system for switching a connected load without issues.


For an in-depth study regarding how a relay works please read this article


A relay, as we all know is an electromechanical device which is used in the form of a switch.

It is responsible for switching an external load connected to its contacts in response to a relatively smaller electrical power applied across an associated coil.

Basically the coil is wound over an iron core, when a small DC is applied to the coil, it energizes and behaves like an electromagnet.

A spring loaded contact mechanism placed at a close proximity to the coil immediately responds and gets attracted toward the energized coil electromagnet force. In the course the contact connects one of its pair together and disconnects an complementary pair associated with it.

The reverse happens when the DC is switched OFF to the coil and the contacts return to its original position, connecting the previous set of complementary contacts and the cycle may be repeated as many times as possible.

An electronic circuit will normally need a relay driver using a transistor circuit stage in order to converter it’s low power DC switching output into a high power mains AC switching output.

However the low level signals from an electronic which may be derived from an IC stage or a low current transistor stage may be be pretty incapable of driving a relay directly. Because, a relay requires relatively higher currents which may be normally not available from an IC source or a low current transistor stage.

In order to overcome the above issue, a relay control stage becomes imperative for all electronic circuits which need this service.

A relay driver is nothing but an additional transistor stage attached with the relay which needs to be operated. The transistor is typically and solely employed for operating the relay in response to the commands received from the preceding control stage.

Circuit Diagram

Transistor Relay Driver Circuit with Formula and Calculations
caution electricity can be dangerous

Referring to the above circuit diagram we see that the configuration only involves a transistor, a base resistor and the relay with a flyback diode.

However there are a few complexities that need to be settled before the design could be used for the required functions:

Since the base drive voltage to transistor is the major source for controlling the relay operations, it needs to be perfectly calculated for optimal results.

The base resistor value id directly proportional to the current across the collector/emitter leads of the transistor or in other words, the relay coil current, which is the collector load of the transistor, becomes one of the main factors, and directly influences the value of the base resistor of the transistor.

Calculation Formula

The basic formula for calculating the base resistor of the transistor is given by the expression:

R = (Us - 0.6)hFE / Relay Coil Current,

  • Where R = base resistor of the transistor,
  • Us = Source or the trigger voltage to the base resistor,
  • hFE = Forward current gain of the transistor,

The last expression which is the “relay current” may be found out by solving the following Ohm’s law:

I = Us/R, where I is the required relay current, Us is the supply voltage to the relay.

Practical Application

The relay coil resistance can be easily identified by using a multimeter.

Us will also be a known parameter.

Suppose the supply Us is = 12 V, the coil resistance is 400 Ohms, then

Relay current I = 12/400 = 0.03 or 30 mA.

Also the Hfe of any standard low signal transistor may be assumed to be around 150.

Applying the above values in the actual equation we get,

R = (Ub - 0.6) × Hfe ÷ Relay Current

R = (12 – 0.6)150/0.03

= 57,000 Ohms or 57 K, the closest value being 56 K.

The diode connected across the relay coil though is no way related with the above calculation, it still cannot be ignored.

The diode makes sure that the reverse EMF generated from the relay coil is shorted through it, and not dumped into the transistor. Without this diode, the back EMF would try to find a path through the collector emitter of the transistor and in the course damage the transistor permanently, within seconds.

Relay driver Circuit using PNP BJT

A transistor works best as a switch when it is connected with a common emitter configuration, meaning the emitter of the BJT must be always connected directly with "ground" line. Here the "ground" refers to the negative line for an NPN and the positive line for a PNP BJT.

If an NPN is used in the circuit, the load must be connected with the collector, which will allow it to be switched ON/OFF by switching its negative line ON/OFF. This is already explained in the above discussions.

If you wish to switch the positive line ON/OFF, in that case you will have to use a PNP BJT for driving the relay. Here the relay may be connected across the negative line of the supply and the collector of the PNP. Please see the figure below for the exact configuration.

PNP relay driver circuit

However a PNP will need a negative trigger at its base for the triggering, so in case you wish to implement the system with a positive trigger then you may have to use a combination of both NPN and PNP BJTs as shown in the following figure:

If you have any specific query regarding the above concept, please feel free to express them through the comments for getting quick replies.

Power Saver Relay Driver

Normally, the supply voltage for a operating a relay is dimensioned to ensure that the relay is pulled-in optimally. However, the required retaining voltage is typically much lower.

This is usually not even half the pull-in voltage. As a result the majority of relays can work without problems even at this reduced voltage, but only when it is ensured that at the initial activation voltage adequately high for the pull-in.

The circuit presented below may be ideal for relays specified to work with 100 mA or lower, and at supply voltage below 25 V. By using this circuit two advantages are assured: first of all the relay functions using substantially low current; at 50 % less than the rated supply voltage, and current reduced to around 1/4 of the actual rating of the relay! Secondly, relays with higher voltage rating could be used with lower supply ranges. (For instance a 9 V relay that is required to operate with 5 V from a TTL supply).

operating high voltage relay with low supply

The circuit can be seen wired to a supply voltage capable of holding the relay perfectly. During the time S1 is open, C1 gets charged via R2 upto the supply voltage. R1 is coupled to the + terminal and T1 remains switched OFF. The moment S1 is presed, the T1 base gets connected to supply common through R1, so that it switches ON and drives the relay.

The positive terminal of C1 connects to the common ground through the switch S1. Considering that this capacitor initially had been charged to the supply voltage its -terminal at this point becomes negative. The voltage across the relay coil therefore reaches two times more than the supply voltage, and this pull in the relay. Switch S1 could be, certainly, be substituted with a any general purpose transistor which can be switched on or off as required.

You'll also like:

  • 1.  P-Channel MOSFET in H-Bridge Applications
  • 2.  Sensorless BLDC Motor Driver Circuit
  • 3.  How Wireless Power Transfer Works
  • 4.  How an Accelerometer Works
  • 5.  How Buck Converters Work
  • 6.  What is IGBT: Working, Switching Characteristics, SOA, Gate Resistor, Formulas

About Swagatam

I am an electronic engineer (dipIETE ), hobbyist, inventor, schematic/PCB designer, manufacturer. I am also the founder of the website: https://www.homemade-circuits.com/, where I love sharing my innovative circuit ideas and tutorials.
If you have any circuit related query, you may interact through comments, I'll be most happy to help!

Have Questions? Please Comment below to Solve your Queries! Comments must be Related to the above Topic!!

Subscribe
Notify of
107 Comments
Newest
Oldest
Inline Feedbacks
View all comments

Primary Sidebar

Categories

  • 3-Phase Power (15)
  • 324 IC Circuits (19)
  • 4017 IC Circuits (52)
  • 4060 IC Circuits (26)
  • 555 IC Circuits (99)
  • 741 IC Circuits (20)
  • Arduino Engineering Projects (83)
  • Audio and Amplifier Projects (115)
  • Battery Chargers (83)
  • Car and Motorcycle (95)
  • Datasheets (74)
  • Decorative Lighting (Diwali, Christmas) (33)
  • Electronic Components (101)
  • Electronic Devices and Circuit Theory (36)
  • Electronics Tutorial (120)
  • Fish Aquarium (5)
  • Free Energy (34)
  • Fun Projects (13)
  • GSM Projects (9)
  • Health Related (20)
  • Heater Controllers (29)
  • Home Electrical Circuits (103)
  • How to Articles (20)
  • Incubator Related (6)
  • Industrial Electronics (28)
  • Infrared (IR) (40)
  • Inverter Circuits (98)
  • Laser Projects (12)
  • LED and Light Effect (93)
  • LM317/LM338 (21)
  • LM3915 IC (25)
  • Meters and Testers (66)
  • Mini Projects (149)
  • Motor Controller (67)
  • MPPT (7)
  • Oscillator Circuits (26)
  • PIR (Passive Infrared) (8)
  • Power Electronics (34)
  • Power Supply Circuits (79)
  • Radio Circuits (10)
  • Remote Control (48)
  • Security and Alarm (62)
  • Sensors and Detectors (121)
  • SG3525 IC (5)
  • Simple Circuits (75)
  • SMPS (29)
  • Solar Controllers (61)
  • Timer and Delay Relay (53)
  • TL494 IC (5)
  • Transformerless Power Supply (8)
  • Transmitter Circuits (41)
  • Ultrasonic Projects (16)
  • Water Level Controller (45)

Calculators

  • AWG to Millimeter Converter
  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Small Signal Transistor(BJT) and Diode Quick Datasheet
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator

© 2023 · Swagatam Innovations

wpDiscuz