A Simple Arduino LED Example in Proteus




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.

A Simple Arduino LED Example 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.
READ  Captain Herrmano’s Mystery Box – a Reverse Geocache

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 !!! 🙂




Leave a Comment

*
= 3 + 0

(Spamcheck Enabled)

Read previous post:
ESP8266 – Wireless Weather Station with Data Logging to Excel
ESP8266 – Wireless Weather Station with Data Logging to Excel

In this project we are going to establish a wireless communication between two ESPs and send data from three sensors...

Close
Scroll to top