0

I am currently trying to control a simple servo motor using PWM generated by a MCU with a 3.3V output voltage.

However, this servo works with 5V, so I need an IC capable of "converting a 3.3V PWM to 5V". My question is: What are the pros/cons of level shifting an ouput between the 3 methods:

  1. using a MOSFET
  2. using an optocoupler
  3. using a simple 4.7k pull-up to 5V with output of the MCU being open drain.

Many thanks,

Duarte

ocrdu
  • 9,195
  • 22
  • 32
  • 42
  • Do you mean FET as level shifting pass gate? 2) What kind of optocoupler, with what kind of output stage you mean? It would also depend on what kind of input signal the servo expects. Which servo is it?
  • – Justme Jan 12 '21 at 11:30
  • 2
    Some hobby servos will work reliably with a 3.3V PWM signal, even when fed with a 5V or higher power supply; I would check first if yours does. Also see https://electronics.stackexchange.com/questions/118390/drive-a-4-8v-servo-signal-line-using-3-3v – ocrdu Jan 12 '21 at 11:50