Hello friends! I hope you are doing great. Today, we are discussing the latest version of the Arduino Mega 1280 library for Proteus. This can be used in both versions (Proteus 7 and Proteus. We have shared the previous versions, which are the Arduino Mega 1280 library for Proteus and the Arduino Mega 1280 library for Proteus V2.0 with you. With the advancement in the version, these microcontrollers have a better structure and the design is closer to the real microcontrollers.
In this article, I will discuss the introduction of the Arduino Mega 1280 in detail. Here, you will learn the features and functions of this microcontroller. Then, we’ll see how to download and install this library in Proteus. In the end, we’ll see a mini project using the Arduino Mega 1280 V3.0. Let’s move towards our first topic:
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 |
Now, let’s see the Arduino Mega 1280 library V3.0 in Porteus.
The download and installation process for Arduino Mega 1280 is easy. The Proteus software does not have this library by default. To use it, the first step is to download it from the link given below:
Arduino Mega 1280 V3.0 for Proteus
The downloading does not take much time. Once it is complete, it can be seen in the download folder on your system.
You will see a zip file when it is extracted to a particular path of your choice.
There are two files in the folder named:
ArduinoMega3TEP.IDX
ArduinoMega3TEP.LIB
Copy these files and paste them into the folder with the following path:
C>Program files>Lab centre electronics>Proteus 7 Professional>Library
If you want more details on this process, you must see How to Add a New Library File in Proteus .
Note: The same process is applicable to Proteus 8 professional if you are using that.
You can see it has many pins and the structure and design are closer to the real Arduino Mega. There is no link to the website on this microcontroller and it has more details about the pins on it. These points are different from the previous versions.
The Arduino Mega 1280 has many features and it is used in a great number of projects. But, as a beginner, we’ll check the work with the help of a simple project. In this project, we’ll use the LED with Arduino Mega 1280 V3.0 and print the message of our own choice. Follow the steps to perform this example:
Go to the terminal mode from the left side of the screen, and then choose the default pins for the clean circuit.
Set and label the pins according to the image given here:
The circuit is fine but it can’t be run without coding.
Fire up your Arduino IDE.
Create a new sketch for this project.
The upper side has a drop-down menu, choose Arduino from there.
Delete the default code.
Paste the following code into it:
#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 buttin 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");
}
}
}
The same code is also present in the zip file of the Arduino Mega 1280 V3.0 library folder you have downloaded.
Click on the tick mark to run the code. It will take some moments to be loaded.
Once the loading is complete, click on the upload button to get the hex file address.
In the loading process, you have to search for the path to the hex file. In my case, it looks like the following image:
Go to the proteus where we have created our project.
Double-click on the Arduino Mega 1280 V3.0 module. It will open its properties panel in front of you.
Paste the address of the hex file into the section named “Program File.".
Hit the “OK” button and close the window.
There are some buttons at the bottom left corner of the screen. Out of these, you have to click the play button to run the project.
If all the above procedures are completed successfully, you will see the output on the screen.
When the button is opened, the LCD shows the message that you have to push the button to see the message.
Click on the button, and now you can see the message on the LCD.
If all the above steps are completed successfully, you will see that you have used the Arduino Mega 1280 V3.0 to show the required message on the LCD. This microcontroller can be used in different complex projects and can provide the basic working according to the code. Now, you can try different projects on your Proteus. I hope you have installed the microcontroller successfully. Yet, if you are stuck at any point, you can ask in the comment section.
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