Home > News & Updates > Electronics News Updates > A Simple Arduino LED Example in Proteus

A Simple Arduino LED Example in Proteus

Summary of A Simple Arduino LED Example in Proteus


This article guides users through creating simple Arduino LED simulations in Proteus ISIS. It begins with a basic single-LED blink on Pin 13 using the standard Blink sketch. The tutorial then progresses to a multi-LED project, connecting twelve LEDs to digital pins 2 through 13 and providing code to light them sequentially with one-second delays.

Parts used in the Simple Arduino LED Example:

  • Arduino UNO
  • Proteus ISIS Simulation Software
  • LEDs (Single unit for first example, Twelve units for second example)
  • Digital Pins (Pin 13; Pins 2 through 13)

Hello friends, I hope all are fine and having fun with your projects. Today, I am going to share a very Simple Arduino LED Example in Proteus ISIS. I have designed a very basic example in Proteus in which I am going to blink single LED first using Arduino and then I am going to blink multiple LEDs in Proteus.

When you start working on Arduino then Arduino LED example is the first example which you must try because its the easiest one. Moreover, we all know that we have a small LED connected to pin # 13 on each Arduino so you can also check your Arduino as well that whether its working or not. So, let’s get started with Simple Arduino LED Example in Proteus ISIS:

A Simple Arduino LED Example in Proteus

  • You can download, all the simulation files and codes for Arduino LED examples used in this tutorial, by clicking the below button:

First of all, design a simple circuit of Arduino LED in Proteus ISIS as shown in below figure:

a simple circuit of Arduino LED

  • Now as you can see in the above figure that I have used an LED on Pin # 13 of Arduino UNO.
  • So, now upload the below sketch in your Arduino, its the Blink Example from Arduino, which works perfect for this Arduino LED Example:
  • Once the hex file is uploaded in the Arduino then run your Arduino LED Proteus Simulation and if everything goes fine then your LED will start blinking as shown in below figure:

Once the hex file is uploaded in the Arduino then run

  • Now you can see in the above figure that our LED at Pin # 13 started blinking.
  • If you read the above code of Arduino LED exmaple then its quite simple, first of all I just make the Pin # 13 output and then I have made it HIGH and LOW with a delay of 1000 msec.
  • You might wanna read How to use digitalRead in Arduino that will give you a better idea of How to deal with any digital pin.
  • So, now let’s add more LEDs on other digital Pins of Arduino.
  • So, design a simulation as shown in the below figure:

a simulation as shown in the below figure

  • Upload this hex file in your Proteus Arduino and then run your simulation.
  • If everything goes fine then you will get all your LEDs blinking.
  • I have shown a glimpse of its working in below figure:
  • So, download the files and run your simulation and test it out.
  • If you check the code then it seems quite lengthy but its very simple.
  • I am just keeping one LED on and others OFF.
  • Now, let me tell you one thing, this is the the best way of coding but for starters you should first try it out.
  • In the coming lecture, I will teach you How to write Arduino Code Efficiently like I don’t wanna add 100 lines just for such small work.
  • So, hopefully tomorrow I will teach you How to write small but efficient Arduino codes and will add the link here.

I have shown a glimpse of its working

So, that’s all for today. I hope you have enjoyed today’s Arduino LED Example and are gonna test it. So, see you in next tutorial. Take care !!! ?

Quick Solutions to Questions related to Simple Arduino LED Example:

  • Why is the Arduino LED example recommended for beginners?
    It is considered the easiest starting point for working with Arduino.
  • Which pin on the Arduino UNO has a built-in small LED?
    Pin # 13 has a small LED connected to it.
  • What delay time is used in the blinking code examples?
    A delay of 1000 milliseconds is used between states.
  • How many LEDs are connected in the second simulation example?
    Twelve LEDs are connected to digital pins 2 through 13.
  • What voltage level turns an LED on in the provided code?
    The HIGH voltage level turns the LED on.
  • Does the multi-LED code turn all lights on simultaneously?
    No, it keeps one LED on while keeping others off at any given time.
  • What does the author plan to teach in the next lecture?
    The author plans to teach how to write efficient Arduino code without excessive lines.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top