Description
Here I created a simple circuit that would make an LED blink at specified speeds and intervals using the Arduino board.
To start, I loaded the example of the blink code within the Arduino program. Here, I realized that the #13 pin would be active. From there I attached wires to both pin13 and the ground. I dont have too much experience with the breadboard and had to make sure everything was flowing correctly. Once I had everything working, I increased the blinking speed by decreasing the amount of time the light is on and the interval time to 50ms.
Components
[1] Arduino Uno
[1] 220-ohm Resistor
[1] Breadboard
[1] LED blue light
Code
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(50); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(50); // wait for a second
}
- Login to post comments