Is the 1.5V to 4V a variable amplitude PWM signal, or is it a PWM signal that switches between 1.5V to 4V (low = 1.5V, high = 4V)? Or something else entirely?
Is the 1.5V to 4V a variable amplitude PWM signal, or is it a PWM signal that switches between 1.5V to 4V (low = 1.5V, high = 4V)? Or something else entirely?
You could make a peak detector (opamp and diode) and follow it with a direct coupled amplifier with a gain of 4 [which is = 10/(4-1.5)] and add an offset of (left as an exercise).
The output of the second opamp would then be uses as the power supply for a CMOS buffer. The pulse into the buffer would have to come from some sort of level shifter. If the frequency is not too fast you can probably use a small MOSFET (2N7000) or bipolar (2N3904) with a grounded source/emitter and a pull-up resistor on the collector, which pulls up to the VDD of the buffer (output of second opamp).
There is no doubt a more elegant solution, but this can get you started.