I Want to replace the buzzer with an 12vdc 300ma siren/strobe ( it is a lot louder ).
hopefully siren to be about 30-50 feet away.
The Arduino chip runs off 5V and you can't get more than 5 out of it. And, you can only get 40mA from an I/O pin.
[u]Here is an example[/u] of a transistor driving a solenoid. Assuming your load is non-inductive (not a motor or solenoid), you can leave out the diode.
So if I have this right?
What I need is a Diode 1N4004, and a solenoid L1 of some sort, a resistor or two, and a tip102 with heat sink?
And that should be capable of power either the 300mA or 400mA/ for the two separate circuits?
My mistake, I thought you could plug in a wallwart to the uno 9-12vjack?
Thank you in advance for the help.
Here is the drawing. I've made the notes for me as well as others.
Please feel free to offer any additional notes, tips, does and don'ts for this.
Drawing is wrong.
The negative of the siren/strobe goes to the collector , not to ground.
The transistor switches the negative lead of the siren to ground.
Emitter of the transistor connects to supply ground and Arduino ground.
The diode goes across the siren.
The diode kills the (potentially destructive) stored energy in the coil/siren when the transistor turns off.
Any GP diode will do, e.g. a 1N4004.
Look at this picture.
Imagine the coil is the siren.
Leo..
Thanks for responding
Glad I posted pic., just trying to get a handle on it.
Your clarifications make it easier to understand on this first one.
put new pic up.
Is there any reason why I can’t locate the siren,
a distance of approx. 35 feet away from the collector side of 1N4004, and the uno?
Is there distance limit?
Thanks for responding
Glad I posted pic., just trying to get a handle on it.
Despite what Wawa says that circuit is still wrong.
That weird looking line from the collector appears to go to the -ve of the 12V supply.
The solenoid goes between the collector and the +12V supply, the diode goes across the solenoid. The -ve of the 12V supply goes to the emitter of the transistor.
Is the PIR's Vcc 5V, what is this, an input or an output?
If you have a 12V source, the easiest way to control is with a transistor, like this.
The diode is needed to prevent the voice coil of the siren from destroying the transistor.
(When the transistor stops driving, the coil tries to keep current flowing briefly, which can create a big voltage spike that can damage the transistor. The diode lets the spike dissipate in the coil).
Thank you both for the additional info.
I think the diode, alarm, and tip102 are correct.
I hope this is better, still a bit uncertain on uno?
any changes I need? Top 12V to? Sorry!