Hello friends! I hope you are having a good day. Today, I am sharing a new version of Arduino Library for Proteus(V3.0). I have already shared the previous versions of this library i.e. Arduino Library for Proteus(V1.0) and Arduino Library for Proteus(V2.0). This newer version is way better than previous versions because of its realistic design and better performance. I will discuss the comparison in detail in just a bit. This Proteus Library zip file has the following types of Arduino microcontrollers in it:
We will move towards the installation, but before this, let me share the basic introduction of Arduino.
Where To Buy? | ||||
---|---|---|---|---|
No. | Components | Distributor | Link To Buy | |
1 | Battery 12V | Amazon | Buy Now | |
2 | Resistor | Amazon | Buy Now | |
3 | LCD 20x4 | Amazon | Buy Now | |
4 | Arduino Nano | Amazon | Buy Now | |
5 | Arduino Pro Mini | Amazon | Buy Now | |
6 | Arduino Uno | Amazon | Buy Now |
Now, have a look at how to download and install this library in Proteus.
The latest version of Arduino is different from the previous ones because of the following reasons:
Here are all the V3.0 Arduino boards:
The first step is to download the Proteus library for Arduino. For this, click the below link:
In case you don't know how to install the library, you can see How to Install the New Library in Proteus. Moreover, the installation process of this library in Proteus 8 is the same; you simply have to paste the files into the library folder of Proteus 8.
Open your Proteus software, and if it was already opened, restart it. Now your Proteus can read the library files.
Click on the P button to pick the library from the system and the search bar, and type “Arduino V3.0 TEP”. All six libraries in Arduino V3.0 that you have just installed will be shown to you on the screen.
Choose all of these by clicking them and closing the search window.
Now, if you want to see the design of all of these, click on the name of the library, and then click on the working sheet to place the board.
Here is a simple view of all the files in the Arduino V3.0 folder.
Now, let us make a simple project with the Arduino UNO V3.0 to show you the workings of these libraries. All other boards can be connected to the components in the same way. So follow the steps to learn the workings:
Let us create a simulation where the LCD display is controlled using Arduino V3.0. For this, we are using the LCD for Proteus V2.0. If you do not have this, you have to download and install the New LCD library for Proteus V2.0. Follow the instructions below to design the simulation:
Go to the pick library and get the following components:
LCD TEP V2.0 (20X4)
POT-HG
Button
Set all the components on the working sheet.
Go to Terminal mode>Default pin and set them with the components.
Choose the ground and power terminals and connect all the components according to the image:
Open your Arduino IDE and paste the code given next into the Arduino. I have added the same code to the zip file.
#include
//Setting the LCD pins
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
const int buttonPin = 0;
boolean lastButtonState = LOW;
boolean displayMessage = false;
void setup() {
pinMode(buttonPin, INPUT);
//Printing the first message
lcd.begin(20, 4);
lcd.setCursor(1, 0);
lcd.print("Press the button to see the message");
}
void loop() {
int buttonState = digitalRead(buttonPin);
// Using if loop to create the condition
if (buttonState != lastButtonState) {
lastButtonState = buttonState;
if (buttonState == LOW) {
displayMessage = true;
lcd.clear();
lcd.setCursor(1, 0);
//Printing the message on screen when button is pressed
lcd.print("www.TheEngineering");
lcd.setCursor(4, 1);
lcd.print("Projects.com");
} else {
displayMessage = false;
lcd.clear();
lcd.setCursor(1, 0);
lcd.print("Press the button to see the message");
}
}
}
When the code is verified in the Arduino IDE, it will provide the hex file. Simply copy the main path of the hex file.
Go to the Proteus and double-click the Arduino. It will open the properties panel.
Paste the path to the hex file in the program file and click OK.
The code prints the link to the website on it. You can see the LCD gets power only when the button is pressed.
When the button is unpressed:
When the button is pressed:
I hope you found this article useful. The Arduino library for Proteus V3.0 is more stylish, error-free, and easy to use. I have created other libraries, such as the Raspberry Pi 4, that are useful for embedded engineers. Feel free to ask any questions if you have any confusion.
JLCPCB – Prototype 10 PCBs for $2 (For Any Color)
China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w