Simple Logic Level Shifter

Hi all!

I am making a Arduino E-Scooter! The motor driver requires a PWM signal from 0 - 5V, but I am using an ESP-32, so it only has 0 - 3.3V. I made the circuit attached, and I am wondering if it is ok! Anything I should change? I know this is really simple lol, but I am looking for any tips.

Thanks in advance!
Schematic_DFRobot E-Scooter Speed Adj._2023-06-02

1 Like

That will work, but it inverts the PWM timing. The "ON" time on input becomes the "OFF" time on output.

Thanks @jremington!

Yeah, I know. Are the resistor values correct?

The resistor values will produce the desired output.

"Correct" depends on other factors, like the load impedance. For a digital input I would use 10K to 100K for the collector resistor.

2 Likes

@jremington ok, thanks!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.