Advice on translation for Servo motor control
I'm working on a project involving a 5V servo motor with a 3V3 MCU, and I wanted to get some advice on how best to translate the PWM output from the 3V3 MCU to the 5V servo motor. I made the mistake of initially just using a MOSFET that was controlled by the PWM signal, and while the code seems to work, the signal obviously is all wonky.
Right now, the main option I'm considering is a level shifter like an NVT2010,118 (probably something with fewer channels), since I need to level shift some I2C lines anyway, but I wanted to get a second or third opinion on that, and maybe other options I could consider
edit: it occurs to me I should have asked this elsewhere. Apologies for the mistake