Procedure
- Source
- Target
NOTE: First make the connections, then move to code compilation.
1. Connect Source Pin of LED with Pin(NO) of Relay.
2. Connect Target Pin of LED with GND Pin of Arduino.
3. Connect Pin(C) of Relay with Pin11 of Arduino.
4. Connect Pin6 of Arduino with Pin1 of Breadboard.
5. Connect Pin3 of breadboard with Pin4 of breadboard.
6. Connect Pin5 of Breadboard with GND Pin of Arduino.
7. Connect Pin2 of breadboard with Pin(5V) of Arduino.
8. Click on "Check" button to check the connections.
9. For the code compiler:
- Set pin Mode of Relay as OUTPUT.
- Set pin Mode of LED as OUTPUT.
- Set digitalwrite of LED as HIGH.
- Set digitalwrite of Relay as HIGH.
- Ser digitalwrite of Relay as LOW.
10. Now, click on "COMPILE" button to run and check the code.
12. Click on "RESET" button to reload the webpage.
