How to Simulate Arduino in Proteus

Introduction: How to Simulate Arduino in Proteus

Simulation is a very powerful tool to understand how the device will work after implementing in real.Before start any project, it is a good practice to simulate it and virtually verify that works. Proteus is a simulation base software.By using this software Arduino can be simulate.Today we are going to simulate arduino in Proteus. We will test arduino Blink program with Proteus.Lets do it...

Step 1: Arduino IDE Setup

Before start simulation need to make sure that in File>>Preferences, compilation is marked. Because "compilation" compile the code and generate .hex file.This .hex file is needed for running the Proteus simulation.

Step 2: Proteus Setup

Proteus is the software where we run our simulation.First make sure that you have Proteus installed in your operating system.If not, then download and install Proteus.After run the Proteus software, If you don't find arduino in the library.Then, there is a .rar file download it and copy/cut the file.After that paste it into the Proteus library.I am using windows 7 operating system.In my case the location of the Proteus library is, C drive>Program Files>Labcenter Electronics>Proteus 7 Professional>LIBRARY.After that you will find arduino in your library.

Step 3: (Step-1)Proteus Simulation

Run Arduino IDE and go to File>Examples>01.Basics>Blink and open it.Click on "Verify" button.Then copy(Ctrl+C) the .hex file.

Step 4: (Step-2)Proteus Simulation

Run the Proteus and draw the circuit like the picture.You can directly connect Led with pin 13.But it is a good practice to add a 220 ohm resistor with led in series.Resistor limits the current flow.Double click on arduino and paste the .hex file in "Program File:".Run the simulation by clicking "Run the simulation" button. LED is Blinking if everything is okay. Congratulation!!!!

Youtube tutorial Link:

6 People Made This Project!

Recommendations

  • Toys & Games Contest

    Toys & Games Contest
  • Big vs Small Challenge

    Big vs Small Challenge
  • Fix It Challenge

    Fix It Challenge

13 Comments

0
tls_automation

Hi Abdullah , in your tutorial " How to siimulate Arduino in Proteus " all work very good .
Everithing work fine , not only in Windows but also on Ubuntu linux with wine ...

Thanks a lot for your work ,
Bye

0
hicham01
hicham01

1 year ago

hello sir, I want to get a duty cycle graph under isis, but doesn't work
please can someone reply to my question.

3.PNG4.PNG5.PNG
0
hicham01
hicham01

1 year ago

please, friends, I tried much time to get a good duty cycle under isis proteus, but no solutions.
if someone has an idea please share it with me.
you can find in my post the screenshut of my code and what i get when i simulate under isis proteus.

new1.PNGnew2.PNG
1
khoniker moja
khoniker moja

1 year ago

my arduino uno simulation is not working.i tried many times.
what is the problem ?

Capture 2.PNGCapture.PNG
1
ArozoA1
ArozoA1

2 years ago

Thank you ! it's very helpful

0
monitaa1
monitaa1

2 years ago

what's this problem ?

Screenshot 2019-02-05 01.06.56.png
0
Marwan RamdhanyE
Marwan RamdhanyE

Tip 2 years ago

make it 220 ohm resistor not 220k ohm

0
Н.Э1
Н.Э1

Question 3 years ago

I'm not getting what it is.

0
KhanH5
KhanH5

Question 3 years ago

I'm getting error while building this in Proteus.

The error is that "Cannot find model file LEDA.MDF"

PIN A is not modelled
PIN K is not modelled

Netlist linker error..

I'm not getting what it is..

1521475899035-1942123411.jpg
0
Wiitus
Wiitus

4 years ago

PWM and analogwrite is not working on simulation

0
Abdullah_Al_Mamun_EEE_EWU_Bangladesh
Abdullah_Al_Mamun_EEE_EWU_Bangladesh

Reply 4 years ago

Everything will be work, follow this playlist

https://www.youtube.com/playlist?list=PL_SlMximwEb4dZ2c_q2hdv-yXgaaF_yxA