{"id":1254,"date":"2022-09-13T04:09:31","date_gmt":"2022-09-13T04:09:31","guid":{"rendered":"https:\/\/ledask.com\/?p=1254"},"modified":"2022-09-13T13:36:28","modified_gmt":"2022-09-13T13:36:28","slug":"hc-sr501","status":"publish","type":"post","link":"https:\/\/ledask.com\/hc-sr501\/","title":{"rendered":"HC SR501-How To Easily Control House Lights"},"content":{"rendered":"\n
This is a project about HC SR501 which wrote by an engineer who had ordered our boards.<\/p>\n\n\n\n
Whether you are in a bathroom or your study room, it makes life easier for you to automate the lighting system such that you do not have to switch every switch on. It is much more natural and enjoyable to let the lights behave the way you want without getting involved. To do a good job, you need to purchase some PCBs or instruct some wellpcb.com) to do the job for you. In this tutorial, you shall use a couple of Printed Circuit Boards<\/a>, which can be termed standard since almost all electronics enthusiasts and professionals use them.<\/p>\n\n\n First, we need to program our Arduino to give the actuating signal whenever a human being makes some movement. The working sequence is simple. The PIR Sensor stays on standby, waiting to detect any infrared signals registered from movement from a human being. When movement is registered and acknowledged by the Arduino, the Arduino issues a high signal to the relay module, telling it to close contact<\/a> for the light switch so that lights can go on since somebody is moving and needs some lighting. Where there is no movement recorded, lights go o. To keep this all working as it should, one must include some timing between the Arduino program to ensure that it waits for the right data and does not perform actions too quickly or based on erroneous data.<\/p>\n\n\n\n To get started, we shall start with a simple program using Arduino IDE. This program will be in control of our system. The program should be similar to the following:<\/p>\n\n\n\n \/\/Control<\/p>\n<\/td>In addition to this, you will also need a 5V DC voltage source to power the Arduino and a light source, which is the normal bulb for your house lights.<\/h5>\n\n
\n