-
Notifications
You must be signed in to change notification settings - Fork 1
Blinking the Built‐in LED on Arduino Uno using Arduino IDE 1.8.x
Step-by-step instructions for blinking the built-in LED on Arduino Uno using the Arduino IDE 1.8.x:
-
Install the Arduino IDE: Visit the Arduino website (https://www.arduino.cc/en/software) and download the Arduino IDE 1.8.x suitable for your operating system. Install it by following the provided instructions.
-
Connect the Arduino Uno: Connect your Arduino Uno board to your computer using a USB cable.
-
Open the Arduino IDE: Launch the Arduino IDE.
-
Select the Arduino board: Go to the "Tools" menu and select "Board." From the dropdown menu, choose "Arduino Uno."
-
Select the serial port: Go to the "Tools" menu, navigate to "Port," and select the appropriate serial port connected to your Arduino Uno.
-
Create a new sketch: Go to the "File" menu, select "New," and a new sketch window will open.
-
Write the code: In the sketch window, paste the following code:
const int LED_PIN = 13;
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, HIGH);
delay(1000);
digitalWrite(LED_PIN, LOW);
delay(1000);
}
This code will blink the built-in LED on pin 13 of the Arduino Uno board with a 1-second interval.
-
Upload the code: Click on the "Upload" button (right-facing arrow) in the Arduino IDE toolbar to compile and upload the code to the Arduino Uno.
-
Verify and upload: The Arduino IDE will compile the code and upload it to the Arduino Uno. If everything goes well, you should see the LED on pin 13 blinking at the specified interval.
That's it! You have successfully used the Arduino IDE 1.8.x to blink the built-in LED on the Arduino Uno. Feel free to modify the code or experiment with different blinking patterns to explore the capabilities of the Arduino platform.