Problem getting the correct speed on my NEMA17+A4489+potentiometer project

They are part of the problem