The LM317 variable regulator that can be used for both Voltage regulation between 1.25 volts and 37 volts but also as a current regulator up to 1,5 Amps.
The LM317 device is an adjustable three-terminal positive-voltage regulator capable of supplying more than 1.5 A over an output-voltage range of 1.25 V to 37 V. It requires only two external resistors to set the output voltage. The device features a typical line regulation of 0.01% and typical load regulation of 0.1%.
LM317 pinout : PIN 1 = ADJ , PIN 2 = OUT ,PIN 3 = IN