Relays allow us to control the high power circuits or instruments using low power circuits and voltage levels such as output of microcontrollers. Interfacing relays to 8051 or any other microcontroller is just simple as controlling a LED.
A relay consists of a coil which is driven by low power circuits such as microcontrollers in order to control high power ac circuits through output switches. Normally there are two types of switches in a relay, they are Normally Open (NO) and Normally Closed (NC) contacts. 'NO' contacts are open when relay is not activated where as the 'NC' contacts are closed, when relay is activated by supplying power to the input coil, the 'NO' contacts are now closed and the 'NC' contacts are open.
The circuit diagram for interfacing relay to a 8051 microcontroller is shown below.
The assembly program for interfacing relay is given below.
;************************************************* |
No comments:
Post a Comment