You can use the HPWM command to generate pwm at an outputpin.
The take a RC network to make a dc voltage from your pwm.
That dc voltage will go from 0 till 5 volts.
After that take an opamp like an LM324 (4 amp's in 1 ). Build this as a noninverting amplifier of 5 times.
Supply the opamp with a supplyvoltage of 30 volts.
Bookmarks