Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

motion sensor detection based automatic lighting system

Status
Not open for further replies.

Justice Tinashe

Newbie level 1
Newbie level 1
Joined
Mar 14, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
7
I want to design a system that when it senses motion the lights will be automatically switched on and then off when no motion is detected. can I use PIC 16F877A and how? Thank you
 

pir.jpg
plz insert a pull down reistors of 10k to rb0 and rb1
the block j4 is a switch when it is on it means that the door is locked and if there any motion detected the buzzer and led activated and when the j4 switch is off and any motion detected by the pir the mc doesnot activate the buzzer and led.

for this project i write the code in mikroc pro for pic
Code:
void main()
{
 TRISB=0x0f;
 PORTB=0;
while(1)
{
   if(RB0_bit)
{
   if(RB1_bit)
   {
   PORTB=48;
   Delay_ms(300);
     PORTB=0;
     Delay_ms(100);
 }
 else
   PORTB=0;
 
}   }

hope this will help you. . . any queries plz ask
 
Last edited by a moderator:

Such systems are commercially available: PIR detectors, with adjustable on and off delays. Available in hardware stores, $10-25 a box.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top