<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.cognifront.com/docs/index.php?action=history&amp;feed=atom&amp;title=LED_Blinking_with_Arduino_Uno</id>
	<title>LED Blinking with Arduino Uno - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.cognifront.com/docs/index.php?action=history&amp;feed=atom&amp;title=LED_Blinking_with_Arduino_Uno"/>
	<link rel="alternate" type="text/html" href="https://www.cognifront.com/docs/index.php?title=LED_Blinking_with_Arduino_Uno&amp;action=history"/>
	<updated>2026-11-18T01:28:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.cognifront.com/docs/index.php?title=LED_Blinking_with_Arduino_Uno&amp;diff=1401&amp;oldid=prev</id>
		<title>CogWikiEditor: /* Arduino UNO LED Control Program */</title>
		<link rel="alternate" type="text/html" href="https://www.cognifront.com/docs/index.php?title=LED_Blinking_with_Arduino_Uno&amp;diff=1401&amp;oldid=prev"/>
		<updated>2026-11-14T11:10:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Arduino UNO LED Control Program&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:10, 14 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l218&quot;&gt;Line 218:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 218:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN2, HIGH);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN2, HIGH);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN3, HIGH);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN3, HIGH);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   delay(1000);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   delay(1000);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN, LOW);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN, LOW);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN1, LOW);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN1, LOW);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN2, LOW);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN2, LOW);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN3, LOW);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   digitalWrite(LED_PIN3, LOW);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   delay(500);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   delay(500);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>CogWikiEditor</name></author>
	</entry>
	<entry>
		<id>https://www.cognifront.com/docs/index.php?title=LED_Blinking_with_Arduino_Uno&amp;diff=1398&amp;oldid=prev</id>
		<title>CogWikiEditor: Created page with &quot; == Interfacing LEDs with Arduino UNO for Controlling Multiple LEDs ==  &#039;&#039;&#039;Interfacing LEDs with Arduino UNO for Controlling Multiple LEDs&#039;&#039;&#039; demonstrates how multiple Light Emitting Diodes (LEDs) can be connected to an Arduino UNO board and controlled using digital output pins.  An LED (Light Emitting Diode) is an electronic component that emits light when electric current flows through it in the forward direction.  The Arduino UNO can control multiple LEDs by providing...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.cognifront.com/docs/index.php?title=LED_Blinking_with_Arduino_Uno&amp;diff=1398&amp;oldid=prev"/>
		<updated>2026-11-14T11:07:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == Interfacing LEDs with Arduino UNO for Controlling Multiple LEDs ==  &amp;#039;&amp;#039;&amp;#039;Interfacing LEDs with Arduino UNO for Controlling Multiple LEDs&amp;#039;&amp;#039;&amp;#039; demonstrates how multiple Light Emitting Diodes (LEDs) can be connected to an Arduino UNO board and controlled using digital output pins.  An LED (Light Emitting Diode) is an electronic component that emits light when electric current flows through it in the forward direction.  The Arduino UNO can control multiple LEDs by providing...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Interfacing LEDs with Arduino UNO for Controlling Multiple LEDs ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Interfacing LEDs with Arduino UNO for Controlling Multiple LEDs&amp;#039;&amp;#039;&amp;#039; demonstrates how multiple Light Emitting Diodes (LEDs) can be connected to an Arduino UNO board and controlled using digital output pins.&lt;br /&gt;
