Arduino Uno with a Pot to control voltage

You need analogWrite

Nope. The output is either 0 volts or 5 volts. There is nothing in between.

yes Exactly !

In which case, you are going to have to provide a description of the hardware.