Using the LM1117 is pretty much straight forward. If it a fixed voltage regulator just power the IC though the Vin pin and the regulated output can be obtained in the Vout pin. The Adj/Ground pin in this case acts only as a ground pin and is grounded. Also a capacitor can be added at the output side to filter out the noise. The circuit diagram for a fixed output regulator is show below

For an Adjustable type voltage regulator we need two external resistors to decide the output voltage of the Regulator. A reference circuit diagram is shown below, where the resistors R1 and R2 decides the output voltage of the regulator. The capacitor CAdj is an optional component which can be added to improve ripple rejection if required. The other two capacitors are to filter the input and output noise respectively.

The formulae to calculate the output voltage of the regulator is given below. Select the value of R1 and R2 based on the output voltage required for your project. Keep in mind that the value of R1 should be less than 1k. You can use a variable resistor at R2 if you want to vary the voltage in real time.
VOUT = 1.25 × (1 + (R2/R1))
With the ability to be used as a fixed voltage or a variable voltage regulator the LM1117 often finds its application in battery charging circuit and can also be designed to provide negative voltage if required. Refer the datasheet at the end of this page to find more application circuits for this IC.