Mac restarts when potentiometer reaches MAX. External power 12V DC / 3000mA

Your pot should be across the 5V, not Vin.