New LCD Library for Proteus
Update: Here's the latest version of LCD library: LCD Library for Proteus V2.0.
Hello everyone, I hope you all are fine and having fun with your lives. Today, I am going to share a new LCD Library for Proteus. We all know about LCDs, used for displaying data in embedded projects i.e. sensor values or indications etc. Proteus already have LCDs in it but they are not much good-looking. So, I designed two new LCDs in Proteus that look identical to real-world LCDs.
So, I am going to share these LCD libraries in today's post. I hope you are going to enjoy them as they will add some uniqueness to your project.
I have also used these new LCDs in different projects so if you wanna see these LCDs in action then you should have a look at LCD Interfacing with Microcontrollers. In this tutorial, I have shown how to interface it with Arduino, PIC Microcontroller and 8051 Microcontroller. So, let's get started with this New LCD Library for Proteus:
- Here's a video explaining the above tutorial in a better form:
Note:
- Other Proteus Libraries are as follows:
New LCD Library for Proteus
- First of all, what you need to do is to download this new LCD Library for Proteus by clicking the below button:
New LCD Library for Proteus
- In this package, you will find two files named:
- LCDLibraryTEP.LIB
- LCDLibraryTEP.IDX
- Now place both of these files in the library folder of your Proteus software.
- Now in the component search section, you need to make a search for LCDLibraryTEP or you can also search LCD 16x2 or LCD 20x4, whichever you wanna use.
- Now you will find two components as shown in below figure:
- Now place both of them in your workspace and they will look like something as shown in the below figure:
- Aren't they looking more pretty now ??? :)
- So, that was the idea to make them look more alive. They are working perfectly as I have tested them.
- So, now let's test them with the Arduino board.
- I am going to run a simple program from an Arduino board on both of these LCDs.
- Let's design a simple circuit as shown in the below figure:
- Now upload the below Arduino code in your software:
#include
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.setCursor(1,0);
lcd.print("www.TheEngineering");
lcd.setCursor(4,1);
lcd.print("Projects.com");
}
void loop() {
}
- Now get the hex file from Arduino software and upload that hex file in your Proteus software.
- After uploading the hex file, run your simulation and if everything goes fine then it will look like something as shown in the below figure:
- Now you can see both are working correctly. Now you can use them like normal LCDs but with a more realistic look.
So, that's all for today. I hope you guys will enjoy this New LCD Library for Proteus. Moreover, you should have a look at this tutorial where I have used this LCD Proteus Library, named: Display ADC value on LCD using Arduino. So, will meet you guys in the next tutorial soon. Take care and have fun !!! :)
Gas Sensor Library for Proteus
Hello friends, hope you all are fine and having fun with your lives. Today, I am going to share a new Gas Sensor Library for Proteus. I hope you guys are going to enjoy this one. We are all well aware of Gas Sensors which are used for the detection of different gasses in the atmosphere. These sensors are not available in Proteus so that's why I have designed a library using which now you can use these different gas sensors quite easily in Proteus software. You can interface this Gas Sensor with any Microcontroller i.e. Arduino, PIC Microcontroller or 8051 Microcontroller etc.
In this Gas Sensor Library for Proteus, I have added eight different Gas Sensors, which are used for the detection of different gases. As we all know that Proteus is a simulating software so it won't be able to detect the gas in real in Proteus. So, that's why I have placed a Test Pin in each of these sensors so when you make this pin HIGH, then it means the gas is present and if this Test Pin goes LOW then it means there's no gas available and sensors will give LOW output. We will have a look at How to use these sensors below. You should also have a look at the project LPG Gas Leak Detector using Arduino in which I have used this Gas Sensor MQ-2 with Arduino. So, here's the list of all eight gas sensors, I have added to this library:
- MQ-2 Gas Sensor
- MQ-3 Gas Sensor
- MQ-4 Gas Sensor
- MQ-5 Gas Sensor
- MQ-6 Gas Sensor
- MQ-7 Gas Sensor
- MQ-8 Gas Sensor
- MQ-9 Gas Sensor
So, let's start with downloading and installing of Gas Sensor Library for Proteus.
Note:
Other Proteus Libraries are as follows:
Gas Sensor Library for Proteus
- First of all, download the Gas Sensor Library for Proteus by clicking the below button:
Gas Sensor Library for Proteus
- Once you download the file, you will get a rar file so unrar it and you will find three files in it, named as:
- GasSensorTEP.LIB
- GasSensorTEP.IDX
- GasSensorTEP.HEX
- Place all these three files in the Library folder of your Proteus software.
Note:
- Now open your Proteus software or restart it, if it's already open.
- In the components section, make a search for Gas sensors as shown in below figure:
- Now place all of them in your workspace and they will look something as shown in the below figure:
- So, these are all the Gas Sensors available in this Gas Sensor Library for Proteus.
- You can see all of these sensors have four pins on them.
- Two of these pins are Vcc and GND while the third is OUT Pin.
- Test Pin is used for simulation purposes, when you have HIGH on Test Pin then it means that you have Gas in the atmosphere and your sensor will give HIGH as well on the OUT Pin.
- So, let's check out how to use these gas sensors. So, take any of these sensors and design a small circuit as shown in the below figure:
- Now before running your simulation, one thing you need to do is to double click this gas sensor and open the Properties.
- In Properties, you will find a Program file section. In this section browse for the GasSensorTEP.HEX file, which we just downloaded above and placed in the library folder of our Proteus software.
- Now run your simulation, and when you turn the logic state HIGH then you will see the OUT Pin will also go HIGH as shown in the below figure.
- You can plug this OUT Pin of your Gas Sensor in your Microcontroller e.g. Arduino, PIC Microcontroller etc.
- So, that's how you can quite easily simulate this Gas Sensor in Proteus ISIS.
- Here's the video in which I have demonstrated this library in detail:
So, that's all for today, I hope you guys have enjoyed this Gas Sensor Library for Proteus. You should have a look at LPG Gas Leak Detect using Arduino in which I have designed its Proteus simulation. I will also share its tutorial with PIC Microcontroller soon. I hope you will enjoy it. Thanks.
DS1307 Library for Proteus
Hello friends, hope you all are fine and having fun with your lives. In today's post, I am going to share a new DS1307 Library for Proteus. Recently, I have shared the GSM Library for Proteus, which was really appreciated by the readers so I got quite excited and have designed another new Proteus Library. Currently I am working on many Proteus Libraries. In future, I am gonna design almost all the sensors in Proteus. So stay tuned with us.
Anyways coming to today's post, today we are gonna have a look at DS1307 Library for Proteus. Using this library, now you can quite easily simulate DS1307 module in Proteus in a quite stylish way. ;) I have designed it in red color because its available in red color in market. DS1307 module is already available in Proteus but that one is quite basic and it looks quite dull. The one designed by our team looks quite attractive and is also easy to use. I will post its tutorials soon in which I will interface it with Arduino and PIC Microcontroller. You should also have a look at DS1307 Arduino based Digital Clock in Proteus. So, let's get started with DS1307 Library for Proteus:
DS1307 Library for Proteus
- First of all, download the DS1307 Library for Proteus, by clicking the below button:
DS1307 Library for Proteus
- Now, when you click this button you will get a rar file so unrar this file and in it you will find two files named as:
- RTCModuleTEP.IDX
- RTCModuleTEP.LIB
- Place both of these files in the library folder of your Proteus software.
- Now restart your Proteus software or open it.
- In the search component bx, search for RTCModuleTEP or DS1307 and place it in your workspace.
- If everything goes fine then you will get your RTC Module DS1307 as shown in below figure:
- That's it, now you have the ready to use DS1307 module in Proteus.
- You need to add a crystal oscillator between X1 and X2 pins while the remaining are used for I2C Protocol, which is a common protocol for RTC Modules.
- I will also post a tutorial in which I will interface this RTC Module with Arduino or PIC Microcontroller and then you will get a better idea of how to use it.
- If you design some project using this DS1307 Library for Proteus then do share it with our community so that others could also get benefit out of it.
So, that's all for today. You should also have a look at these New Proteus Libraries for Engineering Students. I hope you are gonna enjoy this DS1307 Library for Proteus. If you have any suggestions or feedback then do let us know in comments. Till next tutorial, take care and have fun!!! :)
Send SMS with SIM900D in Proteus ISIS
Hello friends, hope you all are fine and having fun with your lives. Today, I am going to share a new exciting post on Send SMS with SIM900D in Proteus ISIS. In my previous post, I have shared the new GSM Library for Proteus, which is the first ever designed library for Proteus, and I am quite excited while sharing its features. So, today, we will use this GSM Lirbary for Proteus and we are gonna send sms with Sim900D module available in that library. We are gonna design this whole project in Proteus ISIS.
If you wanna implement it on hardware then you must have a look at Send SMS with SIM900D module with Arduino which is designed in real hardware but today we are gonna just do the simulation part. Iam not gonna use any Microcontroller today. Instead I will just send the AT commands through virtual Terminal and we will make it work.So, let's get started with Send SMSM with Sim900D in Proteus ISIS.
Send SMS with SIM900D in Proteus ISIS
- First of all, I assume that you have already installed the GSM Library for Proteus. If you haven't then first intall it because without this library you can't use GSM module in Proteus ISIS.
- Next thing you need to do is to design a circuit as shown in the below figure:
- Now we need to run the simulation, so run it and in your virtual terminal, send these commands as shown in below figure:
- The first AT command is for testing our GSM module and as it has given OK in reply so it means its working correctly.
- The second command AT+CMGF=1 is for converting our GSM module to text messages, which it has accepted correctly and has given us OK in reply.
- Now we are ready to send our SMS.
- So, in order to do that we have to send it the command, as shown in below figure:
- Now you can see, when I have given it the command which is AT+CMGS="+923326062060" , it has accepted it and replied back with this sign ">" , now the GSM module is actually asking for the message body.
- So, let me write some text and then when I enter the Cntrl+Z command then it will send the message as shown in below figure:
- So, I have given it the text of my blog link and then when I entered Cntrl+Z then it has sent the SMS and replied me back with +CMGS: 01 means its the first SMS sent from this GSM module.
- So, that's how you can send any nmber of messages as you want from this module.
- AS its a simulation, so obviously you are not gonna get the actual message on your mobile number but you can use it for testing your codes.
- In the next post, I am gonna hopefully implement it using Arduino board or PIC Microcontroller.
So, that's all for today, I hope you have enjoyed the Send SMS with Sim900D in Proteus ISIS software. Till next tutorial, take care and have fun!!! :)
GSM Library for Proteus
Hello friends, hope you all are fine and having fun with your lives. In today's post, I am going to share GSM Library for Proteus. Yeah you have read absolutely fine, today I am gonna share the most awaited and most demanded Proteus Library. :) Till now, I have received hundreds of suggestions and requests about this Library and I have always told them that its under designing process and I will post it real soon. So finally the wait is over and we have our new GSM Library for Proteus, ready to download and simulate in Proteus. Using this GSM library for Proteus, now you can easily simulate your GSM module in Proteus and can test your code. :)
As its the first version of our GSM Library so its not complete or perfect. It is really the basic model of GSM Library and rite now it will only support some commands, which I will post below. I am still working on it and I will soon update these files and will add more commands in it but till then you have to use these commands only. Moreover, this Library contains only one module in it which is SIM900D module. I will add more soon like SIM900A and Sim300 etc. real soon. I will also interface it with different Microcontrollers like Arduino or PIC Microcontroller etc. and will share their tutorials. So. let's get started with GSM Library for Proteus:
Note:
Other Proteus Libraries are as follows:
GSM Library for Proteus
- First of all, download the GSM Library for Proteus by clicking the below button:
GSM Library for Proteus
- When you download it, you will get three files in it which are:
- GSMLibraryTEP.IDX
- GSMLibraryTEP.LIB
- GSMLibraryTEP.HEX
- Place all these files in the Libraries folder of your Proteus software.
Note:
- Now, open your Proteus software or restart it if its already open and in components list search for SIM900D and you will get three results for it.
- Place all of them in your Proteus workspace and they will look like as shown in below figure:
- Now, you can see in the above figure that we have three GSM Modules in our Proteus software.
- These three GSM modules are exactly same in functionality as you can see they all have two pins on them which are TX and RX and they are only differ in color but they all work on Serial Port.
- One is in light blue color which is kind of our theme color, next one is in green color while the last one is in red color.
- So, now let's have a look at how you can use it in your Proteus simulations.
- Double click any of them and in the program file section, browse to the GSMLibraryTEP.HEX file and upload it in SIM900D module as shown in below figure:
- AS you can see in the above figure that I have uploaded the GSMLibraryTEP.HEX file in the Program file section.
- Now click OK and interface a Virtual Terminal with SIM900D, as shown in below figure:
- Now, I am gonna run my simulation and will send it AT commands we will check the response of this GSM module. :)
- Now these are some basic commands, which are rite now supported by this version of GSM Module.
- It won't be able to send or receive SMS rite now because these functionalities are not added yet but they are coming soon, as I am still working on it.
Note:
Here's the complete list of commands currently supported by this Sim900D module:
- AT
- AT+CPIN?
- AT+CSQ
- AT+CGMI
- AT+COPS?
- AT+CGMM
- AT+CGSN
- AT+CNUM
- ATA
- ATH
- AT+COLP
- AT+CLIP
- AT+VTS=1
- AT+CSMP?
- AT+CSCS?
- AT+CSCS="HEX"
- AT+CSMP
- AT+CNMI=1,2,0,0,0
- AT+CMGF=1
- AT+CMGD=1
- So, these are the commands which are currently supported by this Version 1.0 of our SIM900D GSM Module. I am gonna add more soon. :)
- Now, here's a quick video in which I have shown its working, which will give you the better idea of this GSM Module.
Upgrade # 1: Send SMS with Sim900D
That's all for today, I hope you are gonna enjoy this GSM Module. Must write your experience in the below comments which will work as a boost for me and I will design it even faster. :) So, till next tutorial, take care and have fun !!! :)
Genuino Library for Proteus
Hello friends, hope you all are fine and having fun with your lives. Today, I am going to share a new Genuino Library for Proteus. Genuino boards are just the same as Arduino boards but with slight difference of color and shape. I have already posted a tutorial on Arduino Library for Proteus in which I have explained how to download the Arduino Library and use it in Proteus. Today, I am going to post a similar library but for Genuino boards. Their functionality is exactly the same as the Arduino Library but they have better look and Genuino Color.
II hope you are gonna like this library as well. Other bloggers are welcome to share this library with their reader but do mention our link in creator section, we will be really obliged. Now, let's start with the Genuino Library for Proteus.
Genuino Library for Proteus
- First of all, download the Genuino Library for Proteus from the below button:
Genuino Library for Proteus
- In the above link, you will get an rar file which will have two files, named as:
- GenuinoTEP.LIB
- GenuinoTEP.IDX
- Now place these two files in the Library folder of your Proteus software.
Note:
- Now start your Proteus software and go to Component searching section and search for GenuinoTEP as shown in the below figure:
- Now place them in your Proteus work space and they will look like as shown in below figure:
- In the above figure, five of these genuino boards are visible. The sixth board is Arduino Mega1280, which is similar to Arduino Mega 2560 in shape so that's why I have omitted it in the above image.
- Now you can design any of your project on Genuino board quite easily in Proteus using this Genuino Library for Proteus.
- In order to upload the code in any of these boards you need to double click it to open its properties.
- For example I double click the Arduino UNO baord then the Properties panel will look like as shown in below figure:
- In the above figure, you can see a section named Program file, that's where you are gonna browse your hex file.
- You should read How to get Hex file from Arduino, if you don't know already.
- So, get the hex file and upload here and your Genuino board will get active.
- In the below video, I have explained in detail How to use this Genuino board in Proteus and have already tested the blink example.
That's all for today, I hope you will enjoy this Genuino Library for Proteus. Let me know your suggestions about this library. Have fun !!! :)
Bluetooth Library for Proteus
Hello friends, hope you all are fine. Today, I am going to share a new Bluetooth Library for Proteus. Using this Library, now you can quite easily use Bluetooth modules in Proteus ISIS. I have designed two Bluetooth modules which are HC-05 and HC-06. We all know about these modules. We use these modules for sending data through Bluetooth. Till now, there's no such Bluetooth Library designed for Proteus and we are the first developers of this awesome Bluetooth Library for Proteus. I hope you guys are gonna like it. I have also posted a tutorial in which I have done Arduino Bluetooth Communication using HC05 in hardware. I hope that one will also be interesting to read, if you have planned to start working on Bluetooth Module.
Other bloggers are welcome to share this Bluetooth Library for Proteus on their blogs but do mention our link as a respect to our efforts. These Bluetooth modules are not gonna accept AT Commands rite now as we haven't added much functionality in it but we are gonna add more soon. I will also add more Bluetooth modules in this library and will update it with time. Rite now, it just has two Bluetooth modules in it, which are:
You can do serial communication with these modules quite easily. So, let's get started with Bluetooth Library for Proteus an see How to install it and how to use it in Proteus.
Note:
Other Proteus Libraries are as follows:
Bluetooth Library for Proteus
- So, first of all, download this Bluetooth Library for Proteus by clicking the below button:
Bluetooth Library for Proteus
- In this rar file, you will find two files which are named as:
- BluetoothTEP.IDX
- BluetoothTEP.LIB
- So, download these two files and place them in the library folder of your Proteus ISIS software.
Note:
- Now open your Proteus software or restart it if its already open and search for Bluetooth and you will get something as shown in below figure:
- Now select both of these modules and place them in your workspace and it will look like something as shown in below figure:
- As, I told earlier, we have just used the basic TX and RX pins of these Bluetooth modules.
- That's why you can see in the above figure that only TXD and RXD are working while all others are not working.
- Let's have a look at it working, so let's design a simple circuit and do the communication between these two Bluetooth modules.
- If you haven't worked on Virtual Terminals then you should read How to use Virtual Terminal in Proteus.
- So, design a simple circuit as shown in below figure:
- Now click any HC-05 module and you will get a pop up window.
- In this window, select COM1 for first HC05 module and COM2 for second HC05 module.
- Now your COM1 and COM2 should be virtually connected, I have shown how to connect the COM ports virtually in the below video.
- Now, run your simulation and whatever you send in first terminal will show in second terminal and vice versa.
That's all for today, hope you have liked this post and are gonna enjoy it. Let me know about your remarks for this Bluetooth Library for Proteus. Have fun !!! :)
PIR Sensor Library for Proteus
Update: Here are the latest versions of this library: PIR Sensor Library for Proteus V3.0 and PIR Sensor Library for Proteus V2.0.
Hello friends, hope you are doing well. Today, I will share a new PIR Sensor Library for Proteus. PIR Sensor module is not available in Proteus so we can't use it in
our simulations. But today, I will share a new PIR Sensor Library
for Proteus which can easily simulate PIR Sensor in Proteus software.
We are quite happy that we are helping engineers by sharing these new Proteus Libraries.
We all know about PIR Sensor but if you don't know then first read Interfacing of PIR Sensor with Arduino.
As a quick review, a PIR sensor is used to detect motion in the environment and is commonly known as a motion sensor. It's quite helpful in security projects where you need to detect motion. For example in some bank vault where there's no possibility of motion, you can place this sensor and can check if there's any movement. It is also used in home automation i.e. if there's no movement in some room, turn off its appliances. So, in short, the PIR sensor has numerous uses and is used quite a lot in engineering projects.
First of all, I will show you today, How to download this PIR Sensor Library for Proteus and then we will also design a small simulation in Proteus in which I will interface this PIR Sensor with Arduino UNO. You can interface it with any microcontroller i.e. PIC Microcontroller or 8051 Microcontroller. But today, I will interface it with an Arduino microcontroller. As homework, you guys interface it with a PIC Microcontroller or 8051 Microcontroller and share it in comments, it may help others. So, let's get started with the PIR Sensor Library for Proteus:
PIR Sensor Library for Proteus
- First of all, click on the below button to download the PIR Sensor Library for Proteus:
PIR Sensor Library for Proteus
- Once you download it, you will get three files in it, named:
- PIRSensorTEP.LIB
- PIRSensorTEP.IDX
- PIRSensorTEP.HEX
- Place all these three files in the library folder of your Proteus software.
Note:
- Now open your Proteus software and search for PIR Sensor, you will get a total of four models in it.
- Place these models in your Proteus workspace and it will look something as shown in the below figure:
- I have added four models of this PIR Sensor in Proteus Library and you can use any of them.
- As working is concerned they are all the same but they differ in color.
- The first color is our normal color, which I always use for my Proteus Libraries while the second one is green, the third is pinkish and the fourth one is blue.
- This PIR Sensor has a total of four Pins, among which one is Vcc so you need to give +5V at this pin, then there's GND which you need to ground.
- The OUT pin is our main pin through which we will be getting our output like whether it detects the motion or not.
- Now, obviously, we can't detect real motion in Proteus Simulation that's why I have placed a TestPin which will be working as a simulation Pin.
- If TestPin is HIGH, it means the motion is detected and if it's LOW then it means the motion is not detected.
- Now we have our module in Proteus so one last thing we need to do is add its functionality.
- So, in order to do so, double-click this PIR sensor and in the Program File section give a path to the file PIRSensorTEP.HEX, which you have placed in the library folder of your Proteus software as shown in the below figure:
- Now click OK and your PIR Sensor is ready to be used in the Proteus Simulation.
- So, now let's design a simple example for this PIR Sensor which will help you in understanding this sensor.
PIR Sensor simulation in Proteus
- Design a simple circuit in Proteus software as shown in the below figure:
- Now you can see in the above figure that I have placed a PIR Sensor along with Arduino UNO and a Virtual terminal.
- PIR Sensor is connected to Pin # 2 of Arduino UNO.
- Now upload the below code in Arduino software and get the hex file. You should read How to get Hex File from Arduino, if you don't know already.
#define pirPin 2
int calibrationTime = 30;
long unsigned int lowIn;
long unsigned int pause = 5000;
boolean lockLow = true;
boolean takeLowTime;
int PIRValue = 0;
void setup()
{
Serial.begin(9600);
pinMode(pirPin, INPUT);
}
void loop()
{
PIRSensor();
}
void PIRSensor()
{
if(digitalRead(pirPin) == HIGH)
{
if(lockLow)
{
PIRValue = 1;
lockLow = false;
Serial.println("Motion detected.");
delay(50);
}
takeLowTime = true;
}
if(digitalRead(pirPin) == LOW)
{
if(takeLowTime){lowIn = millis();takeLowTime = false;}
if(!lockLow && millis() - lowIn > pause)
{
PIRValue = 0;
lockLow = true;
Serial.println("Motion ended.");
delay(50);
}
}
}
- Now run your simulation, and click the logic button to 1, which will indicate that motion is detected and you will get something as shown in the below figure:
- Now let's make the logic state to 0, which will indicate that no motion detected, as shown in below figure:
- So that's how our PIR Sensor is gonna work in Proteus. I hope you are going to like this PIR Sensor Library for Proteus.
- You can download the simulation by clicking on the below button:
Download PIR Proteus Simulation
- Here's a YouTube video where I have explained this PIR Sensor Library for Proteus in more detail, so check it out:
That's all for today, hope you have enjoyed it and gonna use it in your projects. If you get into any trouble, ask in the comments and I will try to resolve them as soon as possible. Take care !!! :)
XBee Library for Proteus
Hello everyone, today I am going to share a new XBee Library for Proteus. I am quite excited while sharing it as we are the first developer for this XBee Library. Now you can quite easily use XBee module in your Proteus software using this XBee Library for Proteus.Wehave spent quite a lot of time in developing this and that's the reason I couldn't share new tutorials in the past few days. Anyways we are done with this new exciting XBee Library for Proteus, hope you are gonna enjoy this one. I have already sharede two libraried for Proteus which are Arduino Library for Proteus and GPS Library for Proteus. You can also interface this XBee module with Microcontrollers like Arduino, PIC Microcontroller and 8051 Microcontroller quite easily.
As its the first version of our XBee Library for Proteus so its not quite perfect and can't do the complex tasks such as analog inputs etc. It will just do the serial communication. This xbee module has two pins TX and RX and you can do your communication with it quite easily. We have designed this XBee Library for Proteus, after quite a lot of effort and we are quite proud that we are presenting it first time for Proteus. Other bloggers are welcome to share this library on their blogs to share the knowledge but do mention our blog post link in your post. :) You should also have a look at XBee Arduino Interfacing. So, let's get started with it.
XBee Library for Proteus
- First of all, download this XBee Library for Proteus by clicking on the below button:
XBee Library for Proteus
- Now once you click it you will get a zip file to download so download this zip and open it.
- In this zip file you will get two files named as:
- So, now place these two files in the libraries folder of your Proteus software.
Note:
- Now, start your Proteus ISIS software or restart it if its already running.
- Go to your components library and search for XBee Module as shown in below figure:
- Now place it in your workspace and it will look something as shown in below figure:
- If you don't know much about xbee module then you should also have a look at Introduction to XBee Module.
- As you can see in the above figure, its our xbee module in Proteus for the first time.
- As, I mentioned earlier, its a first version of xbee module so its not very advanced and it will do just the basic serial communication i.e. sending and receiving data.
- It has two pins on it which are TX and RX and using these two pins you can send and receive data quite easily.
- So, let's design a simple example and we will see How to do the Serial communication using this new XBee library for Proteus.
- Design a simple circuit as shown in below figure:
- Now what I did is, I simply place a Virtual terminal with both of these xbee modules.
- Now we need to change the Properties of one of these XBee module so double click on any one of these and you will get the below window:
- You should also have a look at Interfacing of XBee with Computer.
- Now, I have simply changed the Physical Port of this module to COM2 while the other module is at COM1.
- So, now one of my XBee module is at COM1 while the second module is at COM2.
- Now when I run my simulation then both XBee will start sending and receiving data on their respective COM Ports.
- So, what I need to do is to virtually combine these two ports and for that I have used a software named as Virtual Software Driver from Eltima and I combine these two ports.
- Now, run your simulation and whatever you type in the Virtual Terminal of first xbee will appear in the virtual terminal of second xbee. as shown in below figure:
- You can also interface this XBee modue with other microcontrollers like Arduino, PIC Microcontrollers or 8051 Microcontrollers etc.
- I have explained this whole tutorial in below video as well.
I hope you have enjoyed it and are gonna like it. Let me know if you got into any trouble and have problems in using this library. Also share your suggestions about improvement in this
XBee Library for Proteus. :)
GPS Library for Proteus
Hello friends, hope you all are fine and having fun with your lives. In today's tutorial, I am gonna share another awesome library designed by our team for Proteus, which is GPS Library for Proteus. It's my second library for Proteus, the first one was Arduino Library for Proteus which I have already shared. I am really enjoying designing these modules in Proteus because its a new and quite challenging thing. I haven't found even a single website who has designed these modules in Proteus already. So, now for the first time, you can have the GPS Library for Proteus using which you can easily simulate your GPS module in Proteus and can design your code for Arduino, PIC Microcontroller or 8051 Microcontroller.
Other bloggers are welcome to share this library and its my humble request that do mention our blog in credits. :) The GPS module, I have designed for Proteus is a simple GPS which has TX and RX pins and when you start the simulation, this module starts sending the NMEA data on its TX pin, which you can easily check using Virtual Terminal. I am gonna show you how to check it in today's post. Another important thing, obviously in Proteus Simulation we can't get the actual values of longitude,latitude etc, so in our model, I have used the dummy values for all these data. The benefit of this module is that you can easily design your code for GPS and can test it in your simulation. Plus, its design is cool as well. ;)
Note:
GPS Library for Proteus
- First of all, click on the below button and download GPS Library for Proteus.
GPS Library for Proteus
- After downloading, you will get a zip file containing three files in it.
- Now extract all these three files named as:
- GpsTEP.LIB
- GpsTEP.IDX
- GpsTEP.HEX
- Place these files in Libraries folder of your Proteus software.
Note:
- Now open your Proteus software, if you have already opened it then restart your Proteus software.
- Now in components list search for GPS Module and place it in your workspace.
- If everything's fine then you will get your module as shown in below figure:
- As you can see in the above figure, it has two pins in total which are TX and RX.
- Now double click this GPS module and you will get to its properties as shown in below figure:
- Now, one last thing you need to do is to upload the GpsTEP.HEX file, which you got in the downloaded zip file, in the Program File section.
- This GpsTEP.HEX file is essential for this model as its adding the functionality of GPS in this model.
- So, after adding the link of GpsTEP.HEX file in the Program File section, now your Gps module is ready to use in your circuit.
- So, now let's add a Virtual terminal and check the output of this GPS Module. If you haven't worked on Virtual Terminal before then you should read How to use Virtual Terminal in Proteus ISIS.
- Design a small circuit as shown in below figure:
Note:
- The baud rate of this GPS Module is 9600.
- The data sent by this GPS module is dummy as we can't get these values in simulation.
- Now let's run the simulation and check the Virtual Terminal and if everything goes fine then you will get results as shown in below figure:
- The first line is just the intro for this module and after that you will start receiving data which is in NMEA format.
- NMEA data will remain constant but will keep on coming.
- Now, instead of using this Virtual Terminal, you can use any microcontroller here like Arduino, PIC Microcontroller or 8051 Microcontroller etc. and can write your code easily and test it.
- In my coming tutorials, I am gonna share examples for this GPS module in which I will interface it with different Microcontroller.
- In the below video, I have explained this tutorial again so if you got any trouble then watch it as well.
That's all for today. You should also have a look at
Interfacing of GPS Module with Arduino in Proteus ISIS. I hope you guys have enjoyed today's post and are gonna get benefit from it. Let me know your views about today's tutorial and also give your suggestions and help us in making this GPS Library for Proteus more smarter. :)