LED interfacing with Arduino | Circuit and Code of Arduino with LED [2023]

Share To:

Poly Notes Hub shares a notes on LED interfacing with Arduino. In this note, we are discuss about the Arduino board, Basic Components, Circuit diagram, and Code.

Author Name: Arun Paul.

Introduction

An essential ability in the world of electronics and do-it-yourself projects is LED interfacing with Arduino or Arduino with LED. Light Emitting Diodes, or LEDs, are adaptable and low-power electronic components that release light when electricity passes through them. Because it offers an easy-to-use method of controlling LEDs, Arduino, a well-known open-source microcontroller platform, is a preferred option for enthusiasts, hobbyists, and even professionals.

What is Arduino?

The open-source electronics platform Arduino is built on user-friendly hardware and software. It is composed of a development environment that enables you to write and upload code to the microcontroller and a microcontroller, which is effectively a little computer. Due to its ease of use and adaptability, Arduino is well-liked by both novice and seasoned electronics enthusiasts.

LED interfacing with Arduino

Basic Components

  • Arduino Board
  • LED
  • Resistors ( 100 ohm )
  • Jumper Wires
  • Breadboard
  • USB cable for code uploading

Circuit Diagram

hardware connection of arduino with led
led interfacing with arduino
  • Attached the LED on the breadboard
  • Connect LED’s positive terminal with Arduino’s PIN 13 through a 100 ohm resistor.
  • Then connect LED’s negative terminal with Arduino’s ground pin.
  • Connect the USB cable with the Arduino and to the PC.
  • After connection upload the code.

Code of Arduino with LED

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

void loop() {
  digitalWrite(13, HIGH);   // Turn the LED on
  delay(1000);              // Wait for a second
  digitalWrite(13, LOW);    // Turn the LED off
  delay(1000);              // Wait for a second
}

Uploading and Testing

After writing your code, you’ll need to upload it to the Arduino. Connect the Arduino to your computer via USB and use the Arduino IDE to upload the code. Once uploaded, the LED should start blinking.

Reference Video

Conclusion | Diploma Engineering Notes | Poly Notes Hub

This is about the LED interfacing with Arduino. About the basic components, circuit diagram, and the code. Our Poly Notes Hub provides syllabus-wise notes for polytechnic or diploma engineering students of streams like Electrical Engineering, Electronics Engineering, Electrical and electronics Engineering, Electronics & Instrumentation Engineering, and Computer Science & Technology. Our website is updating day by day so keep in touch with us for new and syllabus-wise notes and topic which helps you all to do any task regarding diploma engineering.

Share To:

Leave a Reply

Your email address will not be published. Required fields are marked *