&lt;br /&gt;
An LED (Light Emitting Diode) is an electronic component that emits light when electric current flows through it in the forward direction.&lt;br /&gt;
&lt;br /&gt;
The Arduino UNO can control multiple LEDs by providing HIGH and LOW signals through its digital GPIO pins.&lt;br /&gt;
&lt;br /&gt;
In this experiment, four LEDs are connected to digital pins 3, 4, 12 and 13 of the Arduino UNO.&lt;br /&gt;
&lt;br /&gt;
All four LEDs are turned ON simultaneously for 1 second and turned OFF for 500 milliseconds. This process is repeated continuously.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Arduino UNO → Digital GPIO Pins → LEDs → Light&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Theory ==&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;Light Emitting Diode (LED)&amp;#039;&amp;#039;&amp;#039; is a semiconductor device that converts electrical energy into light energy.&lt;br /&gt;
&lt;br /&gt;
LEDs work on the principle of &amp;#039;&amp;#039;&amp;#039;electroluminescence&amp;#039;&amp;#039;&amp;#039;. When a suitable forward voltage is applied across the LED, electrons and holes recombine at the semiconductor junction, releasing energy in the form of light.&lt;br /&gt;
&lt;br /&gt;
An LED has two terminals:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Anode (+):&amp;#039;&amp;#039;&amp;#039; Positive terminal of the LED.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Cathode (−):&amp;#039;&amp;#039;&amp;#039; Negative terminal of the LED.&lt;br /&gt;
&lt;br /&gt;
The LED glows when it is connected with the correct polarity and sufficient current flows through it.&lt;br /&gt;
&lt;br /&gt;
The Arduino UNO controls LEDs using digital output signals.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;HIGH (5V):&amp;#039;&amp;#039;&amp;#039; Turns the LED ON.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;LOW (0V):&amp;#039;&amp;#039;&amp;#039; Turns the LED OFF.&lt;br /&gt;
&lt;br /&gt;
A current-limiting resistor is connected in series with each LED to protect it from excessive current.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Digital HIGH → LED ON → Light Emission&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Digital LOW → LED OFF&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== LED Pins ==&lt;br /&gt;
&lt;br /&gt;
An LED has two terminals:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin&lt;br /&gt;
! Connection&lt;br /&gt;
! Function&lt;br /&gt;
|-&lt;br /&gt;
| Anode (+)&lt;br /&gt;
| Arduino digital output through a current-limiting resistor&lt;br /&gt;
| Positive terminal&lt;br /&gt;
|-&lt;br /&gt;
| Cathode (−)&lt;br /&gt;
| GND&lt;br /&gt;
| Ground terminal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The longer leg of the LED is generally the &amp;#039;&amp;#039;&amp;#039;Anode (+)&amp;#039;&amp;#039;&amp;#039;, while the shorter leg is the &amp;#039;&amp;#039;&amp;#039;Cathode (−)&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
A suitable current-limiting resistor, typically 220 ohms or 330 ohms, should be connected in series with each LED.&lt;br /&gt;
&lt;br /&gt;
== LED Control Using Arduino UNO ==&lt;br /&gt;
&lt;br /&gt;
The Arduino UNO provides multiple digital GPIO pins that can be configured as OUTPUT to control external LEDs.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;pinMode()&amp;#039;&amp;#039;&amp;#039; function is used to configure a GPIO pin as an output.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;digitalWrite()&amp;#039;&amp;#039;&amp;#039; function is used to control the output state of the pin.&lt;br /&gt;
&lt;br /&gt;
The syntax is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pinMode(pin, OUTPUT);&lt;br /&gt;
&lt;br /&gt;
digitalWrite(pin, HIGH);&lt;br /&gt;
digitalWrite(pin, LOW);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function / Parameter&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| pinMode()&lt;br /&gt;
| Configures the selected GPIO pin&lt;br /&gt;
|-&lt;br /&gt;
| OUTPUT&lt;br /&gt;
| Configures the pin as a digital output&lt;br /&gt;
|-&lt;br /&gt;
| digitalWrite(pin, HIGH)&lt;br /&gt;
| Sets the selected pin HIGH and turns the connected LED ON&lt;br /&gt;
|-&lt;br /&gt;
| digitalWrite(pin, LOW)&lt;br /&gt;
| Sets the selected pin LOW and turns the connected LED OFF&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
&lt;br /&gt;
LEDs are commonly used in:&lt;br /&gt;
&lt;br /&gt;
* Status indication systems&lt;br /&gt;
* Traffic signal systems&lt;br /&gt;
* Electronic control panels&lt;br /&gt;
* Decorative lighting&lt;br /&gt;
* Alarm and warning systems&lt;br /&gt;
* Digital display systems&lt;br /&gt;
* Home automation systems&lt;br /&gt;
&lt;br /&gt;
== Connections ==&lt;br /&gt;
&lt;br /&gt;
In this experiment, four LEDs are connected to the Arduino UNO digital pins 3, 4, 12 and 13.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! LED&lt;br /&gt;
! Anode (+)&lt;br /&gt;
! Cathode (−)&lt;br /&gt;
! Function&lt;br /&gt;
|-&lt;br /&gt;
| LED 1&lt;br /&gt;
| Digital Pin 3 through 220 ohm resistor&lt;br /&gt;
| GND&lt;br /&gt;
| LED control 1&lt;br /&gt;
|-&lt;br /&gt;
| LED 2&lt;br /&gt;
| Digital Pin 4 through 220 ohm resistor&lt;br /&gt;
| GND&lt;br /&gt;
| LED control 2&lt;br /&gt;
|-&lt;br /&gt;
| LED 3&lt;br /&gt;
| Digital Pin 12 through 220 ohm resistor&lt;br /&gt;
| GND&lt;br /&gt;
| LED control 3&lt;br /&gt;
|-&lt;br /&gt;
| LED 4&lt;br /&gt;
| Digital Pin 13 through 220 ohm resistor&lt;br /&gt;
| GND&lt;br /&gt;
| LED control 4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Each LED must have its own current-limiting resistor connected in series.&lt;br /&gt;
&lt;br /&gt;
== Algorithm ==&lt;br /&gt;
&lt;br /&gt;
The following algorithm is used to control four LEDs simultaneously:&lt;br /&gt;
&lt;br /&gt;
# Start the Arduino IDE.&lt;br /&gt;
# Connect the Arduino UNO board to the computer using a USB cable.&lt;br /&gt;
# Declare four variables to assign digital pin numbers 3, 4, 12 and 13.&lt;br /&gt;
# In the &amp;#039;&amp;#039;&amp;#039;void setup()&amp;#039;&amp;#039;&amp;#039; function, configure all four GPIO pins as &amp;#039;&amp;#039;&amp;#039;OUTPUT&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# In the &amp;#039;&amp;#039;&amp;#039;void loop()&amp;#039;&amp;#039;&amp;#039; function, set all four GPIO pins to &amp;#039;&amp;#039;&amp;#039;HIGH&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# All four LEDs turn ON simultaneously.&lt;br /&gt;
# Provide a delay of 1000 milliseconds.&lt;br /&gt;
# Set all four GPIO pins to &amp;#039;&amp;#039;&amp;#039;LOW&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# All four LEDs turn OFF simultaneously.&lt;br /&gt;
# Provide a delay of 500 milliseconds.&lt;br /&gt;
# Repeat the process continuously.&lt;br /&gt;
&lt;br /&gt;
The overall operation is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;All LEDs ON → Delay 1000 ms → All LEDs OFF → Delay 500 ms → Repeat&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Working ==&lt;br /&gt;
&lt;br /&gt;
The Arduino UNO controls four LEDs through its digital output pins.&lt;br /&gt;
&lt;br /&gt;
The working sequence is:&lt;br /&gt;
&lt;br /&gt;
# The Arduino UNO initializes digital pins 3, 4, 12 and 13 as OUTPUT.&lt;br /&gt;
# All four digital pins are set to HIGH.&lt;br /&gt;
# All four LEDs glow simultaneously.&lt;br /&gt;
# The LEDs remain ON for 1000 milliseconds (1 second).&lt;br /&gt;
# All four digital pins are set to LOW.&lt;br /&gt;
# All four LEDs turn OFF simultaneously.&lt;br /&gt;
# The LEDs remain OFF for 500 milliseconds.&lt;br /&gt;
# The process repeats continuously.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Arduino UNO → Digital Output HIGH → Four LEDs ON&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Arduino UNO → Digital Output LOW → Four LEDs OFF&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Observation ==&lt;br /&gt;
&lt;br /&gt;
=== Arduino UNO LED Control Program ===&lt;br /&gt;
&lt;br /&gt;
The following program is used to control four LEDs connected to digital pins 3, 4, 12 and 13 of the Arduino UNO.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#define LED_PIN 3&lt;br /&gt;
#define LED_PIN1 4&lt;br /&gt;
#define LED_PIN2 12&lt;br /&gt;
#define LED_PIN3 13&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  pinMode(LED_PIN, OUTPUT);&lt;br /&gt;
  pinMode(LED_PIN1, OUTPUT);&lt;br /&gt;
  pinMode(LED_PIN2, OUTPUT);&lt;br /&gt;
  pinMode(LED_PIN3, OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  digitalWrite(LED_PIN, HIGH);&lt;br /&gt;
  digitalWrite(LED_PIN1, HIGH);&lt;br /&gt;
  digitalWrite(LED_PIN2, HIGH);&lt;br /&gt;
  digitalWrite(LED_PIN3, HIGH);&lt;br /&gt;
&lt;br /&gt;
  delay(1000);&lt;br /&gt;
&lt;br /&gt;
  digitalWrite(LED_PIN, LOW);&lt;br /&gt;
  digitalWrite(LED_PIN1, LOW);&lt;br /&gt;
  digitalWrite(LED_PIN2, LOW);&lt;br /&gt;
  digitalWrite(LED_PIN3, LOW);&lt;br /&gt;
&lt;br /&gt;
  delay(500);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Program Explanation ===&lt;br /&gt;
&lt;br /&gt;
* Four LED pins are defined using the #define preprocessor directive.&lt;br /&gt;
* LED_PIN is assigned to digital pin 3.&lt;br /&gt;
* LED_PIN1 is assigned to digital pin 4.&lt;br /&gt;
* LED_PIN2 is assigned to digital pin 12.&lt;br /&gt;
* LED_PIN3 is assigned to digital pin 13.&lt;br /&gt;
* The pinMode() function configures all four pins as OUTPUT.&lt;br /&gt;
* The digitalWrite() function sets all four pins HIGH, turning ON all LEDs simultaneously.&lt;br /&gt;
* The delay(1000) function keeps all LEDs ON for 1000 milliseconds.&lt;br /&gt;
* The digitalWrite() function then sets all four pins LOW, turning OFF all LEDs.&lt;br /&gt;
* The delay(500) function keeps all LEDs OFF for 500 milliseconds.&lt;br /&gt;
* The loop() function repeats this operation continuously.&lt;br /&gt;
&lt;br /&gt;
== Observation Table ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Step&lt;br /&gt;
! Arduino Output&lt;br /&gt;
! LED 1 (D3)&lt;br /&gt;
! LED 2 (D4)&lt;br /&gt;
! LED 3 (D12)&lt;br /&gt;
! LED 4 (D13)&lt;br /&gt;
! Duration&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| HIGH&lt;br /&gt;
| ON&lt;br /&gt;
| ON&lt;br /&gt;
| ON&lt;br /&gt;
| ON&lt;br /&gt;
| 1000 ms&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| LOW&lt;br /&gt;
| OFF&lt;br /&gt;
| OFF&lt;br /&gt;
| OFF&lt;br /&gt;
| OFF&lt;br /&gt;
| 500 ms&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
&lt;br /&gt;
The Arduino UNO successfully interfaces with and controls four LEDs connected to digital pins 3, 4, 12 and 13.&lt;br /&gt;
&lt;br /&gt;
All four LEDs turn ON simultaneously for 1000 milliseconds and turn OFF for 500 milliseconds.&lt;br /&gt;
&lt;br /&gt;
Thus, multiple LEDs are successfully controlled using the digital GPIO output pins of the Arduino UNO.&lt;/div&gt;</summary>
		<author><name>CogWikiEditor</name></author>
	</entry>
</feed>