Simplest Half Wave Rectification in Proteus

Hello friends, I hope you all are doing great. In today's tutorial, I will show you how to perform Simplest Half Wave Rectification in Proteus.  In this tutorial, we will design a simple Proteus simulation, where we will use a diode for half-wave rectification.

Before designing the Proteus simulation, we will first have a theoretical overview of Half Wave Rectification as it's always the best approach to read theory before practical (Proteus Simulation). So, let's get started:

What is Rectification ???

  • Rectification is an electrical process, used to convert Alternating(AC) Voltage into Direct(DC) Voltage using a circuit called rectifier.
  • The Rectification process is always carried out using diodes, as we know diodes allow the current to flow in one direction only, thus they can easily block the opposite flow of alternating current.
  • Based on DC output, rectification is divided into two types i.e.
    • Half-wave rectification. (needs single diode)
    • Full-wave Rectification. (needs multiple diodes)
  • Now, let's have a look at, what's the difference between these two types of rectification processes:

Half wave Rectification

  • In Half Wave Rectification, half wave of Alternating(AC) Voltage gets converted into Direct(DC) Voltage, while the other half gets blocked.
  • A single diode is used for Half Wave Rectification, as shown in the below figure:

  • We can allow either pulse(positive or negative) to pass or block and it depends on the diode's direction.
  • In the above figure, we are allowing positive AC pulses to pass, while blocking the negative AC pulses.
  • If we reverse the direction of the diode, it will block positive pulses & will allow negative ones.

Full Wave Rectification

  • In Full Wave Rectification, a complete alternating(AC) pulse(both positive & negative) gets converted into Direct(DC) voltage.
  • As you can see in the above figure, we are now utilizing both cycles of AC current and converting them into DC current.
  • Hence, the full wave is more efficient than a half wave, as we have seen half wave simply drops half of the pulse.
As today's topic is about Half Wave Rectification, so we won't discuss it in detail but I hope, now you must have understood the difference between full wave & half wave. Let's design half wave rectifier in Proteus:

