Converting 3.3v signal to 24v

I am using a motor driver that requires a control input of 24V for HIGH and 0V for LOW. I want to control this motor driver using an ESP32, but the ESP32 output pins provide only 3.3V (HIGH).

How can I provide the required 24V HIGH signal from the ESP32 to the motor driver input? Do I need to use a optocoupler module, transistor, or any special circuit? Please guide me with the simplest best method.

Do you have a 24V supply available ?

yes i have 24v 20a smps
but i dont want to use relay
@UKHeliBob

Just about an NPN or N-MOSFET transistor will work. This circuit shifts levels and also inverts the signal, so when the Arduino output is HIGH, the 24V output is LOW.

i will definite try it out
@jremington

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