209Views6Replies

Author Options:

PIR sensor help !! Answered

I have a PIR sensor.. initially when i tested it using an led.. the led used to turn on when it detected motion.. now it happens vice-a-versa . Any suggestions to rectify the problem?

Tags:PIR

6 Replies

user
blinkyblinky (author)2011-10-26

Make my nightlight. You can also look up PIR sensor Parallax and use any code from Basic to SPIN to C to assembly. 

Transistor and relay and diode schematic.

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)2011-07-24

Connect the end not connected to the PIR to the opposite supply - if you tied it to ground tie it to the supply instead. Don't forget the limiting resistor

Select as Best AnswerUndo Best Answer

user
imakethings (author)steveastrouk2011-07-24

There are 3 pins GND ,OUT,+5v
u mean i connect GND to +5v of the batter and so on?

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)imakethings2011-07-24

NO !!!!

How do you connect your LED ????

If you connect it from Out to gnd, connect it from out to +5 and vice versa DO NOT REVERSE THE SUPPLY TO GND and +5V

Steve

Select as Best AnswerUndo Best Answer

user
imakethings (author)steveastrouk2011-07-29

well i tried it . anyways . i resumed my work using a transistor and relay.. works well..

thanks anyways Steve and Andy !!

Select as Best AnswerUndo Best Answer

user
andy70707 (author)2011-07-25

I had a similar problem. If it is a PIR module, some of them have a jumper pin to make the output high or low on motion, it could be this. The correct set up should be 5v-+5v, GND-GND, OUT-LED-GND (possibly with a resistor in there so it doesn't damage the LED as I think the output is about 3-4v, but it should be alright just for quickly testing it).

Select as Best AnswerUndo Best Answer