I have a 12V siren (speaker that includes a driver) that has two positive leads, one for steady sound and one for a yelp sound. There is also a shared negative lead.

I want to control both sounds from two Arduino output pins. I currently have this schematic but I'm not sure how to hook up the other positive lead.

My circuit


1 Answer 1


Instead of switching the common ground, you want to switch each of the positive connections independently and keep the common ground tied to ground. Something like this:

The SIREN and YELP lines are intended to be driven by 0-5 V digital outputs. This will put very little (well under a mA) load on the digital lines. When YELP is driven to 5 V, it will cause Q3 to turn on as a 10 mA current sink. This becomes the base current of Q1, which can then acts as a high side switch that can support up to 10 mA times its gain. Figure you can count on Q1 and Q2 having a gain of at least 50, so they can switch up to 500 mA as this circuit is drawn. This is all you need if the yelp and siren inputs to the sound unit draw 500 mA or less at 12 V.

  • 1
    \$\begingroup\$ Ok I am starting to understand this a little more now. I don't think I had PNP's figured out before. Now that I have this running in a circuit simulator I can see that everything flows backwards in a PNP transistor. E->B and E->C instead of B->E and E->C in a NPN transistor. One question I have is why there is no resistor before Q3 and Q4 base like in other NPN circuits. I guess R1 and R2 resist current for Q3 and Q4 base to emitter line and for Q1 and Q2 emitter to base line. Also, I guess normal PN2222A and PN2907's should work instead of the transistors you mentioned? \$\endgroup\$
    – darkadept
    Apr 1, 2012 at 23:48
  • \$\begingroup\$ @Olin What CAD do you use for these schematics? They look really nice \$\endgroup\$
    – m.Alin
    Apr 2, 2012 at 6:30
  • \$\begingroup\$ What is the reason you didn't put series base resistors to Q3 and Q4, is it because of the emitter resistors? If there are any drawbacks not using series resistors, what are they? \$\endgroup\$ Apr 2, 2012 at 11:42
  • 2
    \$\begingroup\$ @darkadept: Argh! I was almost done adding several points to the answer to address all the question. Then I hit some keys and everything got poofed away. Yes, it's Eagle, FILE > EXPORT > IMAGE monochrome at 600 DPI, then shrunk 5x each dimension into a gray scale GIF file. Analyze the currents and you will see everything is nicely controlled without the need for base resistors. Don't get hung up on rules of thumb or what other people have done. Think about the circuit yourself. There are usually several ways to achieve something. \$\endgroup\$ Apr 2, 2012 at 13:51
  • 1
    \$\begingroup\$ @abdullah: Failure by definition is out of spec, so there is no way to know how exactly a transistor will fail. Sometimes they fail open, sometimes they can fail shorted. If Q3 B-E shorted and C open, it would put a high load on the YELP digital line, but never turn on Q1. \$\endgroup\$ Apr 2, 2012 at 19:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.