Arduino Library for Proteus

How to add Arduino Library for Proteus and Simulate Arduino Projects

Arduino Uno is one of the most popular Development boards of our time. It can be used for almost any project that one can think of. But sometimes before making an actual circuit, it is a good idea to simulate that circuit first. Simulating the circuit firsthand can save you from a lot of troubles. Proteus is one of the software that does this job brilliantly. And now you can simulate an Arduino in proteus before even implementing it in actual hardware.  By the end of this post, you will know how to add Arduino Library for Proteus and simulate Arduino projects.

You can also watch the video given below for easy reference:

 

STEP 1: First of all download Arduino Library from the link given below:

Download the Arduino Library For Proteus 

 

STEP 2: Download this file to the desktop of your PC.

 

STEP 3: Unzip the .zip file to the desktop of your PC.

 

STEP 4: Copy the two obtained files from the desktop.

 

STEP 5: Go to C:\Program Files (x86)\Labcenter Electronics\Proteus 7 Professional\LIBRARY

 

STEP 6: Paste the files here and you are done!

 

STEP 7:  To use the Arduino Library, open proteus and click on “pick from libraries”

 

STEP 8: Search for “Arduino”, you will see 6 Arduino boards in the component section. Select the Board of your choice and start simulating!

 

How to simulate Arduino projects in Proteus?

PROJECT 1:  Blinking an Led using Arduino Library for Proteus

STEP 1: Connect all the components as shown in the figure below.

Blinking an Led using Arduino library for Proteus
Blinking an Led using Arduino library for Proteus

 

STEP 1:  Copy this “LED BLINKING ” program to your Arduino IDE:

void setup() {

pinMode(13,OUTPUT);

}

void loop() {

digitalWrite(13,HIGH);
delay(1000); 
digitalWrite(13,LOW);
delay(1000);

}

 

DOWNLOAD THIS CODE

 

STEP 2: Go to preferences

 

 

 

 

 

 

 

STEP 3: Check “Compilation” CheckBox

 

 

 

 

 

STEP 4:  Click on verify (compile)

 

 

 

 

 

STEP 5: After compilation is complete copy the HEX file path from the bottom corner as shown below.

 

 

STEP 6: Open Proteus and double click on Arduino. Paste the file path and click ok

 

 

 

 

 

 

 

STEP 7: Run the simulation! Led at pin no. 13 will blink.

 

PROJECT 2:  Analog I/P to control LED’s brightness using Arduino Library in Proteus

STEP 1: Connect all the components as shown in the simulation figure given below.

Circuit connections of changing LED brightness using Arduino Library for proteus
Circuit connections of changing LED brightness using Arduino Library for proteus

 

STEP 2:  Copy this “PWM using Arduino ” program to your Arduino IDE:

int y;
int x;

void setup() 
{
pinMode(10,OUTPUT);
pinMode(A0,INPUT);
}

void loop()
{
Serial.begin(9600);
x=analogRead(A0);
y=map(x,0,1023,0,255);
analogWrite(10,y);
Serial.print("INCHES");
Serial.println(x);
delay(500);
}

 

DOWNLOAD THIS CODE

 

STEP 3: Go to preferences from the File menu of Arduino IDE.

 

 

 

 

 

 

 

STEP 4: Check “Compilation” CheckBox as shown in the figure given below.

 

 

 

 

 

STEP 5:  Click on verify (compile).

 

 

 

 

 

STEP 6: After compilation is complete copy the HEX file path from the bottom corner like before.

 

 

 

STEP 7: Now open the Proteus software and double click on Arduino. Paste the file path and click ok

 

 

 

 

 

 

STEP 8: Run the simulation. When the simulation is running, change the potentiometer’s wiper terminal position to control the brightness of the led. A screenshot of the working of this project is given below.

 

Changing LED brightness using Arduino Library for Proteus
Changing LED brightness using Arduino Library for Proteus

 

Read Similar Articles:

 

How to Add Microphone library for Proteus and generate audio waveforms

How to Add And Simulate Ultrasonic Sensor Library in Proteus ?

How To Change Frequency On PWM Pins Of Arduino UNO

2 comments

  1. There are definitely lots of details like that to take into consideration. That is a great level to deliver up. I offer the ideas above as normal inspiration but clearly there are questions like the one you carry up where an important factor might be working in trustworthy good faith. I don?t know if best practices have emerged round things like that, but I am positive that your job is clearly recognized as a good game. Both boys and girls feel the impact of only a moment’s pleasure, for the rest of their lives.

Leave a Reply

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