Drive voltage for model railways

Hello,

The need for a project, I would like to know how can vary with a nominal voltage control ( 20 V in my case) , the train will run on a closed circuit powered at 20 V and function potentiometer will ensure that the train takes a certain percentage of this voltage (0-100% ) and thus vary the speed of the train. For the moment I have not a lot tracks , thank you kindly help me.

I think what you need is a h-bridge motor driver (which can accept 20v) between your Arduino and the tracks. The 20v goes to the h-bridge and the Arduino controls the h-bridge using PWM signals produced by the Arduino analogWrite() function.

...R