pcbway

Pir library for proteus,pir library proteus, pir simulation in proteus, pir simulation proteus, pir proteus simulation pir proteus library, pir in proteus, pir library proteus, pir sensor library for proteus, pir proteus libraryHello friends, hope you are doing well.  Today, I am going to share a new PIR Sensor Library for Proteus. We all know about PIR Sensor but if you don’t know then first read Interfacing of PIR Sensor with Arduino. I have shared the the basic knowledge of PIR Sensor in that post. So it will be quite helpful if you read that post first. As a quick review, PIR sensor is used to detect motion in the environment and is commonly known as motion sensor. Its 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 like if there’s no movement in some room then turn off its lights. So, in short PIR sensor has numerous uses and is used quite a lot in engineering projects.

PIR Sensor module is not available in Proteus so we can’t use it in our simulations until now. But today, I am going to share a new PIR Sensor Library for Proteus using which you can quite easily use this PIR Sensor in your Proteus software. It works quite similar to Ultrasonic Sensor Library for Proteus and is fully compatible with Arduino Library for Proteus. You should also check our other libraries for Proteus which are GPS module Library for Proteus and XBee Library for Proteus. We are the first developers in history who are sharing these new Proteus Libraries.

First I am gonna 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 am gonna interface this PIR Sensor with Arduino UNO. You can interface it with any microcontroller like PIC Microcontroller or 8051 Microcontroller. But today, I will interface it with Arduino microcontroller and as a homework you guys interface it with PIC Microcontroller or 8051 Microcontroller and share it in comments os that others can get some benefit of it. In coming posts I am gonna share some more such examples using this PIR Sensor. Other bloggers are requested to add our links in their blog posts while sharing these libraries. So, let’s get started with PIR Sensor Library for Proteus.

PIR Sensor Library for Proteus

  • First of all, click on the below button to download PIR Sensor Library for Proteus:

Download PIR Library for Proteus

  • Once you download it, you will get three files in it named as:
    • PIRSensorTEP.LIB
    • PIRSensorTEP.IDX
    • PIRSensorTEP.HEX
  • Place all these three files in the library folder of your Proteus software.
  • Now open your Proteus software and search for PIR Sensor, you will get total four models in it.
  • Place these models in your Proteus workspace and it will look something as shown in below figure:

Pir library for proteus,pir library proteus, pir simulation in proteus, pir simulation proteus, pir proteus simulation pir proteus library, pir in proteus, pir library proteus, pir sensor library for proteus, pir proteus library

  • 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 same but they are differ in color just to make them more attractive.
  • The first color is our normal color, which I always use for my Proteus Libraries while second one is green, third is pinkish and fourth one is blue.
  • This PIR Sensor has total four Pins, among which one is Vcc so you need to give +5V at this pin which other is 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 its 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 to add its functionality in it.
  • So, in order to do so, double click this PIR sensor and in Program File section give path to the file PIRSensorTEP.HEX which you have placed in the library folder of your Proteus software as shown in below figure:

Pir library for proteus,pir library proteus, pir simulation in proteus, pir simulation proteus, pir proteus simulation pir proteus library, pir in proteus, pir library proteus, pir sensor library for proteus, pir proteus library

  • 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 below figure:

Pir library for proteus,pir library proteus, pir simulation in proteus, pir simulation proteus, pir proteus simulation pir proteus library, pir in proteus, pir library proteus, pir sensor library for proteus, pir proteus library

  • Now you can see in the above figure that I have placed a PIR Sensor along with Arduino UNO and 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.

  • 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 below figure:

Pir library for proteus,pir library proteus, pir simulation in proteus, pir simulation proteus, pir proteus simulation pir proteus library, pir in proteus, pir library proteus, pir sensor library for proteus, pir proteus library

  • Now let’s make the logic state to 0, which will indicate that no motion detected, as shown in below figure:

Pir library for proteus,pir library proteus, pir simulation in proteus, pir simulation proteus, pir proteus simulation pir proteus library, pir in proteus, pir library proteus, pir sensor library for proteus, pir proteus library

  • So that’s how our PIR Sensor is gonna work in Proteus. I hope you are gonna like this PIR Sensor Library for Proteus.
  • Yo can download the simulation by clicking on the below button:

Download PIR Simulation

  • Here’s a you tube video, in which I have explained this PIR Sensor Library for Proteus in more details so much check it out.


That’s all for today, hope you have enjoyed it and gonna use it in your projects. If you got into any trouble then ask in comments and I will try to resolve them as soon as possible. Take care !!! 🙂

15 Comments

  1. Sir after downloading pir sensor library i got one .rar file only and also m nt getting library folder in labcentre electrnoics
    I am doing one AVR based project where i need this sensor. Plz help me. Rply ASAP.

    • Hi,

      Yeah unrar this rar file and you will get the library files and then follow the instructions in tutorial. The path of library folder is mentioned above in Note form and also make a search in your Labcenter folder for Libraries and you will get the folder. Its not that difficult.

      Thanks.

        • download a software of .rar file opener…..then install that software…….then by using the software open the rar file………….then whatever file you got copied to library folder of labcenter

  2. Most PIR sensors have 2-3 triggering modes selectable via a jumper or solder bridge – maybe it would be nice to emulate that behavior by adding 2-3 pins to simulate the jumper / modes.
    Trigger modes / retriggering explained here:
    https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/testing-a-pir

    Also, PIR sensor modules might have 1 pot for adjusting the cooldown period, i.e. how much time the sensor outputs a “triggered” signal (usually HIGH) before switching over (to usually LOW) – assuming no motion was detected during this period. That would also be nice to have as functionality, as currently it looks to me that once triggered it never goes back to LOW.

    Other than that, good job.

    • In Proteus, designing of active models is quite difficult, but I will consider your suggestion and will try to add the knob in it. Thanks for the appreciation. (Y)

  3. Hey, nice work and explanation about the PIR sensor. I have a problem with the virtual terminal, I can’t visualize the motions with the serial port, I have made the same things that you suggest, the only difference is that I’m working on an arduino mega1280. May you help me?

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment