Electronic – PWM Dimming 24v with 3.3v input

24vledpwm

I am trying to dim a 24v led-strip with a 3.3v PWM-signal coming out of a ESP32. Currently I have this circuit:

enter image description here

But there is one problem. It works for dimming till ~40%. But when I turn the PWM off, the LED-strip keeps on at the ~40% brightness. When removing the connection between U1 and Q1 the LED-strip stays on also (~40%).

U1 was necessary because otherwise the PWM signal at 1.0 duty-cycle wasn't enough to fully turn the LED-strip on. It barely turned on actually. (LED strip activates at around 18v)

I'm not the best engineer when it comes to circuits, so excuse me if I am making a dumb mistake.

I would like to hear your thoughts and suggestions.

Best Answer

The 74HCT595 has an enable input on pin 19. You need to connect this pin to GND in order to enable the outputs.

It look like you have left this pin floating (disconnected), meaning that as a TTL input it will float high and thus your outputs will be disabled.

You can either connect the pin directly to GND, or use a pull down resistor (10k would be a suitable value).