Interfacing a relay circuit with a PIC microcontroller We are going to see how to interface a relay to a PIC micro controller. But before that, you need to know what is a relay. A relay is a switching device which permits the switching of a load in a circuit or to a supply. The advantage of using a relay is due to the fact that, this device can permit the switching of high loads in circuits. Before interfacing a relay in a circuit, the relay must be chosen to suit the supplying circuit and the required load. For example, th ere are relays which operate at 5V, 6V, 12V, etc. and having a maximum load current and voltage rating. Materials PIC 16F877A, 5V relay, 5V DC source, 1 BC547 transistor, 1 diode 1N4148, 230V AC load (heater), 230V AC source, 8MHz Crystal Oscillator, 2 ceramic capacitors, 2 resistors, 1 push button. Circuit diagram of relay with microcontroller The circuit diagram is shown below. The relay is connected to PORTC of the microcontroller at Pin...
Learn and Become Familiar with Various Technologies