PIR to Relay
halfblinddado
Posts: 59
Hello,
I am trying·to switch a relay from the output of the PIR sensor. It seems that the PIR output is not enough to drive a 5v relay.
I can switch the relay from the output of a basic stamp but I would like to do this with just electronics.
I tried using an NPN transistor and I can light an LED from the transistor based on the input from the PIR but I still can't get it to switch the relay?
As you can tell I am not a EE but I wondering if there is some simple circuit or IC I can use for this?
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
I am trying·to switch a relay from the output of the PIR sensor. It seems that the PIR output is not enough to drive a 5v relay.
I can switch the relay from the output of a basic stamp but I would like to do this with just electronics.
I tried using an NPN transistor and I can light an LED from the transistor based on the input from the PIR but I still can't get it to switch the relay?
As you can tell I am not a EE but I wondering if there is some simple circuit or IC I can use for this?
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
Comments
First let me thank you for your replys and posts. You have been very helpful to me in the past and I appreciate your contribution to the board. I read the link you suggested over and over yesterday as well as the links attached to it.
I tried the schematic from your post before I posted this one but I have several questions.
1. What transistors did you use.
2. Are the second and third transistors necessary?
3. How are the second and third transistors connected?
Thanks,
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
2. I'd use both if you're going to drive a relay.
3. The three circles are the connections. I left them unconnected to indicate that you could choose between which circuit you wanted (PIR ON - other OFF or PIR ON - other ON).
Thanks again for your help.
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
The problem I am having now is that sometimes the circuit works but most times the PIR goes into a loop and keeps triggering the relay.
I have attached a schematic with boxes representing the PIR and the transmitter. I have found that when I disconnect the transmitter the PIR stops looping.
Any Idea whats causing this?
Thanks,
Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
I put an ocilliscope on the output of the PIR and it is indeed looping at a regular interval.
I will try the diode. Should it go between the relay trigger connections or the output/input of the relay?
Thanks,
Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
I thought the same about the power I checked it and there does not seem to be a problem.
If I connect other circuits to the relay such as an led or a motor it seems to work fine.
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
Thanks for your help,
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"