On/Off functin for meanwell HLG style drivers using dimming and arduino

wietefras

Well-Known Member
You also need to keep in mind the efficiency drop of a AC/DC(SE-450-36)->DC/DC(LDD-1000H) vs a HLG Driver. I ran into this on my EB Series build.

The SE-450-36 is 88% x LDD-1000H 97% (~85%) vs. a HLG Driver of ~94%. You do get the easily implemented PWM digital control (and some initial cost savings), but at a tradeoff for efficiency. Per growmau5 video you can wire up a 5v->10V booster for your PWM signal coming out of the Arduino for HLG B series.
Exactly. That's a lot of loss of efficiency and a big increased in needless clutter and cost. For what?

With HLG drivers you get easily implemented 5V PWM dimming control too. You really don't need to add the 10V yourself.
 

VegasWinner

Well-Known Member
Arduino is kind of a clumsy way to make use of ucontrollers. If you're learning coding in arduino you might want to go into learning some assembly or even higher level and finding a nice compiler?
I program in various languages. I teach coding over the years. i learned CP/M assembly and languages not even used any longer thanks for the advice. Actually arduino, nodemcu, lua, and other languages are all based on C. actually arduino does quite well and runs quite well too.
 

VegasWinner

Well-Known Member
You also need to keep in mind the efficiency drop of a AC/DC(SE-450-36)->DC/DC(LDD-1000H) vs a HLG Driver. I ran into this on my EB Series build.

The SE-450-36 is 88% x LDD-1000H 97% (~85%) vs. a HLG Driver of ~94%. You do get the easily implemented PWM digital control (and some initial cost savings), but at a tradeoff for efficiency. Per growmau5 video you can wire up a 5v->10V booster for your PWM signal coming out of the Arduino for HLG B series.
Is efficiency that important that you will spend three times as much to build a 400w light rig. right now a 450w light costs about $800. this design costs about $400. I could live with that efficiebncy for half the price. Savings over time adds up to counteract efficiency. For the cost of a 200w light you can build a 400w light. So @Growmau5 uses this technique for his new canopy 12UV light and it will sell, and you can dothe same just like he did. Onl;y he does not have a 8 channel controller that has 8 separate time control channels,
 

VegasWinner

Well-Known Member
With a HLG driver you need a PWM pin, a 2n3904 transistor and a base resistor for PWM dimming.
No you need a circuit with a 10v power supply we have been over this too many times, please read the thread before offering the not working versions. thanks for the advice, but I use a dimming circuit that works much better and reliable.
 

Gromax 3590B

Active Member
No you need a circuit with a 10v power supply we have been over this too many times, please read the thread before offering the not working versions. thanks for the advice, but I use a dimming circuit that works much better and reliable.
The HLG driver has 10volts over the dim lines. The 2n3904 transistor is a very quick switching transistor (good for PWM). It works. I tested it. I use it. My lights have a self build controller build in. The controller controls "lights on/off", "dimming of lights", "monitor temperature of cob", "rpm fans", "LCD display 20x4", "buttons". The controller talks to a self build webpage over WiFi. With that webpage it is possible to control as many lights as u want without cables. I build that controller myself with cheap components. The controllers parts costs about E25,00 20x4 lcd and buttons included.
 
Last edited:

VegasWinner

Well-Known Member
The HLG driver has 10volts over the dim lines. The 2n3904 transistor is a very quick switching transistor (good for PWM). It works. I tested it. I use it. My lights have a self build controller build in. The controller controls "lights on/off", "dimming of lights", "monitor temperature of cob", "rpm fans", "LCD display 20x4", "buttons". The controller talks to a self build webpage over WiFi. With that webpage it is possible to control as many lights as u want without cables. I build that controller myself with cheap components. The controllers parts costs about E25,00 20x4 lcd and buttons included.
there is a thread aboput various techniques. as in science there are many ways to achieve the same result.
 

VegasWinner

Well-Known Member
The HLG driver has 10volts over the dim lines. The 2n3904 transistor is a very quick switching transistor (good for PWM). It works. I tested it. I use it. My lights have a self build controller build in. The controller controls "lights on/off", "dimming of lights", "monitor temperature of cob", "rpm fans", "LCD display 20x4", "buttons". The controller talks to a self build webpage over WiFi. With that webpage it is possible to control as many lights as u want without cables. I build that controller myself with cheap components. The controllers parts costs about E25,00 20x4 lcd and buttons included.
you have a cloud based controller, I have a direct wired controller. I am sure you are happy with your controller.
 

wietefras

Well-Known Member
Is efficiency that important that you will spend three times as much to build a 400w light rig. right now a 450w light costs about $800. this design costs about $400.
This is also completely inaccurate. Two 200W HLG-H185-C drivers are $90 for 400W. That's less than $62+$40+$30=$132 for 450W.

Dropping the efficiency by over 12% also means that the 400W from 2 HLG-H185 sends the same amount of power to the COBs as that 450W 8 channel thingamabob. So you waste 50W and since each Watt costs me about a euro per year in electricity that's a waste of €50 per year as well.

