I am currently reverse engineering a circuit which requires controlling of a magnetic field. For that, the circuit has a pair of D882 and B772 each. The PCB traces suggest that the transistors are arranged as shown in the picture below: This arrangement does not make any sense at all for me. Wouldn't applying a voltage to any of the control signals result in current through both transistors rather than through the coils?
That is called an "H-Bridge."
It is often used to drive motors forwards as well as backwards.
In your case, it allows you to generate a magnetic field whose polarity and intensity you can vary using "control signal 1" and "control signal 2."
When both are high (or both are low,) no current flows through the coil.
If one is high and the other is low, then current will flow in a particular direction.
If you swap the high and lows, it will flow in the opposite direction.
Now, if you hold one steady and pulse the other you will get a pulsed current through the coil. It will be smoothed (somewhat) by the coil to a steady magnetic field whose strength is propotional to the duty cycle of the pulses.
Switching the polarity of the current also changes the polarity of the magnetic field.
That is very much a simplified description, but I think it contains enough key words that you should be able to locate more details on your own.
It is a common circuit with many uses - and plenty of tricks and traps that go into making, using, and controlling it.
A bit more on how it operates:
The key to the whole thing is how pnp and npn transistors function.
When the voltage on the base of an npn transistor is more than 0.7 volts above the voltage on the emitter, then current will flow through the collector to the emitter.
When the voltage on the base of a pnp transistor is more than 0.7 volts below the voltage on the collector, then current will flow through the collector to the emitter.
So, looking at the H-bridge, putting a high signal on one of the control signals will turn off the pnp and turn on the npn - that side of the bridge is connected to the positive supply voltage.
Now, if you put a low signal on the other control line the npn transistor will turn off and the pnp will turn on. That side of the bridge is connected to the ground.
Current can now flow from V+ on one side of the bridge, through the coils, to ground on the other side of the bridge.
So, which control signal is high and which is low dictates the direction of the current flow through the load in the middle of the bridge.
You also asked it is possible for both transistors on one side to turn on and cause a short circuit.
It can happen, and is called shoot through. Part of the design and operation of an H-bridge goes into making sure that it doesn't happen.
In the design you've posted, I don't think it can happen.
It looks to me like the transistors on each side can never be on at the same time. But, I'm not an engineer and may well have overseen something (though Tony is an engineer and doesn't think it can happen with this circuit.)
The Vbe has a dead-zone for drive levels of < |+/-0.7V| however, back EMF during the time of load L/R=T(63%V) will occur where R is the DC resistance of coils.(DCR)
beware of the need to clamp inductive spikes to opposite rail with zener+diode pairs across motor or reverse Vce diodes across each transistor. In more advanced designs they use active clamps. Beware of reactive energy and current loop area in the layout. Keep it tight pairs from driver, power, ground to L to minimize CM noise.
However when commutating left right for forward and reverse. You must stop by having both top or bottom drivers high ( or low) to shunt the L/R =T time constant with another brake dead-time before direction reversal. This is done by your smart controller using Sig1=Sig2 = either 0 or 1. If this is not a motor, disregard.
When regulating current if the left side is high, right side is used for PWM average voltage to control surge current or velocity at steady state. THen when reversing load polarity, the opposite is done. Right side high and left side with ramped PWM towards full Vavg in the opposite polarity. If this is a motor, then the same is true for deaccelerating. Often a current shunt is used for current sensing, where the load inertia affects current during g time duration.
Also keep in mind these simple transistor switches have an hFE of about 10~5% of max hFE during saturation so input current and heat dissipation ought to be computed. while control signal ought to be above +12V or additional drop occurs due to Vbe. This is why MOSFETs are preferred but have shoot thru issues just like if these were open-collectors instead of emitter followers. THen the 2 inputs must be separated to 4 inputs with controlled dead-time.
This is the simplest bridge driver, but compromises Vdrop on each switch but ok for small bridges at 12V. Even though it may work at 5V, not recommended for poor efficiency.
Is a PWM signal on control or an analog design from OPAmp? This circuit resemble an analog Bridge class B Booster. An equivalent complementary H PWM generally need each transistor to be driven separately and to saturation, this one is forever in linear zone, VCE never can reach saturation. On PWM H bridges Common Emitter is preferred to common collector; it is more simple to saturate each bridge transistor without additional supply voltages. Common Collector has disadvantage of propagating BEMF to BASE driving, this can destroy driver.
Some of the previous answers make correct statements, but no single answer satisfactorily answers the question.
@JRE is correct that we call this circuit topology an H-bridge, that it is commonly used to control motors, and how you would set the control lines to operate a motor.
@TonyEErocketscientist is correct that you need something to dissipate the current when the inductive load is turned off. His suggestion of back-to-back zener diodes, in parallel with the load, is the best solution. If the current is small, you could also get away with a non-polarized capacitor.
In a comment, @immibis correctly states that each individual transistor is connected in an emitter follower. In other words, the output is connected to the emitter of the transistor, rather than the collector. The output follows the voltage of the input, within a diode voltage drop.
The transistors in emitter followers DO stay on, except when the input voltage is close to the supply rails. Because of this, emitter followers are notorious for wasting power and needing heat sinks. The heart of a linear voltage regulator is an emitter follower, and these regulators are notorious for being inefficient and requiring heat sinks. Emitter-coupled logic (such as was used in Cray supercomputers) uses emitter followers to switch digital signals. Heat production in the Cray was so bad that the refrigeration unit was larger than the electronics! And the third example of emitter followers is a...
Class B amplifier, which @RRomano010 points out. They are made by two emitter followers, with an NPN transistor pulling to the high rail and a PNP transistor pulling to the low rail. That's what we have here. They are commonly used as the output stage of audio amplifiers to drive loudspeakers, are inefficient, and require ample heat sinking.
If you absolutely must drive your inductive load with an analog signal (i.e. PWM is not acceptable), then the circuit presented in the question
is a okay design will barely work (although I would add @TonyEErocketscientist's protection diodes). You will get some crossover distortion because of the diode voltage offsets; these can be compensated the same way it's done in a class AB amplifier.
If you are driving your load on/off or with PWM, then it is an inefficient design. The usual way to make an H bridge is with PNP transistors pulling to the high rail and NPN transistors pulling to the low rail. In other words, swap the NPN transistors in this circuit with PNP, and vice versa. However, you will then need resistors on each transistor base. Perhaps the designer of this circuit was trying to avoid the extra components -- that would also explain the lack of protection diodes. Make sure you put those protection diodes in, too.
Or you could just use an H bridge chip, where someone else has taken care of these problems for you.