To turn on a single LED using an Arduino. The components needed:
Arduino board (e.g., Arduino Uno)
LED (any color)
Resistor (220-330 ohms)
Breadboard
Jumper wires
Follow these steps“
Step 1. Connect the longer leg of the LED (positive terminal / anode) to digital pin 13 on the Arduino. Use a jumper wire and insert one end into pin 13 and the other end into any hole in the breadboard.
Step 2. Connect the shorter leg of the LED (negative terminal / cathode) to the resistor. Insert one end of the resistor into the same row as the LED’s shorter leg.
Step 3. Connect the other end of the resistor to the GND (ground) pin on the Arduino. Use a jumper wire to connect the resistor to any GND pin on the Arduino.
Step 4. Ensure your Arduino is connected to your computer via a USB cable.
Step 5. Open the Arduino IDE (Integrated Development Environment) on your computer. (The software you installed)
Step 6. In the Arduino IDE, select the appropriate board and port from the “Tools“ menu.
Code writing in the Arduino IDE (the software on your computer.
void setup() {
pinMode(10, OUTPUT); // Set pin 10 as an output
}
void loop() {
digitalWrite(10, HIGH); // Turn on the LED
delay(1000); // Wait for 1 second
digitalWrite(10, LOW); // Turn off the LED
delay(1000); // Wait for 1 second
}
Step 8. Please make sure you write the codes well because the little mistake you will make will be resulted in an error.
Step 9. Click on the “Upload“ button in the Arduino IDE to upload the code to your Arduino board. (On your top left on the app)
Step 10. The LED connected to pin 13 should now turn on and off repeatedly, with a 1-second delay between each state change.
NB: You can change the timer (1-second to either 2 or 3 seconds). That is the delay 1000 - 2000 - 3000
Well done for attempting to code.
1 view
977
386
1 week ago 00:52:27 0
Awakened Christ Consciousness: The Hidden Message of Jesus Revealed
1 week ago 00:04:21 0
Getting Pregnant after 36 | Best ways to Natural Conception without IVF and IUI- Aasha Ayurveda
1 week ago 00:04:14 0
How EVIL VITALITY Really Plays CS2
1 week ago 00:09:32 0
Making a Teddy Bear Keychain with Hair Rubber Bands and Sewing Thread / Incredibly Simple Steps
1 week ago 00:10:38 19
Rear Choke Submission! | Jena Bishop v Ekaterina Shakalova | Full Fight | PFL WT 6 2025
1 week ago 00:04:24 1
CryptoPromo – The Leading Crypto Marketing Platform in 2025?
2 weeks ago 00:00:24 0
The Most Adorable Monster in Japanese History
2 weeks ago 00:03:15 0
The Wallet Gesture and Invitation by Pastor Lance Edminster 2025 06-29
2 weeks ago 00:12:59 0
Americans Invented a New Christianity: Here’s Why That’s Terrifying
2 weeks ago 00:03:55 12
English Christian Song | “Those Who Are Not Acknowledged by God“
2 weeks ago 00:00:30 2
hadama #funnyclip #baby
2 weeks ago 00:04:35 10
Jeff Bezos’ $10M Venice Wedding: Inside the Lavish Celebration & Celebrity Guest List | NEWSDRIFT
2 weeks ago 00:12:56 0
Google’s AI Found a Glitch in Reality — And It’s Getting Worse
2 weeks ago 00:00:34 1
Background suppression optical sensor! High sensitivity, strong stability, handle any environment.
2 weeks ago 00:03:02 0
CryptoPromo – How to Market a Crypto Project in 2025 (Step-by-Step Guide)
2 weeks ago 00:14:02 1
DIY Puffy Boxy Quilted Patchwork Travel/ Makeup Bag Swing Tutorial
2 weeks ago 00:07:36 1
P Diddy Darts Eyes at Federal Prosecutor as She Rips Him in Closings
2 weeks ago 00:35:25 0
Теория Большого Взрыва — убита Джеймсом Уэббом?
2 weeks ago 00:00:13 0
My Home’s ’Luxury Feel’ Secret: Wood Blinds Are This Beautiful!
2 weeks ago 00:52:26 1
WWII: The Secret Financial Deal That Kept Hitler in Power - Historical Documentary - AMP
2 weeks ago 00:13:32 1
Surprising Way to Support Your Liver and Lose Fat!
2 weeks ago 00:07:47 0
The World’s First Flying Humanoid Robot
2 weeks ago 00:30:59 1
Шью детское лоскутное одеяло. Одеяло за час. Лоскутное шитье, остатки в дело. Пэчворк.
2 weeks ago 00:06:49 0
Tutorial: How to make your first edit in Liquipedia