Just because nobody mentioned it.... 1117 is a jellybean component made by lots of companies, but it has a particularity as in SOME models oscillate and don't work right if the output capacitor ESR is not within some range, for example 0.2 ohm .. 1 ohm
So SOME models require an electrolytic capacitor or some other capacitor with enough ESR to be in that narrow range. Other models are "designed" to work with ceramic capacitors and don't require high ESR capacitors.
A good 10uF <25v rated electrolytic may have an ESR value higher than 1 ohm.
For example, Panasonic FC series peaks at 2 ohm esr for 10uF electrolytic capacitors :
https://industrial.panasonic.com/cdbs/www-data/pdf/RDF0000/ABA0000C1209.pdf10uF 25v rated has 2 ohm esr, but 10uF 50v rated is 1.3v
Rubyzon ZL is better at 0.96 ohm for the 35v rated version, 0.5 ohm for the 50v rated one :
https://www.rubycon.co.jp/wp-content/uploads/catalog-aluminum/ZL.pdfSo I'd say if you do have to use electrolytic capacitor, go up in capacitance a bit ... a 47uF 16-25v rated capacitor would have around 0.2...0.5 ohm esr
Alternatively just use a polymer / solid capacitor in series with a 0.2ohm resistor.
OR use a different linear regulator that you know for sure it doesn't have instability with capacitor choice.