If you supply 5V to AH1, the UB1 will output 0-5V.
There is a slight voltage drop though, so you need to provide slightly more than 5V to get a full 5V out.
You could also supply 10-12V to AH1, and adjust the PWM Max % to reduce the output to 5V, by setting it to roughly 50%.