How to make software voltage divider?

Thanks for your reply groundFungus,

I want arduino only controll the amount of voltage in the output of the voltage divider , but the power supply that is connected to a motor driver, is isolated of the arduino circuit. Each circuit has his own power supply.