High current digital potentiometer?

The IRF520 isn't a modern device, it has appauling specs and isn't even logic level.

Look for something that's logic level and has Rds(on) < 0.015 ohm.