PWM LED Driver DIY - looking for comments and criticism

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stj
    Great Sage 齊天大聖
    • Dec 2009
    • 30911
    • Albion

    #21
    Re: PWM LED Driver DIY - looking for comments and criticism

    if the mosfet is on the ground-side then the gate only needs to swing from ground to it's freshhold,
    if it's on the positive rail you will need to bias the gate with a pullup resistor to the positive voltage and hope it doesnt fuck the mcu.

    thats why most switching circuits switch the negative side

    Comment

    • lti
      Badcaps Legend
      • May 2011
      • 2544
      • United States

      #22
      Re: PWM LED Driver DIY - looking for comments and criticism

      Based on the schematic with the 555, I thought the negative end of the LED string was being switched already. If there was 3V dropped across the FET, I would think it's getting hot.

      You can get higher resolution PWM on Arduino pins 9 and 10, but the libraries are 8-bit only. The libraries also don't give you access to the clock divider to change the PWM frequency, although there aren't enough divider steps to be very useful.

      Comment

      • EasyGoing1
        Shock Therapist
        • Sep 2016
        • 977
        • USA

        #23
        Re: PWM LED Driver DIY - looking for comments and criticism

        Originally posted by lti
        Based on the schematic with the 555, I thought the negative end of the LED string was being switched already. If there was 3V dropped across the FET, I would think it's getting hot.
        Yeah, the arduino is connected just like in the 555 schematic I posted, only instead of an 8k resistor, I'm using a 200Ω resistor. And the MOSFET isn't getting hot at all ... it's not even getting warm.

        Originally posted by lti
        You can get higher resolution PWM on Arduino pins 9 and 10, but the libraries are 8-bit only. The libraries also don't give you access to the clock divider to change the PWM frequency, although there aren't enough divider steps to be very useful.
        Yeah the ADC resolution in these older Arduino chips are pretty much shit in my opinion. I won't waste a Teensy on this project but I have several Raspberry Pi Pico's that have much higher resolution that I won't mind burning on this project. I bought a few of them when they first came out at only $4 each.
        sigpic

        Comment

        • redwire
          Badcaps Legend
          • Dec 2010
          • 3900
          • Canada

          #24
          Re: PWM LED Driver DIY - looking for comments and criticism

          I have no troubles with Arduino Uno ADC, getting 10 bits resolution out of them. But some Arduino boards have no VREF filter or it's run with noisy power or missing 0.1uF input cap, switching the mux carelessly can also give you wandering readings. Firmware or hardware can be to blame.

          RPi Pico has a not so great A/D, in the errata some codes it freaks out:
          "The RP2040 ADC has a DNL that is mostly flat, and below 1 LSB. However at four values — 512, 1,536, 2,560, and 3,584 — the ADC's DNL error peaks above this value. The ENOB for the ADC has been reduced from 9-bits (simulated) to 8.7-bits (measured), see Section 4.9.3. The DNL errors will somewhat limit the performance of the ADC dependent on use case."
          from: https://forums.raspberrypi.com/viewtopic.php?t=301620

          If your DC power is sagging, you can use a second A/D channel to read the 19V and correct brightness a little bit by adding a multiplier factor to the PWM.

          Comment

          • stj
            Great Sage 齊天大聖
            • Dec 2009
            • 30911
            • Albion

            #25
            Re: PWM LED Driver DIY - looking for comments and criticism

            remember the pico is a 3.3v only device
            choose the fet carefully

            bluepill is better than pico for i/o
            Last edited by stj; 07-23-2022, 02:51 PM.

            Comment

            • stj
              Great Sage 齊天大聖
              • Dec 2009
              • 30911
              • Albion

              #26
              Re: PWM LED Driver DIY - looking for comments and criticism

              watch this:
              https://www.youtube.com/watch?v=Kvl-mR5gldw

              Comment

              • lti
                Badcaps Legend
                • May 2011
                • 2544
                • United States

                #27
                Re: PWM LED Driver DIY - looking for comments and criticism

                Originally posted by EasyGoing1
                Yeah the ADC resolution in these older Arduino chips are pretty much shit in my opinion.
                What I meant was that you could set the PWM resolution to match (or even exceed) the ADC resolution. I actually feel like using a microcontroller just to dim LEDs based on an analog input is kind of a waste, but it's an easy way to get all the way down to 0% duty cycle.

                Is your power supply still holding 19V? It seems weird that there would be 3V dropped across the FET at this current level and it's still at room temperature.

                Also, what is the cap on the LED board for? For PWM dimming, I don't think you would want a cap across the LED string.
                Last edited by lti; 07-23-2022, 06:21 PM.

                Comment

                Related Topics

                Collapse

                • Daveleone
                  UN55D6900 BN44-00428B partial led driver circuit failure
                  by Daveleone
                  Hello TV experts! I have a UN55D6900. The successfully TV turns on, and the backlights light up, and I get a picture, but there is a section that is dim. I took it apart and 1 out of 4 segments of backlight LEDs are not lighting on both sides of the TV (in other words, the same segment is out on both LED strips).

                  I tested the LED strips with my LED tester and all of the LEDs light properly, so I believe the problem is with the PSU/LED driver board (BN44-00428B). The voltages at CNM810 (between PSU and main board) look ok to me. The voltages at CNL801A and CNL801B look off for one...
                  07-23-2021, 06:31 PM
                • osrex
                  LED DRIVER KEEPS DYING
                  by osrex
                  Hello, this is my first post and im just a beginner, so be easy on me guy. thanks



                  i have a LED chandeilier that switches colors from white to cool white to warm when toggling the switch, it has 24 LED arms, each arm is 30 CM length.



                  i have no datasheet at all for the LED lights, all i have is its length.



                  long story short, testing the chandelier on the ground, and it works fine for 1 - 2 - 6 hours, no problem.



                  as soon as i fix the chandelier to the ceiling and bury the driver inside the hub,...
                  05-05-2025, 03:36 PM
                • jinu_j
                  LED driver circuit. Burnt Resistors
                  by jinu_j
                  Hi Folks
                  This has to do with a LED light driver rated for Output - DC36-65V 300mA. This is used to drive a 15W LED panel light.

                  Now this does not work so opened up and found 2 resistors burnt to crisp. Sensing a learning moment, i looked around the circuit to figure out that it is built around the OB2538 chip. The circuit to a large extent follows the sample application circuit mentioned in the data sheet. I have traced the actual circuit and the same is also attached for reference.

                  But i have some queries on this circuit
                  1. The resistors that burnt to crisp...
                  08-26-2020, 01:24 AM
                • Astonished
                  Fixing the Charge Circuit of the Batteries of the DC Motor
                  by Astonished
                  Hi friends of electronics

                  What you see in the video and pictures attached is the circuit for charging the batteries of a DC motor.

                  The problem is that this circuit cannot charge the batteries (3 1800mAH NiMH batteries) any more. When the circuit was OK, its green LEDs lit up one at a time to show that the batteries have charged more. But now that the circuit is flawed, LEDs light up as you see in the video and at the same time successive beeps are heard.

                  Please help me fix this circuit.

                  (the datasheet of the IC: https://pdf.datasheet.live/28...
                  01-28-2025, 06:24 AM
                • charif
                  Audio Driver for Thomson P14C4BK128
                  by charif
                  Need Audio Driver for Thomson P14C4BK128 (Windows 10/11)

                  Hi everyone,

                  I'm looking for help finding the correct audio driver for my Thomson P14C4BK128 laptop.
                  The sound is not working properly, and I believe the audio driver is missing or not installed correctly.

                  Here are the details:
                  • Model: Thomson P14C4BK128
                  • Operating System: Windows 10 64-bit

                  If anyone has a working link to the driver or knows where I can download it, I'd really appreciate it.

                  Thanks in advance for your help!
                  04-30-2025, 05:41 PM
                • Loading...
                • No more items.
                Working...