The LM317 has three pins, one input, one output and one voltage regulator. Input pin input positive voltage, output pin is connected to the load, voltage regulation pin One pin is connected to the resistance (about 200) in the output pin, the other is connected to the adjustable resistance (several K) to the ground, the input and output pins are connected to the filter capacitor to the ground.