PIR module Rev. B and relay
Bondo2
Posts: 6
Hi,
I have the PIR module rev. B and am trying to drive a 5v relay with it. I am using a 7.2v supply (old mobile phone adapter) and using 2N2222A transistor with a 2.2K resistor on the base. The problem is once I power up the circuit, the relay ticks but even if the red led under the lense goes off the relay stays energized. Any help ?
This is the relay am using http://www.aiks.hk/products-show.asp?classid1=318&classid0=295&classid2=375#
I have the PIR module rev. B and am trying to drive a 5v relay with it. I am using a 7.2v supply (old mobile phone adapter) and using 2N2222A transistor with a 2.2K resistor on the base. The problem is once I power up the circuit, the relay ticks but even if the red led under the lense goes off the relay stays energized. Any help ?
This is the relay am using http://www.aiks.hk/products-show.asp?classid1=318&classid0=295&classid2=375#
Comments
I used this arrangement http://www.afiata.com/wp-content/uploads/2010/09/Relay-Controller-Circuit-using-D313.gif with a 2.2K resistor and 2N2222A transistor based on this pinouts http://www.galigear.com.au/image/cache/data/4e73_1-500x500.jpg
If I change the resistor to 5k the relay never switches on and if I put the 2.2, it stays on even if the red led of the module is off.
Thanks a lot. So according to this am connecting the emitter in place of the collector and vice versa, right ?. I don't have the data sheet for this transistor but I guess I will use the standard values for that model, which formula should I use to calculate the resistor ?. The load in this case is the relay, am I correct ?, the data sheet (in my previous post) shows nothing of the current.
I will rewire in the morning since it is getting late here and report back
http://www.fairchildsemi.com/ds/PN/PN2222.pdf
Unfortunately I broke my transistor as I was unsoldering and I don't have one and no stores nearby to buy. I used BC550 instead and based on this datasheet (http://www.futurlec.com/Transistors/BC550.shtml) but it didn't work and the same thing occurred with the relay latching and never releases even when the LED indicator of the PIR goes down.