[ Log In ]
White prototyping breadboard with 30 tie strips and two power rails on each side.

White Prototyping Breadboard (2x30 columns of tie strips and 2x2 rows of power strips)

$7.95
Qty:
Clear Semi Transparent Breadboard

Clear Prototyping Breadboard (2x30 columns of tie strips and 2x2 rows of power strips)

$8.50
Qty:
Thumbnail: A bundle of 65 jumper wires of various length and color. Bound together with the male connectors shown in the foreground.

Bundle of 65 Male to Male Flexible Jumper Wires

$8.95
Qty:
A single mini breadboard 17X10. Black color.
Single White 17X10 mini breadboard
Single Blue 17x10 Mini Breadboard
A single 17x10 mini breadboard (Red)
Single Green Mini Breadboard

Jumper Wire Pack 140 Pieces Multi-Size Multi-Color

$6.75
Qty:
3 pin slide switch

SPDT Slide Switch 3 pin 30V

$1.49
Qty:

Getting an LED to blink on an Arduino. Basics of Arduino Programming (Parts: Arduino UNO, Red LED, 330 ohm Resistor, Breadboard)

How to get an LED to blink on the Arduino board as well as on the breadboard by using the Arduino IDE.

Using the Arduino Sketch, a program is developed to make the onboard LED blink (see code below). Alternatively, an led can be wired from the Arduino (Arduino UNO in this example) to a breadboard that contains an LED and a 330 ohm resistor and the Sketch can refer to the pins on the Arduino, in this case, 12 and GND. Any GPIO (General Purpose Input/Output) pin can be used.
int LED = 13; // This number is changed to 12 for the breadboard example

void setup()
{
    pinMode(LED, OUTPUT);
}

void loop()
{
    digitalWrite(LED,HIGH);
    delay(500);
    digitalWrite(LED,LOW);
    delay(500);
}
Response From: Patrick Hood-Daniel

Very good and focused clip of making an LED blink using an Arduino UNO. To speed up the blinking or slow it down, all you need to do is modify the delay number which is in milliseconds. Code below for a very fast example.
int LED = 13; // This number is changed to 12 for the breadboard example

void setup()
{
pinMode(LED, OUTPUT);
}

void loop()
{
digitalWrite(LED,HIGH);
delay(100);
digitalWrite(LED,LOW);
delay(100);
}

Comments and Additional Information

Have some code to share? Or additional information? Respond here:

You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.

Description:

Code (optional):