Hello friends, I hope you all are fine and having fun with your lives. Today, I am going to share a new Proteus Library named as Vibration Sensor Library for Proteus. This Library is designed by our team on TEP and its not yet published anywhere. We are the first creator of this Vibration Sensor Library for Proteus. This Library contains just one Vibration Sensor named as SW-420. I will post a tutorial soon on interfacing of this SW-420 Vibration Sensor with Arduino. This library is compatible with all the microcontrollers like Arduino, PIC Microcontroller or 8051 Microcontroller etc. You should also have a look at Analog Vibration Sensor Library for Proteus.
Using this Library you can now easily Simulate your Vibration Sensor in Proteus ISIS software. As we can't produce real vibration in Proteus environment so that's why I have placed a TestPin in this Vibration sensor. If you send 0 at this TestPin then it means no vibration and if you sent 1 then it means we have some vibration. The Library is given below for download along with a simple simulation of this vibration sensor. So, let's get started with Vibration Sensor Library for Proteus:
Vibration Sensor Library for Proteus
- First of all, download the Library Files for Vibration Sensor Library for Proteus by clicking the below button:
- When you download the file then it will contain three files named as:
- Place all these three files in the Library folder of Proteus software.
- Noe restart your Proteus software if its already open.
- In the components search box, you have to search for Vibration Sensor, and you will get Vibration Sensor SW-420.
- Now place it on your Proteus work space and it will look something as shown in below figure:
- You can see in the above figure that our sensor has four pins, which are:
- First one is Vcc so apply +5V here.
- Second Pin is GND so apply ground here.
- Third Pin is OUT, its the output pin from where you get whether there's vibration or not.
- Fourth Pin is TestPin and if its HIGH then it means you have vibration and the OUT PIn will go HIGH and if its LOW then it means there's no vibration and OUT Pin will also be LOW.
- Now last thing you need to do is to double click this sensor to open its Properties.
- In the properties, you will find a Program File, in this section browse to your file VibrationSensorTEP.HEX which we just downloaded and placed in the Library folder of Proteus software.
- Once uploaded now you can use your Vibration Sensor in Proteus, the hex file is adding the functionality in this Vibration Sensor.
- Now let's design a simple example to get an idea how this sensor works.
- So, in order to do that, design a simple circuit as shown in below figure:
- Now run your simulation and when you make TestPIN LOW, the sensor won't give any output and when you make TestPIn HIGH then sensor will give output which means vibration detected as shown in below figure:
- The above image is quite self explanatory . :P
- The below video will give you a better idea of how it works: