I am using the raspberry pi to generate a PWM signal to feed the servo motor. The output voltage (Max) from a Rpi GPIO is 3.3V whereas I need it to be 5V for my specific application.
So I am thinking of using a Voltage amplifier, I have two choices:
1)A non-inverting amplifier like this:
Where Gain Av=Rf+R1/R1
2)A Transistor voltage amplifier something Like this:
Questions:
1)what would be the best choice?
2)considering the PWM frequency to be somewhere from 20-200KHz, Which one of those will provide the better output response?
Thankyou.