Professional Documents
Culture Documents
PRACTICAL NO 2 Iot W
PRACTICAL NO 2 Iot W
02
AIM - Interfacing LED, Buzzer & Relay with Arduino uno r4 wifi.
THEORY –
The relay is the device that open or closes the contacts to cause the operation of the
other electric control. It detects the intolerable or undesirable condition with an assigned
area and gives the commands to the circuit breaker to disconnect the affected area. Thus
protects the system from damage. A common form of industrial Relay module looks
something like this
Used Resources:
Circuit diagram -
SOURCE CODE –
RELAY_PIN = 3;
output pin
} void
loop()
PROCEDURE –
• Follow the circuit diagram and make the connections as shown in circuit diagram
• Open the Arduino IDE software on your computer. Coding in the Arduino language
will control your circuit. Open a new sketch File by clicking on New.
• Write the code as per Source Code.
• Compile the program and check for any errors.
• Upload the code to Arduino through the USB connector according to the COM port.
• Observe the result.
WORKING –
ALGORITHM –
ERRORS FACED –
Toggling the Relay within the seconds for many times will leads to damage the same.
RESULT –
The LED, Buzzer, Relay is turn ON for 1 sec sequentially (In linear manner).
• After 1 sec LED, Buzzer, Relay was turned OFF for 0.2 sec respectively.
• It keeps on looping until the Arduino gets power supply.
CONCLUSION –
Marks Obtained Dated signature
of Teacher
Attendace30 Performance Skills Safety Conclusion Total
% 20% 2 precaution 20% 25
0% 10%