Many applications require current sources rather than voltage sources. When you need a high-current source, using a linear regulator are inadvisable, because of the high power dissipation in the Series Resistor. To solve the wasted-power problem, you can use a switch-mode regulator. The circuit of Figure 1 uses IC1, an LM2576 adjustable regulator. It needs only a few external elements and have an adjustable sensing input, which your use for controlling the output Curren T. resistor rsc is A current sensor. Ic2a, one-half of a TL082 op amp, operates as a difference amplifier. When R1=r2=r3=R4, the output voltage is proportional to the current flowing in Rsc. Good com Mon-mode rejection and a wide common-mode voltage range is important, because the amplifier works with large, changing co Mmon-mode signals.
the second half of the TL082 op amp, IC2B, operates as a noninverting amplifier. The required gain depends on the "output current" NEED:G=VREF/VSC, where G is gain, vref is the voltage on the Sen Sing input of the LM2576, and vsc is the voltage across RSC. Note that VSC=IOUTRSC, where iout is the output is current. For example, if iout=2a and rsc=0.12ω, then vsc=0.24v. Typically, for the LM2576, vref=1.237v. So, you can obtain the gain of the noninverting amplifier from the gain equation:g=5.15v/v. The overall gain of the noninverting amplifier is G=1+R7/R6. If r7=100 Kωand g=5.15, you can solve for r6 (24.1 KΩ). When you need a precise output current, you can replace the fixed resistor, r6,with a series connection of a fixed Resisto R and a potentiometer. Tests showed that, the output is practically constant with varying loads. For example, the 2A output is changed less than 1% for a output-voltage range of 0.3 to 15V.
Switching regulator Forms Constant-current Source