Hey friends the circuit shown here give us an idea how we can operate a 12v relay using a 5v input from microcontroller. I have not shown here the micro controller but instead I have place switch which change the input voltage from (400 mV to 5V) and when we change the voltage you will notice that relay is switching ON-OFF. Friends you can try it yourself and notice the operation of relay. Have fun learning electronics.