@Gökhan-Türkeli OK, I can put an example of my setup, if needed (when back at home). I used this calculator to calculate correct resistor values.
l317calc That link also shows the pins of 317. to vin you connect + from your power source and ground is common.
Actually here seems to be an example, which is almost like mine (I have omitted the capcitors on output, but it can be good to have there also):Example