Arduino Library For Proteus
A complete step by step tutorial on How to simulate Arduino in Proteus
You are here:
Hello
friends, hope you all are fine and enjoying life, today’s post is asked
by one of our readers on our facebook page so I thought to share it
with all of you. Arduino is a modern microcontroller board, which has
now become very popular among engineers but one problem with Arduino is
that there’s no virtual tool to test its coding. So, if you need to test
the coding then you have to buy the hardware. But it’s not the case
anymore, now you can test the Arduino coding via Proteus quite easily as
its library has been developed.
So today, we will have a look on how to
test the working of Arduino coding in Proteus. In order to test the
coding in Proteus, we need hex file of the program so we will also see
how to get the hex file of Arduino. So first of I will provide the
download link for Arduino Library and how to add it in Proteus and then
we will have a look on how to get the hex file of Arduino sketch which
is a little difficult section and finally we will have look on how to
upload the hex file into Proteus and get a working simulation.
If you also want any tutorial, then send
us your request and we will try our best to post it as soon as we can.
Let’s start today’s tutorial.
Arduino Library For Proteus
- First of all, download the Arduino Library for Proteus by clicking the below link.
- Unzip the folder, you will find two files in it named as ARDUINO.LIB and ARDUINO.IDX
- Now place both of these files at this location C:\Program Files (x86)\Labcenter Electronics\Proteus 7 Professional\LIBRARY i.e. in the library folder of Proteus software.
- Now open Proteus ISIS and open the component library browser and search for Arduino as shown in below figure.
- You will find three arduino board, which are currently supported by this library. Click on any of these boards and design your circuit.
How to Get Arduino Hex File ???
- Now next thing we need to do is to get the hex file of Arduino, which isn’t much difficult.
- Open the Arduino software and click on File and then Preference. A new window will open up as shown in below figure
- Tick both of the options which are encircled in the above figure and named as compilation and upload. Now click OK to close this prefrence window.
- Start writing the code, here, I am going to use the blink example of Arduino.
- After writing your code, click on compile and you will see a lot of lines in the output pane.
- After the completion of compilation, you will find a link in the output pane as shown in the figure below, you don’t need to find it as it will be the second last line.
- This is the link for your hex file, copy this link and place it in your computer address bar and you will get your hex file.
- The address you need to copy is till .tmp which is the temporary folder ad in this folder Blink.cpp.hex will be your hex file, the name name of hex file will be the same as your Arduino sketch name.
Design Arduino Circuit in Proteus
- Now we have done both the things, i.e. added our arduino library in Proteus and have also get the hex file for our Arduino sketch.
- Now design your circuit in Proteus, I have designed a simple circuit as shown in below figure:
- Now double click on the Arduino UNO and the properties window will open up, in this window, you will find a Program File option, in that option click on browse and select the hex file and click OK.
- That’s it, now click on the Play button and your circuit will start functioning.
No hay comentarios:
Publicar un comentario