Interfacing Relay To Microcontroller


Rating: 0.00 / 5 
MCU Circuits / Microcontroller Circuits
Relays are devices which allow low power circuits to switch a relatively high Current/Voltage ON/OFF. For a relay to operate a suitable pull-in & holding current should be passed through its coil. Generally relay coils are designed to operate from a particular voltage often its 5V or 12V. The function of relay driver circuit is to provide the necessary current (typically 25 to 70ma) to energize the relay coil.
Interfacing Relay To Microcontroller - schematic

Figure 1 shows the basic relay driver circuit. As you can see an NPN transistor BC547 is being used to control the relay. The transistor is driven into saturation (turned ON) when a LOGIC 1 is written on the PORT PIN thus turning ON the relay. The relay

Recommended videos

  • Microcontrollers - AVR Atmega32 - Testing the programmer and building the first circuit
    Duration: 12:10.
  • Microcontroller interface to Relays by ULN 2003
    Duration: 9:57.
  • Engineering - Relay Logic Circuits Part 1 (E.J. Daigle)
    Duration: 10:17.


  • Design News
    Material choices also help determine ideal manufacturing processes and sequences. In a bigger picture, they can also spell success or failure of mission-critical processes like lean, quality validation and certification. We will take a detailed
     26 March 2014
  • Some ideal op amp configurations assume that the feedback resistors exhibit perfect matching. In practice, resistor non-idealities can affect parameters such as common mode rejection ratio (CMRR), harmonic distortion and stability.
     3 October 2013