Half Wave Rectification in Proteus ISIS

  • Proteus is one of the best software for simulating electrical/electronic circuits.
  • Basically, we have to design a really simple circuit, as shown in the below figure:

  • In order to design this half-wave rectifier, we will need these three components:
    • Sine Wave Generator.
    • Diode.
    • Resistor.
  • So, click on the “pick” button and select these components from Proteus Library, as shown in the below figure:

  • Now, let's design our circuit, so drag & drop these components one by one in the word space.
  • Set the resistor's value to 500 ohms.
  • Connect a ground terminal as we are using Vsine i.e. the alternating current source. You will find the GND component in the Terminal area from the left menu.
  • Now let's connect the wires, as shown n below figure:

  • Once we have completed the basic circuit, we’ll now analyze our output on the Oscilloscope.
  • You will find it in the left menu under "Virtual Instruments".
  • The Oscilloscope has four terminals named A, B, C, D. We’ll connect Terminal A before Diode and Terminal B after the diode, to analyze both Input and output at the same time.

  • Double Click on the alternate current source to set the values.
  • Here, I am using an amplitude of 110 ms-1 and a frequency of 1000 Hz.

     
    • I have normalized the oscilloscope axes for better examination of the pulses, here are my settings:

    • Now run your Proteus simulation, and if everything goes fine, you will get results, as shown in the below figure:

    HWR output through Analog Graph:

    In the previous section, we have analyzed the curve with Oscilloscope. Now, we are going to use another awesome feature of Proteus i.e.e Analog Graph. We will plot our input/ output curves of Half wave rectifier on the analog graph in Proteus.

    • First of all, remove the oscilloscope from the circuit.
    • Select the "Current Source" and place one probe before the diode and one after it, to get both input and output at the same time.

    • For the output, take the analog option from the graph terminal. Click on the screen where you want the graph. You can make the size of the graph according to your choice.
    • So now you have a blank graph screen. You have to set the parameters, add the trace and then simulate it.
    • So, let’s do it. Left-click on the graph screen will show you this dialogue box. Choose add trace.
    • This will show you the screen where you can add the traces. Once you have added the traces one by one by clicking the required prob, we can proceed.
    • This is the time when you have to edit the graph to show right output. Right click again on the graph screen will let you to see the dialogue box again. This time, you have to choose “Edit Graph”. Choose the value according to need. I am choosing "3m"
    • .So, you have set all the required thing. This is the time to stimulate your graph and see the required result.

    • This is the required result. We give the Input as alternating current, but in the output we got pulsating direct current that flow in one direction.
    • We can maximize the result by right click and choosing “Maximize”.
    • The green one is the input and the output that is in red is the output i.e.  direct current.

    So, that was all. This was the tutorial in which we found what is rectification, what is the use of diode in the rectification, how can we use oscilloscope as well as analogue graph to see the result of rectification. For more tutorials and learning stay tuned with us.

    Arduino Mini Library for Proteus

    Update: Here are the latest versions of this library: Arduino Mini Library for Proteus V3.0 and Arduino Mini Library for Proteus V2.0.


    Hello everyone! Hope you’re well. I welcome you on board. In this post today, I’ll explain the Arduino Mini Library for Proteus. I’ve been creating and adding new libraries for the Proteus to help you better understand the working of Sensors and Arduino Boards. You can use these libraries in your Embedded projects. They are easy to understand and you can download and run these libraries yourself quite easily.

    Before I proceed further let’s get to know what’s Arduino Mini and how it’s different from other boards. Arduino board is an open-source platform carrying both a ready-made hardware kit and software IDE (Integrated Development Environment) that we run to compute, program and control our boards.

    Arduino Mini is a type of Arduino Board, available in two models i.e. 3.3V/8MHz and 5V/16MHz. The latter is almost similar to Arduino Micro and Nano and carries the same speed and voltage, while Arduino Mini 3.3V runs at a slower speed. Another difference is that Arduino Nano contains an FTDI chip that mainly includes a USB serial port while Arduino Mini doesn’t. Moreover, the Arduino Mini doesn’t contain USB and comes with fewer analog pins, but it carries more flash memory compared to both micro and nano since the Bootloader uses only 0.5kb of memory.

    We've already detailed the Arduino Mega 2560 Library for Proteus and Arduino Mega 1280 Library for Proteus. And if your system doesn't contain proteus software, check this post that explains how to download and install proteus software. I hope you’ve got a brief introduction to Arduino Mini, let’s now dive in and learn how to get Arduino Mini Library for Proteus.

    Arduino Mini Library for Proteus

    • Click the link given below and download the Arduino Mini Library for Proteus.
    • This downloaded file will come in zip format.
    Arduino Mini Library for Proteus
    • When you extract this zip file, it will return two further files named as ArduinoMiniTEP.IDX and ArduinoMiniTEP.LIB.
    • Copy these two files given above and place them in the proteus library folder.
    • Now you’ve placed these files in the proteus library folder. After doing this, start your proteus software and if it’s running already… restart again.
    Note: We've already shared the Arduino Library for Proteus which contains six Arduino Boards in a single library.
    • The next thing we do is search for our library in the pick libraries option of the proteus software. To do so, click the ‘P’ button of the proteus workspace and search Arduino Mini.
    Select ‘Arduino Mini’ and click OK. When you press the OK button, your cursor will start appearing with the blinking Arduino board, indicating that you can place this Arduino board anywhere in the given proteus workspace. When you place your board in the proteus workspace, it will return the figure below. Let's now look into the Arduino Mini description.

    Arduino Mini Description

    • Arduino Mini contains an Atmega328 microcontroller mounted on the board.
    • It carries 14 digital I/O pins where 8 are analog pins and 6 are PWM output pins. Arduino Mini is a tiny board i.e. 1/6th of the total size of Arduino Uno.
    • There are two versions available one regulated at 3.3V with 8MHz frequency and the other 5V with 16MHz frequency.
    • This board contains no USB port and a built-in programmer. You can also identify the board by measuring the voltage between the GND and Vcc pin.
    • Moreover, no built-in connectors are available. You can solder the connectors anywhere you like better depending on the available space and requirements of the project.
    • This board is protected against overcurrent i.e. if the current exceeds the required limits it doesn’t harm the board.
    • Arduino Mini carries 32KB flash memory where 0.5KB is required for the Bootloader. Flash memory is the place that stores the Arduino code. SRAM is 2KB and EEPROM is 1 KB.

    Adding HEX File

    The next task is to upload the HEX file on the Arduino board. To upload the HEX file, right-click the board and get to the ‘edit properties’ or double-click the board to reach the edit properties panel. As you do this, you will get the figure below.
    • Now go to the ‘PROGRAM FILE’ option and browse for the HEX file in the library folder of Proteus software.
    • Check this post covering how to get the HEX file from the Arduino board.

    This is it. I hope you understand how to get the Arduino Library for Proteus. If you have any questions, you can ask me in the section given below, I’ll help you the best way I can. You’re most welcome to share your valuable suggestions and feedback, they help us create quality content. Thanks for reading this post.

    Analog Vibration Sensor Library for Proteus

    Hi Guys! Glad to see you here. I welcome you on board. In this post today, I’ll be discussing Analog Vibration Sensor Library for Proteus. I have already shared the digital Vibration Sensor Library for Proteus, you should check that as well. I’ve been adding brand new libraries for proteus covering sensors and Arduino boards. I’ve recently discussed Analog PIR Sensor Library for Proteus and Analog Flex Sensor Library for Proteus. You may be stuck into thinking I’ve previously shared those libraries but they were libraries covering digital PIR and digital Flex sensors, here we discussed analog libraries for both PIR and Flex sensors. Before I pen down how to download and simulate Analog Vibration Sensor Library for Proteus, let’s discuss what is vibration sensor first. A vibration sensor is mainly used to monitor the vibration of industrial machines. It is also called a piezoelectric that plays a crucial role in the proper working of industrial machinery. If vibration values increase from the industry standards, they can severely affect the overall working of the machine and in the worst case can put the machine at a grinding halt. To avoid this, we use vibration sensors that give the warning signal if vibration exceeds the desired values. These sensors are attached to the alarm system that produces audible sound indicating the machine is in danger, thus results in the deactivation of the entire machine. Vibration sensors are based on the piezoelectric effect to observe the small changes in pressure, acceleration, force, and temperature. These changes are converted into an electrical signal. Air fragrance can also be monitored by vibration sensors. They monitor the air fragrance and detect its capacitance and quality. I hope you’ve got a clear idea about the vibration sensor now we’ll download and run the Analog Vibration Library for Proteus. I’ve added both a simple simulation of the vibration sensor and a simulation with the Arduino Board. Let’s get started.

    Analog Vibration Sensor Library for Proteus

    • Click the link given below to download the Analog Vibration Sensor Library for Proteus.
    • As you download this file, it returns further two files named Proteus Library and Proteus Simulations.
    Analog Vibration Sensor Library for Proteus Click the Proteus Library folder that contains four files as follow:
    • VibrationSensorAnalogTEP.HEX
    • VibrationSensorTEP.HEX
    • VibrationSensorTEP.IDX
    • VibrationSensorTEP
    Now copy all files given above and place them into the library folder of your Proteus software.  
    • In case you don’t have proteus software in your system, you can read this post covering how to download and install proteus software.
    • After adding the above files, start the proteus software and if it’s already running, close the software and restart again.
    • Now click the ‘P’ button to search for the ‘analog vibration sensor’ libraries that you’ve recently placed.
    • As you search it, it will return the figure as given below:
    • Select the sensor and click OK. Now you’ll see your cursor has now started blinking with the sensor that shows you can place your analog vibration sensor anywhere in the workspace available on the proteus software.
    • As you place your sensor, it will show the figure below:
    Now we'll look into the analog vibration sensor pinout.

    Vibration Sensor Pinout

    The vibration analog sensor contains 4 pins as follows.
    • OUT = First is an OUT pin that is connected with a voltmeter that represents the output voltage against the variable resistor attached to the TestPin.
    • GND = Second is a ground pin that is attached to ground voltage.
    • Vcc = Third is the voltage supply pin that gets 5V to power the vibration sensor.
    • TestPin = Forth is the TestPin. This pin is only available in the proteus simulation. You don’t find it on the analog vibration sensor in real. When this pin is LOW, it shows no vibration and when this pin is HIGH it represents the vibration on the machine.

    Adding HEX File

    Now we’ll add the HEX file to run our vibration sensor simulation. Right-click the sensor and reach the ‘edit properties’ option and double-click the sensor it will pop up the same edit properties panel. Browse the Sensor’s HEX file option and look for the HEX file. You can find the HEX file in the library folder. Same HEX file that we have recently placed in the library folder. Select this HEX file and click OK. Now we’ll attach a simple circuit with the vibration sensor to run our simulation.

    LC Circuit

    • We need to design a simple circuit to run this sensor in the proteus workspace. We’ve designed and attached the LC circuit with the OUT pin of the vibration sensor.
    • And TestPin is connected with a variable resistor. Both variable resistance and voltage we get on the voltmeter attached with the OUT pin are inversely proportional to each other.
    • When variable resistance is set to the maximum value the voltage on the voltmeter will be zero and when variable resistance is set to the minimum value (zero) it shows the maximum voltage i.e. 4.98V on the voltmeter.
    When you run the simulation it will return the result below:
    • You can see the voltage appearing on the left vibration sensor placed on the proteus workspace is 2.56V because TestPin attached with the variable resistor is set to almost half of the resistance value.
    • I told you earlier I’ll show you both simple simulation and the vibration sensor simulation with the Arduino Board. If you are interested in the Arduino Library for Proteus, check this post where I have added six Arduino Boards Libraries for Proteus.
    Now connect the voltage on the OUT pin with the analog pin i.e. A0 of the Arduino Board: When variable resistance is maximum the voltage on the voltmeter will be zero and its equivalent analog value across LCD attached with the Arduino Board will be 0019 and when the resistance on the variable resistor is minimum the voltage will be 4.98V and its equivalent analog value on the LCD will be 1019. This is it. I hope, you’ve got a clear insight into how to download Analog Vibration Sensor Library for Proteus. If you have any questions, you can ask me in the comment section below. I’d love to help you with the best of my expertise. Feel free to pop your suggestions about the libraries you think should be included in the proteus library database, I’ll design and add them to the database. Thank you for reading this article.

    Analog Flex Sensor Library for Proteus

    Hi Friends! Happy to see you here. Thank you for viewing this read. Hope you’re well today. In this post, I’m going to discuss the Analog Flex Sensor Library for Proteus. You should also have a look at Digital Flex Sensor Library for Proteus. I’ve been adding them over the last few days intending to design and share brand new libraries that are not a part of the proteus library database already. I’m adding both simple simulation and simulation with the Arduino board to help you better understand these libraries with microcontrollers and Arduino devices. Before I go further and walk you through on how to download and simulate Analog Flex Sensor Library for Proteus, let’s get to know what’s Flex sensor first. Simply put, a flex sensor is used to monitor the value of bend. It is also known as a bend sensor that is mainly used in robot whisker sensors, door sensors, stuffed animal toys, and Nintendo power glove. The flex sensor is coupled with the exterior where the rotation of this exterior is directly related to the change in the sensor resistance. Carbon or plastic material is used for the construction of these sensors where deflection value is sensitive to varying resistance. In terms of varying resistance and size, these sensors are categorized into two main types i.e. 4.5-inch bend sensor and 2.2-inch bend sensor. I hope you’ve got a brief insight into what is flex sensor and why it is used for. You can also sneak into the Analog PIR Sensor Library for Proteus that I’ve shared previously. And if you don’t have proteus software installed in your system, check this post on how to download and install proteus software. Without further ado, let’s jump right into the Analog Flex Sensor Library for Proteus. Continue reading.

    Analog Flex Sensor Library for Proteus

    First of all, click the link given below to download the analog flex library for proteus. Analog Flex Sensor Library for Proteus As you download this file, it contains two folders named Proteus Library and Proteus Simulation. Click the Proteus Library, it will open up four files that read:
    • FlexSensorAnalogTEP.HEX
    • FlexSensorTEP.HEX
    • FlexSensorTEP.IDX
    • FlexSensorTEP
    Copy and place these four files into the proteus library folder. Now, click the ‘P’ button as below and write ‘Flex sensor analog’ in the search bar. As you do this, it will return the file as mentioned below.
    • Select this file and click “OK” As you click OK, your cursor will start blinking with the flex sensor, indicating you can place this sensor anywhere you want on the proteus workspace.
    When you place this sensor on the proteus workspace, it will appear as follows: This is how flex sensor appears on proteus workspace.

    Flex Sensor Pinout

    Flex sensor contains four pins as follow:
    • G = first is the ground pin that you’ll connect to the ground voltage.
    • O = second is the OUT pin that gives the Flex sensor value demonstrating if the sensor has identified the value of bend.
    • V = third is the voltage supply pin that receives 5V to power the sensor.
    • TestPin = forth is TestPin that we require in Proteus simulation only. This pin is not included in the sensor in real. We need to add this pin for identifying the value of bend. When this Pin is HIGH it gives the value of bend and when it turns LOW it gives no value of bend.

    Adding HEX File

    Now we’ll add the HEX file in the Flex sensor to run our simulation. You can find FlexSensorAnalogTEP.HEX file in the library folder of your Proteus library folder. Recall, we’ve already placed this file in the library folder of proteus.
    • To add this file, right-click on the sensor and look for ‘edit properties.’
    • You can also double click the flex sensor to reach the ‘edit properties’ panel.
    Now search for the HEX file that you have placed in the proteus library folder. Add this file and click ‘OK’ … Before you run this simulation we need to design and connect the LC circuit with the Flex sensor. We’ll add this circuit purposely. Why? You’ll get to know later in this post. Connect the Output ‘O’ pin with the LC circuit through voltmeter where we get the output voltage following the variable resistor attached with the test pin.
    • Both output voltage across voltmeter and variable resistance are inversely proportional to each other. When resistance is maximum, the voltage on the voltmeter is zero, thus indicating no amount of bend.
    And when resistance is zero the voltage appearing across a voltmeter will be 4.98V, confirming the value of bend as an output voltage on the flex sensor. You may be wondering why we add this LC circuit with the flex sensor? We need to include this circuit because proteus gives a peak to peak value that we have to convert into the Vrms value. That LC circuit serves this purpose. You’ve done it. You have designed a simple simulation of a flex sensor library for proteus. We have added this library the very first time, as you won’t find this library in the proteus library database before. I’ve mentioned at the start of the article, I’ll share both simple simulation and simulation with Arduino Board.

    Analog Flex Sensor With Arduino UNO

    Now we attach the Arduino board with the flex sensor. To do this, we connect the voltage appearing across the voltmeter with the analog input pin of the Arduino board. As you run this simulation it will return the result below. Again, when resistance is maximum, the voltage is zero, that gives equivalent analog value on the LCD connected with the Arduino board, that value is 0019. And when resistance is zero, the voltage will be 4.98V and its equivalent analog value on the LCD will appear 1019. That’s all for today. Hope you find this read helpful. If you face any difficulty in the simulation of Analog Flex Library for Proteus, you can leave your query in the section below, I’ll help you the best way I can. Feel free to leave your suggestions of the libraries that are not available in the proteus library database, I’ll design and share respective libraries with both simple simulation and simulation with Arduino boards. Thank you for reading this post.

    Analog PIR Sensor Library for Proteus V2.0

    Hey Guys! Glad to see you here. I welcome you on board. In this tutorial today, I’m going to share the Analog PIR Sensor Library for Proteus. We have already shared the digital PIR Sensor Library for Proteus V1.0. Moreover, you should also check the latest version of PIR Sensor Library V3.0. If you don’t know what is PIR sensor, you must read this post first where I’ve briefly discussed the Interfacing of PIR sensor with Arduino.

    PIR (Passive Infrared Sensor) also known as a motion sensor, is used to detect motion using infrared rays. It is used in banks for security purposes. It can detect the presence of a person by identifying their motion inside. Similarly, it is used in home automation where it detects the movement in the room, giving a signal we need to turn on the light because there is someone in the room. And when there is no motion detected, it turns off the light.

    Analog PIR Sensor Library for Proteus is not available in the Proteus Library Database, and I’m sharing it, for the very first time. If you’re a regular reader of our blog, you might have read the new libraries we shared previously, if you haven’t, you can first have a look at Arduino Library for Proteus where you’ll get a hold of a simulation of Arduino Board in Proteus.

    I’ll be sharing both: simple simulation in proteus and simulation of PIR sensor with Arduino Board. Besides Arduino Boards, you can also interface this analog PIR sensor with PIC and 8051 microcontrollers.

    If you feel, we are missing something important that must be included in the proteus library, share your valuable suggestion in the section below. If you’re new to proteus software, check this post on how to download and install proteus software. Let’s discuss the Analog PIR Sensor Library for Proteus. Keep reading.

    Analog PIR Sensor Library for Proteus

    Click the link given below and download Analog PIR Sensor Library for Proteus.

    Analog PIR Sensor Library for Proteus

    As you download the library, it comes with four files that are:

    • PIRSensorAnalogTEP.HEX
    • PIRSensorTEP.HEX
    • PIRSensorTEP.IDX
    • PIRSensorTEP

    Now copy all these files mentioned above and place them into the library folder of your Proteus software.

    • Click ‘P’ (Pick from Libraries) as below and search for the PIR sensor analog.

    • It will pop up four files of the PIR analog sensor as mentioned below.
    • Place all these four files in the proteus workspace. As you place them, it will appear as follows:
    • I have added four PIR Analog Sensor files in the proteus workspace that you can use as you like better.
    • These sensors are the same in terms of working but they all come in different colors just to make them attractive.
    • The first one appears in berylline color, the second one is green, the third is red and the fourth one is blue.

    PIR analog sensor contains four pins as follows:

    • Vcc = This is a voltage supply pin where we apply 5V to power the sensor
    • O = second is the OUT pin where we get the output of the PIR sensor indicating whether or not this PIR sensor has detected the motion.
    • G = third is the ground pin which is attached to the ground voltage.
    • TestPin = forth is TestPin we need to add in Proteus simulation only. You won’t find this pin mounted on the sensor in real. We have to add this pin because without this pin we cannot detect the motion in proteus simulation. When this TestPin is HIGH it shows the motion is detected and when it is LOW it shows no movement.

    After adding these four files to the proteus workspace, we need to include the HEX file in the PIR sensor. You will find this PIRSensorAnalogTEP.HEX file in the library folder of your Proteus software.

    • You can add the HEX file in two ways. Right-click the sensor and look for ‘edit properties’ or double-click the analog sensor.
    • Now look for the HEX file that you have pasted in the library folder below.
    • After adding this file, click ‘OK’ … now you’re done. You’ve added the HEX in the analog PIR sensor. You can now use this PIR sensor simulation in Proteus.
    • We’ll design and attach a simple LC circuit with this PIR sensor to understand the working and simulation of the library of this sensor.

    Attach the sensor’s analog output pin (O) with the LC circuit through a voltmeter using a voltmeter. Ground (G) pin and apply 5V to the (Vcc) voltage supply pin. Now connect the variable resistor with the TestPin, which will help identify the motion in the surrounding.

    The value of this variable resistor is related to the voltage appearing across the voltmeter. When resistance is 100% the voltage appearing on the voltmeter will be zero which shows no motion detection and when resistance is 0% the voltage value across a voltmeter will be 4.97V as below, indicating the presence of motion. Both output voltage and resistance are inversely related to each other.

    • We need to design and connect this LC circuit with the PIR sensor due to the peak-to-peak value we receive on proteus. This peak-to-peak value needs to be converted into Vrms using this LC circuit.

    This is it. This is the proteus simulation of the PIR analog sensor. We treasure to announce we’ve added this new library to the proteus database for the very first time.

    PIR Analog Sensor with Arduino UNO

    • It’s time to connect the PIR Analog Sensor with the Arduino Board.
    • To do this, we’ll connect the output voltage we get on the voltmeter with the analog input pin of the Arduino board.
    • You should also have a look at PIR Arduino Interfacing.
    • When resistance is maximum, the voltage will be zero, thus giving an equivalent analog value of 0019 and when resistance is zero, the voltage across the voltmeter is 4.98V and gives an equivalent 1019 analog value on the LCD attached with the Arduino Board.
    • You can download LCD Library for Proteus, which I have used in the above simulation.

    This is it for today. Hope you find this tutorial helpful. If you’re unsure or have any questions, you can pop your comment in the section below, I’ll help you the best way I can. Thank you for reading this article.

    New Proteus Libraries of Digital Sensors

    Hi Everyone! Hope you’re well today. I welcome you on board. In this post today, I’ll walk you through the list of New Proteus Libraries of Digital Sensors.

    I told you earlier, our team has designed these proteus libraries after a lot of hard work and you won’t find them anywhere online. We are designing these proteus libraries to help you better understand the working of sensors through proteus simulations. Also, we have added the interfacing of these sensors with Arduino boards, where you can observe the working and simulation of sensors with microcontrollers or Arduino Boards.

    If you think we are missing something important, something that should be a part of the Proteus library, share your valuable suggestion in the comment section below, and I’ll try my best to design and add the respective library in Proteus.

    Adding a new library is simple and straightforward. Even you can do it on the fly. Read this post on how to add a new library in Proteus.

    Before I bore you to tears, let’s jump right in and look for the New Proteus Libraries of Digital Sensors.

    I hope you’ve already got Proteus installed in your system. If you haven’t, read this post on how to download and install Proteus Software.

    Keep reading.

    1. PIR Sensor Library for Proteus

    PIR stands for Passive Infrared Sensor which is mainly used for motion detection. It makes use of infrared radiation for motion detection. PIR sensor contains crystalline material at the face of a sensor that detects infrared radiation. The infrared rays are reflected from the object, generating heat and infrared radiation in its field of view. This sensor is used for both domestic and industrial applications for security purposes.

    We’ll include TestPin for motion detection in proteus simulation. The sensor doesn’t carry this pin in real. HIGH and LOW voltages generate a sense of motion detection. When the voltage is HIGH it means TestPin is getting 5V and in this case, it will detect the motion when the pin is LOW it means there is no voltage and thus no motion is detected.

    Download PIR Sensor Library for Proteus

    2. Gas Sensor Library for Proteus

    Gas sensor, as the name suggests, is used to measure the presence of gages in the atmosphere. The concentration of the gas in the surroundings changes the resistance of the sensor material, ultimately generating a corresponding potential difference. When this potential difference is measured as an output voltage it gives the amount of concentration of gas in the atmosphere.

    These sensors are mainly installed for the detection of toxic gases and gas leakage. When it detects the gas leakage, it sends an alarm signal, confirming there’s a leakage in the surrounding that needs to be fixed. Gas sensors vary in terms of their range, size, and sensing ability. It all depends on the nature of the application and the gas used. They mostly operate as a part of an embedded system that is commonly connected to the audible alarm.

    We’ve produced both: simple simulations with the gas sensor and the simulation of the sensor with the Arduino Board. You can click the link below to download the proteus library of the gas sensor.

    Download Gas Sensor Library for Proteus

    3. Flame Sensor Library for Proteus

    Sensitive to normal light, a flame sensor is used to detect fire and flame. The flame sensor carries a range from 760nm to 1100nm. Better maintain a certain distance from the fire or flame object, or else high temperature might damage the sensor. A distance of almost 100cm from the flame object is normally recommended. These sensors are embedded in firefighting robots as a part of an embedded system. Moreover, they work better than the smoke sensor due to their remarkable sensitivity. The flame detection mechanism includes a natural gas line, alarm system, and fire suspension system. This flame sensor is widely used in industrial boilers, confirming if the boilers are working properly.

    Again, we’ve included both: simple simulation and simulation with the Arduino board. The Proteus library zip file download link is as follows:

    Download Flame Sensor Library for Proteus

    4. Vibration Sensor Library for Proteus

    A vibration sensor, also known as a piezoelectric sensor, is used to measure the vibration of the machines. Vibration plays a critical role in the working of industrial machinery. The values exceeding the recommended values can put the entire system at a total halt. These sensors are installed in industrial machinery to keep the vibration under control. They are mainly connected to the audible alarm system which results in total suspension of the system in case vibrations exceed a certain number.

    Vibration sensors use the piezoelectric effect to monitor minor changes in temperature, pressure, acceleration, and force. Thus detecting the changes converts them into an electrical signal. These sensors are also used to monitor air fragrance. It differentiates between fragrances by measuring both quality and capacitance.

    We’ve added the proteus library of the vibration sensor. Curious to download and use this proteus library? Click the link below.

    Download Vibration Sensor Library for Proteus

    5. Flex Sensor Library for Proteus

    A flex sensor, also known as a bend sensor, is a device used to measure the value of a bend. This sensor is attached to an exterior that upon twisting produces a change in resistance in the sensor. It finds applications for indoor sensors, robot whisker sensors, Nintendo power gloves, and stuffed animal toys. These sensors are composed of carbon or plastic material that provides enough elasticity to the sensor where the value of deflection is directly related to the varying resistance. Flex sensors are mainly divided into two types based on their size and varying resistance i.e. 2.2-inch bend sensor and 4.5-inch bend sensor.

    We’ve designed and added both: simple simulations of the flex sensor and simulations with the Arduino board. The Proteus library zip file download link is as follows:

    Download Flex Sensor Library for Proteus

    6. Rain Sensor Library for Proteus

    A rain sensor, as the name suggests, is a device used to detect rainfall. It operates on the principle of total internal reflection. A rain sensor is mainly used in two applications. In the first case, it is used to protect the car interior from rain. The sensor uses infrared light that is flashed at an angle of 45 degrees on the windscreen. When the screen is wet, this angle changes to 60, causing the light to reflect with a lower intensity than automatically activates the car windscreen wipers to remove water and clean the car windscreen.

    In the second case, the water conservation device is attached to an irrigation system that brings the system to a total halt in the case of rainfall. These sensors for irrigation systems come in both hard-wired and wireless versions.

    You can download the rain sensor library for Proteus from the link below. Both simple simulation and simulation with the Arduino board are available.

    Download Rain Sensor Library for Proteus

    7. Magnetic Reed Switch Library for Proteus

    A magnetic reed switch is a device used to identify the magnetic field and control electricity in the surroundings. They are composed of ferrous reeds encapsulated in a small glass that is sensitive to the magnetic field in the switch. It finds applications in electromagnetic projects and fluid-level sensors to measure motor oil.

    We’re sharing this library first time as you won’t find it in the proteus database before. Click the link below to download a magnetic reed switch library for Proteus.

    Download Magnetic Reed Switch Library for Proteus

    8. Infrared Sensor Library for Proteus

    Infrared sensors are used for obstacle detection. They use infrared rays to identify if there is any obstacle in front. These sensors come in two parts: one is a transmitter that transmits the infrared rays and the other is the receiver that receives these rays after getting reflected from the object. They are also used to detect the heat emitted by an object. Infrared sensors find applications in robotics and automation for security purposes. The Proteus library zip file download link is as follows:

    Download Infrared Sensor Library for Proteus

    That was all about New Proteus Libraries of Digital Sensors. I hope you like this article. I’ve dissected every piece in an easy-to-read and easy-to-understand step-by-step tutorial. You can DIY, simulate, and incorporate this library into your project just by reading our posts. If you find any difficulty in the simulation or execution of your proteus project, I’m here to help you. And don’t forget to share your valuable suggestions or feedback, they help us create quality content. Thank you for reading this post.

    Proteus Libraries of Embedded Sensors

    Hi Folks! Glad to see you here. Thank you for viewing this read. In this post today, I’m going to list New Proteus Libraries of Embedded Sensors.

    I’ve shared scores of Proteus libraries and today I’m going to pack them into one single post that will help you scan through all libraries related to sensors in one place. Moreover, if you are alien to Proteus, you can check this post on how to add a new library in Proteus. I’m going to embed the link to each Proteus library added recently. You can download and simulate Proteus libraries from the respective links. Plus, all these libraries are compatible with Microcontrollers and Arduino boards.

    All links you find in this post come with two simulations i.e. one simple simulation of the sensors and another simulation with the Arduino board. If you face any difficulty in simulating the library, you can pop your question in the section below, I’ll help you the best way I can. Before further ado, let’s jump right in and look at the list of New Proteus Libraries for Engineering Students. If your system doesn’t carry Proteus software already, you must have a look at How to Download and Install Proteus Software.

    1. Ultrasonic Sensor Library for Proteus

    Ultrasonic sensors are mainly used for obstacle detection. They use sound waves for object detection. Ultrasonic sound waves are emitted at a particular frequency which is then reflected back to the sensor after hitting the obstacle. The time these sound waves take in traveling from the sensors and then reflecting from the object is measured, which gives the total distance covered by the sound waves. It is important to note that these ultrasonic sound waves travel faster than the audible sound that we humans can hear.

    We’ve designed an ultrasonic sensor library for proteus which you can easily run and simulate in proteus. The library is demonstrated with examples that will help you better understand these sensors covering three different scenarios. I’m sure you’ll love the working and simulation of this library that you can easily understand and incorporate into your semester project. The Proteus library zip file download link is as follows:

    Download Ultrasonic Sensor Library for Proteus

    2. PIR Sensor Library for Proteus

    PIR (passive infrared) sensor is an electronic device that uses infrared rays for motion detection. They are based on thermal detection. They measure infrared rays reflected from objects that produce heat and thus infrared radiations in their field of view. Crystalline material incorporated at the center of the sensor detects infrared radiation. These sensors are mainly used for security purposes. You’ll find these sensors installed in bank security or home security systems.

    We cannot measure real motion in proteus software unless we place TestPin. We don’t need this pin in real-time applications. We use this pin for proteus simulation only. When we give 5V to this pin, it will detect the motion and when zero voltage is applied, no motion is detected through this pin.

    We’ve designed the proteus library of the PIR sensor, you can download the Library zip file from the link below:

    Download PIR Sensor Library for Proteus

    3. Gas Sensor Library for Proteus

    A gas sensor is an electronic device mainly used to detect the presence of gases in the surrounding. Working is simple and straightforward. The gas sensor generates a potential difference based on the gas concentration in the atmosphere. This potential difference is directly related to the resistance of the inside material. This potential difference is measured as an output voltage that is directly proportional to the concentration of the gas.  The gas sensor is widely used in a variety of industries for the detection of gas leakage.

    We’ve designed and added the library for the gas sensor which you can easily simulate in proteus. We’ve included the following 8 gas sensors in the library:

    • MQ – 2
    • MQ – 3
    • MQ – 4
    • MQ – 5
    • MQ – 6
    • MQ – 7
    • MQ – 8
    • MQ – 9

    You can download the Gas sensor library for proteus by the link below.

    Download Gas Sensor Library for Proteus

    4. Flame Sensor Library for Proteus

    A flame sensor is an electrical device mainly used to detect flame or fire. This sensor carries an infrared band that detects the presence of hot gases in the atmosphere. Installation of the flame sensor depends on the nature of work i.e. the presence of hot gases can lead to sounding the alarm, activation of the fire suspension system, or deactivation of fuel from the mainline. A flame sensor works better than a heat or smoke detector due to its quick response corresponding to hot gases. It is widely used in industrial furnaces, confirming if the furnace is running accurately.

    Again, we cannot produce fire in the proteus software the reason we need to include the TestPin for the detection of fire. When the TestPin is HIGH it indicates the presence of flame and when it is LOW it projects the absence of flame.

    We’ve designed and added Flame Sensor Library in Proteus, which you can download from the link below:

    Download Flame Sensor Library for Proteus

    5. Vibration Sensor Library for Proteus

    A vibration sensor (also called a piezoelectric sensor) is an electrical device mainly used to detect vibration. It is a transducer that behaves like a switch to turn off or turn on the system when a certain vibration level is achieved. The vibration sensor might contain different sensitivity that depends on the nature of the application. Sensitivity is 500 mV/G for low-vibration applications and 100 mV/G for high-vibration applications.

    These sensors are also used in security systems. If someone tries to break into your house, this sensor can detect the forced entry and produce a signal that triggers an alarm system.

    Vibration plays a critical role in electrical and mechanical machines. These systems are configured with a specific number of vibration which if exceeds the recommended value, can damage the machine. These sensors confirm if machines are running with the required vibration.

    Click the link below to download the vibration sensor library for the proteus.

    Download Vibration Sensor Library for Proteus

    6. Flex Sensor Library for Proteus

    The flex sensor is also known as a bend sensor mainly used to measure the bending angle. The resistance of the sensor element is directly proportional to the value of the bend that the surface generates. The bend sensor is also called a flexible potentiometer. This sensor is widely used in security systems, rehabilitation research for measuring joint movement, and in computer and music interfaces. Dataglove is a common example of a flex sensor.

    We’ve designed and added the library of this flex sensor in Proteus which you can download from the link below.

    Download Flex Sensor Library for Proteus

    7. Heart Beat Sensor Library for Proteus

    A heartbeat sensor is used to detect the heartbeat of the human heart. It operates on the principle of light modulation. When a finger is placed on the sensor, it generates the digital output of the heartbeat. As you place the finger, it detects the blood flow that you can produce as a digital output on the LCD connected to Arduino Board or Microcontroller.

    We’ve designed and added the library of this heartbeat sensor in Proteus. We’ve produced two versions of a heartbeat sensor where one version generates only one heartbeat pattern and the other produces multiple heartbeat patterns. The Proteus library zip file download link is as follows:

    Download Heart Beat Sensor Library for Proteus

    Download Heart Beat Sensor Library V2.0 for Proteus

    8. Rain Sensor Library for Proteus

    A rain sensor is a switching device used to detect rain. It finds applications in security systems and home automation. This sensor is also installed in some car windshields where it detects the presence of rainwater, giving an automatic signal to the windshield wipers that thus start cleaning the windshield. Rain sensor operates on the principle of total internal reflection with the use of infrared radiation. The infrared light beam is set at a 45-degree angle on the clear glass of the windshield. This sensor triggers when it starts raining. In the presence of rain, less amount of light is reflected back to the sensor. When this reflected light meets the preset value you already set earlier, it turns on the car wiper mechanism.

    We’ve designed and added the library of rain sensors in Proteus which you can download from the link below.

    Download Rain Sensor Library for Proteus

    9. Soil Moisture Sensor Library for Proteus

    Soil moisture sensor, as the name suggests, is used to measure the water content. It carries two probes where the resistance value of the current passing through the soil is used to record the moisture value. The probe is normally powered with a DC supply or batteries ranging from 3.3 to 20V that generates the output voltage ranging from 0 to 3V.

    We’ve designed the library of soil moisture sensors in proteus. You won’t find this library before in the proteus library and we’re adding it the very first time. The Proteus library zip file download link is as follows:

    Download Soil Moisture Sensor Library for Proteus

    10. Water Sensor Library for Proteus

    A water sensor is an electrical device used to detect the presence of water. It is mainly used for domestic and industrial purposes where it is used to detect water leakage. When it detects the leakage, it turns off the water supply to the house.

    We’ve designed and added the library of water sensors in Proteus which you can download from the link below.

    Download Water Sensor Library for Proteus

    Conclusion

    I've shared 10 New Proteus Libraries above for Engineering Students. Hope you find this post helpful. You can use these libraries in your semester project or anyway as you like better. Both simple sensor simulation and simulation with the Arduino board are added to the proteus library. And TestPin included in the sensor is only used for simulation purposes. You won't find this pin in the actual sensor.

    Don’t forget to leave your comment in case you need my help. We keep sharing and adding new libraries on and off, not available in the proteus already. Feel free to leave your valuable suggestions about the libraries you think are not included in the Proteus library. We’ll try our best to include them from the get-go in easy-to-read and easy-to-understand tutorials. Thank you for reading this post.

    Water Sensor Library For Proteus

    Hello Everyone! Happy to see you here. I welcome you on board. In this tutorial, I’ll walk you through the Water Sensor Library for Proteus. You won't find this library in the proteus software, and we are introducing it for the very first time. It will help you to better understand the working/ operation of the water sensor.

    If you want a proteus library of any sensor, that is not available in proteus already, you can share it in the comments below, I’ll try my best to create and share that library asap.

    Before I go further, it’s better to scratch and get a hold of what is a water sensor? A water sensor is an electronic sensor, used to detect the presence of water. It detects the water by measuring the water's electrical conductivity. These sensors are mainly used to ward off the flow of water in case any leakage happens. This device is mainly used for detecting water levels, rainfall, and water leakage.

    Let’s dive in and study how to download and simulate Water Sensor Library For Proteus.

    Water Sensor Library For Proteus

    • Click the button below, to download a water sensor library for proteus:

    Water Sensor Library For Proteus

    • As you download the file, it will appear in a .zip file that comes with two folders named: Proteus Library and Proteus Simulation.

    Now, you have to open the proteus library folder that carries three files, named:

    • WaterSensorTEP.IDX
    • WaterSensorTEP.LIB
    • WaterSensorTEP.HEX

    • Copy all these three files and paste them into the Library Folder of the Proteus software.

    • After doing this drill, you have to start the proteus software. If it’s already open, restart.
    • After starting the proteus software, search for the water sensor available in the component’s search box as mentioned below:

    • As you search for the sensor, you will get the figure below. This is our water sensor library for proteus that we have recently added to the proteus library.

    • As you click ‘OK’ you’ll watch the sensor appearing as a blinking image, indicating you can place this sensor anywhere you want in the proteus workspace. After doing this, you’ll get the below result:

    • Almost half work is done. You’ve created the proteus workspace with the water sensor.

    Sensor Layout

    Still reading? Perfect. Before I move further and discuss how to add a sensor’s hex file and run a proteus simulation of the water sensor, let’s discuss the sensor’s pins and layout first. This water sensor comes with four pins as follows:

    • (S): This is an analog output pin that is used for the connection with the input of the circuit.
    • (-): This pin is connected to the ground.
    • (+): This is a power supply pin that is used to power the sensor. It is officially recommended to connect this pin with a voltage ranging from 3.3V to 5V.
    • TestPin: This test pin is used for proteus simulation. You won’t find this pin in real-time on the water sensor.
    The sensor comes with ten exposed copper traces where five are sense trances and the remaining are power traces.

    • Though these copper trances are not directly connected, they stand connected when they all are submerged in water. Generally, they are placed together where one sense trace stands between two power traces.
    • There is one LED incorporated on the board that turns on when the sensor is powered.

    Working Of Water Sensor

    Working is pretty simple.
    • The exposed parallel traces work as a variable resistor whose resistance is directly related to the water level.
    • The sensor resistance is inversely proportional to the water level.
    • When the sensor is fully immersed it shows the low resistance, thus indicating more height of the water.
    • And when the sensor is partially immersed, it shows more resistance, and less conductivity, thus indicating less height in correspondence with the resistance.
    • This variable resistance is directly related to the voltage appearing across the sensor. By measuring that voltage we can detect the water level.

    Adding Sensor’s Hex File

    • I hope you’ve got a clear idea of how this sensor works and detects the water level. Now, we’ll add the hex file of this sensor available in the library folder.
    You can do it in two ways.
    • Right-click on the water sensor and look for “Edit Properties” as shown in the figure below.

    • You can also get the “Edit Properties” panel by double-clicking on the sensor.
    • Now, you can add the sensor’s hex file by clicking the browse button as shown below. This file you can find in the library folder of the proteus software.

    • You’ve added the hex file successfully. Now click “OK” and close the “Edit Properties” panel.

    Proteus Simulation of Water Sensor

    • Now we simulate the sensor we’ve produced in the proteus workspace.
    • To do this, we’ll design a small LC circuit that will help simulate the water sensor.
    • Connecting the LC circuit with the sensor is simple and straightforward. We’ll connect the sensor’s analog output pin (S) with the LC circuit through a voltmeter. And we’ll attach the variable resistor to the TestPin of the sensor. This resistance of this variable resistor will help us detect the water.
    • The voltage on this voltmeter connected with the LC circuit gives the value against the variable resistor.
    • When the resistance is zero, it gives the maximum voltage across the voltmeter i.e. 4.97V. Recall, when the sensor is fully immersed in water, it shows zero resistance, thus indicating more height of the water level.
    • And when we start increasing the resistance across the variable resistor, the voltage on the voltmeter will start decreasing, thus indicating the sensor is not immersed in water, projecting the low height of the water level.
    • There is a reason we’ve connected the sensor with the LC circuit. Because proteus always provides the peak-to-peak value of the sensor and we need to convert that peak-to-peak value into Vrms.
    • We are using this LC circuit to run our proteus simulation, we don’t need it in the real-time hardware implementation of the water sensor.
    • We’ve done it. This is the complete simulation of the water sensor. This water sensor library is not available in the Proteus library, we’ve added it the very first time.
    • Now, click the play button at the bottom left of Proteus software, it will show the result above.

    Water Sensor with Arduino

    • Now, we’ll attach this sensor with Arduino.
    • We’ll connect the output of the water sensor appearing across the voltmeter to the analog input pin of the Arduino board.
    • When the resistance is zero, the voltage will appear as 4.97V, thus giving an equivalent analog value of 1019 on the LCD attached to the Arduino Board.
    That’s all for today. Hope you’ve got a clear insight into how to simulate a water sensor library for proteus. If you have any questions, you are most welcome to ask me in the comment section below, I’ll try my best to help you according to the best of my expertise. In the upcoming tutorials, I’ll keep adding more libraries in proteus around sensors and others not available in the library, already. Thank you for your precious time. Stay tuned!

    Soil Moisture Sensor Library For Proteus

    Update: We have created a new version of this library, which you can check here: Soil Moisture Sensor Library for Proteus V2.0.

    Hi Friends! Hope you’re well today. I welcome you on board. In this tutorial, I’ll be discussing the Soil Moisture Sensor Library for Proteus. You won't find Soil Moisture Sensor Library in Proteus and we’re going to share its Proteus Library very first time. I have previously shared many Proteus Libraries for digital and analog sensors and today I’m discussing something new. Excited to get a hold of the Soil Moisture Sensor Library? Me too. In the upcoming days, I’ll keep sharing different libraries related to sensors. If you’re curious to sneak into the nitty-gritty of sensors not available in the Proteus library already, pop your suggestion in the comment section below. I’ll try my best to comply with your suggestions and walk you through something brand new.

    Soil moisture sensors are used to measure the water content in the soil. They use capacitance to measure the dielectric permittivity of the soil which defines the function of the water content. Before further ado, let’s dive in and have a look at How to download and simulate Soil Moisture Sensor Library for Proteus:

    Where To Buy?
    No.ComponentsDistributorLink To Buy
    1LCD 20x4AmazonBuy Now
    2Arduino UnoAmazonBuy Now

    Soil Moisture Sensor Library For Proteus

    • You can download the Proteus Library zip file of Soil Moisture Sensor Library by clicking the button below.
    Download Proteus Library Files
    • It’s a .zip file that contains two folders inside i.e. Proteus Library & Proteus Simulations.
    • The real fun starts right here right away.
    • Open proteus library folder that contains three files named:
      • SoilMoistureSensorTEP.IDX
      • SoilMoistureSensorTEP.LIB
      • SoilMoistureSensorTEP.HEX
    • Copy and paste these three files in the Library folder of your Proteus software:
    • Now, we need to run the Proteus ISIS software and don't forget to restart, if it's already open.
    • Look for the Soil Moisture in the component’s search box as shown below.
    • After installing the Library successfully, you’ll get similar results as below:
    • You can see in the figure above we have one Soil Moisture Sensor.
    • Now simply place this Soil Moisture Sensor in your Proteus workspace, as mentioned below:
    • You can see in the figure above, I have placed one Soil Moisture Sensor inside the Proteus workspace.
    • This sensor carries 4 pins in total, named:
    • V (Vcc): We’ll provide +5V here.
    • G (GND): We’ll provide ground here.
    • Ao (Out): It’s an analog output signal from the sensor.
    • TestPin: It is used for simulation purposes only. Soil Moisture Sensor doesn’t contain this pin in real.

    Adding Sensor’s Hex File

    • After this drill, we’ll add the Sensor’s Hex File, which we have downloaded and placed in the Library folder.
    • To do that, right-click on your Soil Moisture Sensor and then click on “Edit Properties” as below:
    • Or you can double click the Soil Moisture Sensor, it will pop the window below:
    • Click on the Browse button and add SoilMoistureSensorTEP.HEX file available in the Proteus Library section as shown in the figure below:
    • After adding the Sensor’s Hex File, click on the ‘OK’ button to close the ‘Edit Properties’ Panel.
    • Our Soil Moisture Sensor is now ready to simulate in our Proteus ISIS.
    • We’ll design a small circuit to thoroughly understand the working of this Soil Moisture Sensor.

    Proteus Simulation of Soil Moisture Sensor

    • Here, I’m designing a simple circuit. I’ve attached a variable resistor with the Test Pin & added a Voltmeter at the Output pin, as shown in the figure below:
    • This resister defines the soil water content in the proteus simulation.
    • When the resistance is maximum at the test pin, the circuit shows zero volts across the voltmeter, which means the sensor is either in the dry ground or taken out of the ground i.e. giving zero moisture value of the water content.
    • And when resistance is zero, the circuit will show the maximum voltage across the voltmeter which indicates the sensor is inserted in a wet ground i.e. water contents in the soil are too high.
    • This is important. We have attached the output pin with an LC filter. This filter is not required in real hardware implementation.
    • We are using it in Proteus Simulation only as Proteus gives the peak-to-peak value and we have to convert that PP value into Vrms.
    • If you are working on a real sensor then you don’t need to add this LC circuit.
    • Now, let’s run this Proteus Simulation and if you have done everything as mentioned, it will show the result mentioned in the figure above.

    Simulation of Soil Moisture Sensor with Arduino

    Now, let's interface this sensor with a microcontroller.
    • We have attached the output of the sensor appearing across the voltmeter with the A0 pin of the microcontroller as below.

    You can see we get the analog value 1019 when the voltage across the voltmeter is 4.98V

    This is it. I hope you find this tutorial helpful. This will help engineering students in simulating their semester projects in proteus. In the next tutorials, I’ll be sharing and adding more libraries of sensors. You’re most welcome to share your suggestions with the sensors you want me to libraries of. If you’re unsure or have any questions, you can ask me in the section below. I’ll help the best way I can. Thank you for reading this article.

    IR Proximity Sensor Library for Proteus

    Hello friends, I hope you all are doing great. In today's tutorial, I am going to share a new IR Proximity Sensor Library for Proteus. Proximity Sensors are not available in Proteus and we are sharing its Proteus library for the first time. So far, I have only shared Proteus Libraries of digital sensors but today I am sharing an analog sensor, so too excited about it. In the next few days, I will keep on sharing Proteus Libraries of different analog sensors, so if you want any sensor in Proteus, then let me know in the comments. IR Proximity Sensors are used to detect hurdles/obstacles placed in their path. They are normally used on robots for path navigation and obstacle avoidance. So, let's have a look at How to download and simulate IR Proximity Sensor Library for Proteus: Note:

    IR Proximity Sensor Library for Proteus

    • First of all, download this IR Proximity Sensor Library for Proteus, by clicking the below button:
    IR Proximity Sensor Library for Proteus
    • It's a .zip file, which will have two folders in it i.e. Proteus Library & Proteus Simulation.
    • Open Proteus Library Folder, it will have 3 files, named as:
      • IRProximitySensorTEP.IDX
      • IRProximitySensorTEP.LIB
      • IRProximitySensorTEP.HEX
    • Place these three files in the Library folder of your Proteus software.
    Note:
    • After adding these library files, open your Proteus ISIS software, or restart it if it's already open.
    • In the component's search box, make a search for IR Proximity.
    • If you have installed the Library successfully, then you will get similar results, as shown in the below figure:
    • As you can see in the above figure that we have two IR Proximity sensors.
    • When it comes to functionality, both sensors are exactly the same, they just have different colors.
    • Now simply place these IR Proximity Sensors in your Proteus workspace, as shown in the below figure:
    • As you can see in the above figure, I have placed both of these IR Proximity sensors in my Proteus workspace.
    • This sensor has 4 pins in total, which are:
      • V ( Vcc ): We need to provide +5V here.
      • G ( Gnd ): We need to provide Ground here.
      • O ( Out ): It's an analog output signal from the sensor.
      • TestPin: It's solely for simulation purposes, we don't have this pin in a real IR sensor.
    • As we can't actually place an obstacle in front of this sensor in Proteus simulation, that's why I have used this TestPin.
    • If we change the value of TestPin from 0V to 5V then that means the obstacle is coming close.

    Adding Sensor's Hex File

    • Lastly, we need to add the Sensor's Hex File, which we have downloaded and placed in the Library folder.
    • So, in order to do that, right-click on your IR sensor and then click on Edit Properties.
    • You can also open the Properties Panel by double-clicking on the sensor.
    • Here, in the Properties Panel, you will find Sensor's Hex File Section.
    • Click on the Browse button and add IRProximitySensorTEP.HEX file here, as shown in the below figure:
    • After adding the Sensor's Hex File, click on the OK button to close the Properties Panel.
    • Our IR Proximity Sensor is now ready to simulate in Proteus ISIS.
    • Let's design a small circuit, in order to understand the working of this IR Proximity Sensor.

    Proteus Simulation of IR Proximity Sensor

    • First of all, let's design a simple circuit, where I am attaching a variable resistor with the Test Pin & I am adding a Voltmeter at the Output pin, as shown in the below figure:
    • Using this variable resistance, we can change the voltage on Test Pin.
      • If TestPin has 0V, means we don't have any obstacle in front of the sensor.
      • If TestPin has 5V, implies that something's placed right in front of the sensor.
    • So, let's have a look at How the output value will change when we change the voltage on TestPin.
    • At the Output Pin, I have placed an LC filter, which is also not required in real hardware implementation.
    • But I have to use this filter in Proteus Simulation, as Proteus provides the Peak to Peak value and we need to convert that value into Vrms.
    • So, if you are working on a real sensor then you don't need to add this inductor or capacitor.
    • Now, let's run this Proteus Simulation and if you have done everything correctly, then you will get similar results:
    • I have shown three different scenarios in the above figure:
      • In the first image, the variable resistor is at 100%, thus providing 0V at TestPin. That's why we got 0V at Output and hence no obstacle detected.
      • In the second image, the variable resistor is around 50%, thus providing around 2.5V at TestPin. So, we are getting around 2.5V at Output and hence obstacle detected in close range.
      • In the third image, the variable resistor is around 0%, thus providing around 5V at TestPin. So, we are getting around 5V at Output and hence obstacle's just in front of the sensor.
    • I have placed this simulation in the above zip file, so play with it and don't forget to add the Sensor's Hex File.
    So, that was all for today. I hope this IR Proximity Sensor Library will help engineering students in simulating their course projects. I will interface this IR sensor with Arduino and other Microcontrollers and will share their simulations. If you have any issues, then ask in the comments and I will help you out.
    Syed Zain Nasir

    I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

    Share
    Published by
    Syed Zain Nasir