It's really scary that someone who can only see that things work if he can copy an example from internet is pretending to be an Arduino/electronics guru. Worse yet, someone who actually is pushing to sell his hobby projects here on the forum constantly. Fake it till you make it?
 

CannaBruh

Well-Known Member
I program in various languages. I teach coding over the years. i learned CP/M assembly and languages not even used any longer thanks for the advice. Actually arduino, nodemcu, lua, and other languages are all based on C. actually arduino does quite well and runs quite well too.
I haven't found many industries implementing arduino for automation.. that's all I was getting at. If you really want to understand what is going on you have to understand assembly. No offense, have fun with these.
 

Gromax 3590B

Active Member
This thing is better as arduino and only $1,78. https://m.nl.aliexpress.com/item/32468324806.html

It has:

• 4MB flash memory
• 802.11 b / g / n
• Built Tensilica L106 ultra-low power 32-bit micro MCU, clocked at 80 MHz and supports 160 MHz, support for RTOS
• Built-in 10 bit precision ADC
• Built-in TCP / IP protocol stack
• Built TR switch, balun, LNA, power amplifier and matching network
• Built-in PLL, voltage regulator and power management components, 802.11b mode +20 dBm output power
• A-MPDU, A-MSDU aggregation and 0.4 s of
• WiFi @ 2.4 GHz, supports WPA / WPA2 security mode
• Supports remote upgrade and cloud AT OTA upgrade
• Support STA / AP / STA + AP mode
• Support Smart Config function (including Android and iOS devices)
• HSPI, UART, I2C, I2S, IR Remote Control, PWM, GPIO
• Deep sleep holding current 10 uA, shutdown current of less than 5 uA • Within 2 ms of wake-up, connect and transfer data packets
• Standby power consumption is less than 1.0 mW (DTIM3)
• Operating temperature range: -40 °C- 125 °C
• 11 GPIO pins

Throw in some other cheap components and program the ESP8266 as u like and voila.... The "grow even greener" is born.
 

VegasWinner

Well-Known Member
I am happy with my controller. It is not for sale and i don't give away how i made it. At least no expensive arduino or expensive PWM breakout boards used.
you might enjoy the conversation in the Grow room automation thread perhaps more of what you are doing, and you can ad to the mix
 

VegasWinner

Well-Known Member
I haven't found many industries implementing arduino for automation.. that's all I was getting at. If you really want to understand what is going on you have to understand assembly. No offense, have fun with these.
Interseting there is an entire line of PLC controllers with arduino's under the hood. Like I said we are looking at ESP8266, RPI3+, etc on the other thread.
 

VegasWinner

Well-Known Member
I haven't found many industries implementing arduino for automation.. that's all I was getting at. If you really want to understand what is going on you have to understand assembly. No offense, have fun with these.
I have 50 years experience, I appreciate your advice. I am not going to explain my background that is not unnecessary. Let's just say you are preaching at the wrong person, but you are more than welcome to tell me what to do, whether you know my background or not,
 

VegasWinner

Well-Known Member
I am happy with my controller. It is not for sale and i don't give away how i made it. At least no expensive arduino or expensive PWM breakout boards used.
Than why are you here. keeping everything secret is kinda selfish. I came here and i share my knowledge, I share my code, I shared a DIY 6 channel LED Cont roller with code, parts list and it works A group has experimented with various transistors and diodes for 10v dimming. There are just as many ways to achieve the same result and all are correct, none are wrong. Just choices folks make, your choice is good for you, but you do not share so it is ONLY good for you alone. You can judge me, that is fine, that does not change me, just you. There are a good group of folks that we share what we are doing in the automation process, not trying to get rich, just not trying to go broke proving anything to anyone.
 

Gromax 3590B

Active Member
Than why are you here. keeping everything secret is kinda selfish. I came here and i share my knowledge, I share my code, I shared a DIY 6 channel LED Cont roller with code, parts list and it works A group has experimented with various transistors and diodes for 10v dimming. There are just as many ways to achieve the same result and all are correct, none are wrong. Just choices folks make, your choice is good for you, but you do not share so it is ONLY good for you alone. You can judge me, that is fine, that does not change me, just you. There are a good group of folks that we share what we are doing in the automation process, not trying to get rich, just not trying to go broke proving anything to anyone.
I know that there are many ways to achieve things. The best ways are the ways that work and are simple and cheap. A transistor and base resistor is cheap and simple. Cheap is always a good thing and simple things don't tent to break quick.

I am not going to share because i write the libraries myself, choose the electronic components myself and still have to design a nice small PCB. I do this for fun and for good reference. Maybe i sell a complete lamp with this unique lamp controller and that is not selfish because u can buy it, reverse engineer it and learn from it.

P.S. A PWM dimmer is NOTHING SPECIAL. Maybe the hardest part is to integrate the PWM dimmer in a way that it benefits the entire application (modular array of led lights). I don't like PWM control wires all over the place in a grow room.

I may share thoughts but no complete guidelines to build a specific device.
 
Last edited:
Top