Professional Documents
Culture Documents
Date: / /2023
Figure 1.LED
Connection Diagram:
Procedure:
1. Make a circuit like shown in schematic or you can directly mount on Arduino.
2. Arduino’s pin 13 connected to positive leg of LED through resister.
3. Arduino’s GND connected to negative leg of LED.
4. Write code and upload it on Arduino. To upload code into Arduino, need to attach Arduino
with pc using USB cable which is come with Arduino board.
5. Observe the output.
Conclusion:
You should see your LED turn on and off. If the required output is not seen, make sure you have
assembled the circuit correctly, and verified and uploaded the code to your board.
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}