LM1085 can do 3A and it's super simple to use.
You can get the fixed 5v version for 2$, here's a link :
https://www.digikey.com/product-detail/en/texas-instruments/LM1085IT-5.0-NOPB/LM1085IT-5.0-NOPB-ND/363564Or you can get the adjustable version for which you can set the output voltage with 2 resistors (costs the same, 2$) :
https://www.digikey.com/product-detail/en/texas-instruments/LM1085IT-ADJ-NOPB/LM1085IT-ADJ-NOPB-ND/363565You'll need a heatsink for it, because the regulator will dissipate the difference between input voltage and output voltage as heat on the regulator.
So from the heatsinks section, these will do :
https://www.digikey.com/short/q3rmb10.4$ :
https://www.digikey.com/product-detail/en/assmann-wsw-components/V2006B/A10761-ND/34761550.85$:
https://www.digikey.com/product-detail/en/advanced-thermal-solutions-inc/ATS-PCB1049/ATS2091-ND/50304691.5$ :
https://www.digikey.com/product-detail/en/aavid-thermalloy/529802B02500G/HS350-ND/1216357All kinds of them in lots of sizes. Don't buy the smallest, look at the technical specs and buy something with a bit of surface.
You'll need a bridge rectifier to convert your AC voltage from the transformer to DC voltage. You could use 4 diodes to create one, but a bridge rectifier is sexy. You want 2A max, but the price difference between models is so cheap you may as well go with something bigger :
0.78$ 600v 6A :
https://www.digikey.com/product-detail/en/smc-diode-solutions/GBU606TB/1655-1852-ND/72448800.93$ 600v 10A :
https://www.digikey.com/product-detail/en/smc-diode-solutions/GBU1006TB/1655-1843-ND/7244871So the linear regulator needs around 1v above 5v to output up to 2A and around 1.5v above 5v to output 3A, so your linear regulator needs to "see" at least 6.5v DC
You'll convert the ac voltage from a transformer using a bridge rectifier which will give you a peak dc voltage of 1.414 x the AC voltage from the transformer, minus 2 times the voltage drop on one diode from your bridge rectifier - that's gonna be around 1v.
You're probably going to go for a 9v AC or 10v AC transformer, since these are super common and cheap, and that means your peak DC voltage will be 1.414 x 10v - 2 x 1v = ~ 12v DC
How big the transformer should be ... well, you can sort of estimate with the formula DC Current = 0.62 x AC Current
so for example, if you have a 25VA transformer, that means it can do 25VA / 10V ac = 2.5A ... and after rectification with a full bridge rectifier you'll have around 0.62 x 2.5A = 1.55A ... so you need a slightly bigger transformer.
The cheapest on Digikey is 13$ for a 10v AC 30VA transformer :
https://www.digikey.com/product-detail/en/triad-magnetics/F6-10/237-1699-ND/4878628This means your peak DC voltage will be around 12v DC ( 1.414 x 10v - 1.5v.. 2v )
So now you only need a big capacitor after the transformer, so that the minimum voltage the linear regulator sees is always above 6.5v .. but just be safe and go with 7v
You can estimate the capacitance with the formula :
C = Current / [ 2 x mains frequency x (peak dc voltage - minimum desired voltage) ]
So your current is 2A, you're in US so you're 60Hz mains frequency, your peak dc voltage is 12v and minimum desired voltage is 7v : C = 2 / [ 2 x 60 x (12-7) ] = 2/600 = 1/300 = 0.003333 Farads or 3333uF
So you could go with a 3300uF 25v capacitor but 4700uF would also work.
It doesn't have to be super expensive, doesn't have to be thousands of hours at 105c rated, here's some (3300uF to 4700uF 25-50v rated, sorted by price) :
https://www.digikey.com/short/q3rm2d You may want to add a 1uF 50v or higher voltage rating ceramic capacitor on the input of the linear regulator (as close as possible to the pins) as well as a regular electrolytic capacitor on the output of the linear regulator, let's say 47uF or 100uF 10v or higher voltage rating on the output (they're so small and barely any price difference you could go with 25v or 35v rated capacitors on the output)
Job done.
When you're done, you'll notice a lot of energy is wasted as heat on the linear regulator .. you have up to 12v in, only 5v out .. so your efficiency may be below 50%. Then you can go on your next project, replacing your linear regulator with a switching regulator. There's loads of them out there.