A simple application of a PIR SENSOR Namely: Auto Lights using PIR Sensor and Relay system
What is a PIR Sensor?
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmeJJAKbASNDBFrHhTHJwjmFDg4t4BdAAG1vykN2BtnCZR/image.png)
PIR sensors allow you to sense motion, almost always used to detect whether a human has moved in or out of the sensors range. They are small, inexpensive, low-power, easy to use and don't wear out. For that reason they are commonly found in appliances and gadgets used in homes or businesses. They are often referred to as PIR, "Passive Infrared", "Pyroelectric", or "IR motion" sensors.
What is a Relay?
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmScR4UmZMcUmf7HpQjbjhKtASTSigKTKqLHnhDUUHenes/image.png)
is configured by using a small Driver circuit which consist a Transistor, Diode and a resistor. Transistor is used to amplify the current so that full current (from the DC source – 9v battery) can flow through coil to fully energies it. If you want to make it easier you can use a relay module instead of only a relay. Relay module has already a circuit which has a Resistor is used to provide biasing to transistor. And Diode is used to prevent reverse current flow, when the transistor is switched OFF. Every Inductor coil produces equal and opposite EMF when switched OFF suddenly, this may cause permanent damage to components, so Diode must be used to prevent reverse current.
Example of a relay module:
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmbcYKDE1tbY6NtfCEKJgUyD8V7ECKjjUQAyyL2ZNGcp66/image.png)
Simple application of a PIR sensor or known as Motion Sensor and a Relay. You can use Relay module
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmRBF6xq7s58cS78jf2nNEH5XmVeQ7VATbdrj5nGiwtZhJ/image.png)
From the block diagram above, its open loop is simply from AC source to load but with only one terminal while the other is on the relay while the relay will wait the go signal from the PIR powered by the DC source. Once the PIR detects a motion or a movement it will give a feedback to the Relay and the Relay will change its pin to ON and the reason why the system becomes Close Loop and the bulb will light. Once the Relay receive a go signal from the PIR sensor it will turn ON for only 3 seconds.
Actual Schematic diagram
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmdYS3ULbzGa6XDrreR6ZzDyZypWuovpzg4ddf874K5h6i/image.png)
If you only have a relay valued only for 5v, you may use a voltage regulator component which will control and regulate the 9v output from DC source to 5v which is enough to trigger the relay
My Actual Result
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmQeoXCqVnVaNb5rZXctEwdzNia9ij4HyT7K8tULA2m8YR/image.png)
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmSybELt5yiBp1AJ1ZSXhsJV94sV8yDmKa19zGHj1tmXHD/image.png)
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmavWSMEKXqWKjF3yAT46P13773T5dxZeZhPP39ZzgKAag/image.png)
That would be all for now Thanks!!
Comment if you have questions
signing off,
@jcpuzs1
Congratulations @jcpuzs1! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!