1
\$\begingroup\$

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.

\$\endgroup\$
  • \$\begingroup\$ One thing immediately visible is you left OE floating on the 245. This is an input that enables/disables the outputs. You should always tie an input high or low or it will assume the least desirable state (murphy's law). \$\endgroup\$ – AlmostDone Feb 9 '18 at 19:33
  • \$\begingroup\$ Regarding the strip staying on even when Q1 is disconnected, you need to put a resistor (10k should do) between the gate and source to make sure the gate voltage stays at 0 when nothing is connected \$\endgroup\$ – C_Elegans Feb 9 '18 at 19:36
  • \$\begingroup\$ C_Elegans, I'm not sure if I'm understanding you correctly. Should I place the resistor between the gate and source of Q1 or the source of U1? Because I tried adding one between Q1 and U1, but that did not had any effect at all. If I connect it to the source of Q1, will it still be able to dim? \$\endgroup\$ – Gino Feb 9 '18 at 19:50
  • \$\begingroup\$ Between Gate of Q1 and Source of Q1 (GND). Make it 10k and you'll still be able to dim \$\endgroup\$ – Tom L. Feb 9 '18 at 19:59
  • 1
    \$\begingroup\$ What does your scope say? \$\endgroup\$ – Trevor_G Feb 9 '18 at 20:01
2
\$\begingroup\$

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).

\$\endgroup\$
  • \$\begingroup\$ Sorry, this was a mistake in the drawing. OE is actually connected to GND. I will fix it right away \$\endgroup\$ – Gino Feb 9 '18 at 19:40
0
\$\begingroup\$

Your schematic does not show any decoupling capacitors on the ESP32 or the buffer IC. If these are not present, I suggest adding them. As a minimum, a100n capacitor for each device as close to their respective power pins as possible, plus a 10u-100u capacitor close to both for bulk decoupling.

The behavior you describe could be a result of spikes/noise on the power rails affecting the operation of either device.

\$\endgroup\$
  • \$\begingroup\$ Wouldn't a capacitor deform the PWM pulses? \$\endgroup\$ – Gino Feb 9 '18 at 20:28
  • \$\begingroup\$ The capacitors should be across the power supply, from 3v3 to GND and from 5v to GND. \$\endgroup\$ – jfowkes Feb 9 '18 at 20:29
  • \$\begingroup\$ I will need to try this monday, because I don't have any capacitors at home. \$\endgroup\$ – Gino Feb 9 '18 at 20:31
0
\$\begingroup\$

I feel so ashamed at the moment. Turned out that my FET was damaged and didn't function correctly. Swapping it with a new one solved my problem...

Anyway, thank you so much for your ideas and suggestions guys!

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.