RGBW LED Controller





  • Some comments:

    • You should include resistors (e.g. 100 ohm) between mc pin and transistor gate. Just to protect controller pin agains high current (when gate is charged).
    • PWM output is available only for some pins. "On most Arduino boards (those with the ATmega168 or ATmega328), this function works on pins 3, 5, 6, 9, 10, and 11."
      So I don't think you can use pin 4 for green.
    • Additionally - PWM on pins 5 and 6 is a little broken; arduino core libraries use the same timer for millis() and delay() functions. Refer to documentation:
      "This will be noticed mostly on low duty-cycle settings (e.g 0 - 10) and may result in a value of 0 not fully turning off the output on pins 5 and 6."
    • R2 is not necessary. Just enable internal pull-up in controller. The same for R1.
    • Your schematic is a little bit ugly 🙂 There are missing may dots on signal connections.
      The rest is quite fine. I also plan to build similar node.


  • I am confused as to why this board would be powered by both 12V and 230V. Seems a bit redundant. What use case am I missing?



  • @Maciej-Kulawik said:

    Some comments:

    • You should include resistors (e.g. 100 ohm) between mc pin and transistor gate. Just to protect controller pin agains high current (when gate is charged).
    • PWM output is available only for some pins. "On most Arduino boards (those with the ATmega168 or ATmega328), this function works on pins 3, 5, 6, 9, 10, and 11."
      So I don't think you can use pin 4 for green.
    • Additionally - PWM on pins 5 and 6 is a little broken; arduino core libraries use the same timer for millis() and delay() functions. Refer to documentation:
      "This will be noticed mostly on low duty-cycle settings (e.g 0 - 10) and may result in a value of 0 not fully turning off the output on pins 5 and 6."
    • R2 is not necessary. Just enable internal pull-up in controller. The same for R1.
    • Your schematic is a little bit ugly 🙂 There are missing may dots on signal connections.
      The rest is quite fine. I also plan to build similar node.

    It's the most beautiful schematic I've ever made. It's also the first one I've ever made 😄 Thanks for the feedback, really appreciate it. You're right about the PWM pins on the Arduino. My prototype seems to be working fine when connected to pin 4. I'll see what it does when the PCB's arrive.

    @Dwalt said:

    I am confused as to why this board would be powered by both 12V and 230V. Seems a bit redundant. What use case am I missing?

    You could run the board on 12V. This design just takes the GND of the LED power supply and feeds that through the MOSFET's for driving the LED's. With this you can use whatever power supply you need for the LED's and swap them if you upgrade from 12V to 24V for example. I take the 230V that goes in to the LED power supply and feed that in the board for powering the arduino, radio etc.



  • Ok, going to have to look at this one very carefully. Just bought a Hue lightstrip a week ago; this looks like more fun. 🙂

    @sebas , did you by chance do this in KiCad? If you did, do you have a part for the HLK-PM01?



  • @drock1985 said:

    Ok, going to have to look at this one very carefully. Just bought a Hue lightstrip a week ago; this looks like more fun. 🙂

    @sebas , did you by chance do this in KiCad? If you did, do you have a part for the HLK-PM01?

    The design is made in Eagle. Is it possible to import Eagle files in KiCad?



  • Hi @sebas

    I think so. I found this site here just haven't tried it yet.



  • Hello Sebastiaan...
    see you everywhere....:-)

    Is this controller perhaps working directly in Domoticz?
    http and idx....
    Great option..
    I going to buy your boards



  • This should work with Domoticz, it's what I intend to use with it. I've received the boards from China and I'm currently working on a version 2 of this board. There are some errors in the design of version 1 that I need to get out. New version will be up shortly.



Suggested Topics

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts