On AliExpress, banggood etc you can buy a pwm to 0-10v converter, so you can make this voltage with a pwm signal