Procedure
- Source
- Target
NOTE: First make the connections, then move to code compilation.
1. Drag and drop BreadBoard, Arduino and all other Components first.
2. Connect Pin1 with Pin2 of Breadboard.
3. Connect source Pin of LED with Pin3 of Breadboard.. And target pin of LED with Pin2 of Breadboard
4. Connect Pin4 of breadboard with Pin11 of Arduino.
5. Connect Pin5 of breadboard with Pin7 of breadboard.
6. Connect Gnd Pin of Arduino with Pin6 of Breadboard & Connect Pin(5V) of arduino with Pin8 of Breadboard.
7. Connect Pin9 of breadboard with Pin(A1) of Arduino.
8. Click on "Check Conn." button to check the connections.
9. For the code compiler:
- Set the LDR pin of LED pin as "INPUT".
- Set the LED pin to "OUTPUT".
10. Now, click on "COMPILE" button to run and check the code.
11. Right click on "LDR" and set the input value between 1 to 5.
12. Click on "RESET" button to reload the webpage.
