Arduino: Controlling the Onboard LED: Part 1

About: My hobbies are electronics and photography. I have an Arduino which I like to program, and I make stop motion videos with my camera. I also have a great interest in DIY.

In this instructable, I will show you how to control the onboard LED on an Arduino.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Arduino IDE and the Uno

Step 2: LED

Plug the Arduino in and open the program. Its onboard LED should start blinking. This is normal, as this is the pre-loaded program. Type in or copy the following:

void setup() {

void loop() {

digitalWrite(LED_BUILTIN, LOW); }

Upload the program and the yellow LED should turn off.

Change the LOW to HIGH and the yellow LED should turn on.

Congratulations! you now know how to turn the onboard LED of the Arduino on or off.

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest



    1 year ago

    One thing: The board I have is not the Uno. I have the Mega.