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

VegasWinner

Well-Known Member
Figure 1


How to Use the ULN2003A Darlington transistor Array with Examples

by Lewis Loflin


Here we will explore using the versatile ULN2003A Darlington Transistor array with a typical micro-controller such as Arduino.

The ULN2003A is a high-voltage, high-current Darlington transistor array consisting of seven NPN Darlington pairs that feature high-voltage outputs with common-cathode clamp diodes for switching inductive loads.

The collector-current rating of a single Darlington pair is 500 mA.

The Darlington pairs can be paralleled for higher current capability. Applications include relay drivers, hammer drivers, lamp drivers, display drivers (LED and gas discharge), line drivers, and logic buffers.

upload_2017-6-17_10-22-5.png
Figure 2


Internal diagram of the UNL2003A showing the open-collector Darlington configuration. The ULN2003A has a 2.7K ohm series base resistor for each Darlington pair for operation directly with TTL or 5-V CMOS devices.


upload_2017-6-17_10-22-23.png
Figure 3. ULN2003A Darlington Transistor array internal block diagram.



Figure 4. ULN2003A driving a unipolar stepper motor controlled by a PC printer port.


upload_2017-6-17_10-22-34.png
Figure 5. ULN2003A driving 7 24-volt light bulbs.


upload_2017-6-17_10-22-46.png
Figure 6. LN2003A driving 4 24-volt relays to control 4 120VAC lamps.


upload_2017-6-17_10-22-56.png


Figure 7. ULN2003A with parallel inputs-outputs driving 2 1-Amp motors.


This is the circuit used in the StormX Controller. Both of these are simple solutions to 5v PWM to 0-10v dimming both well tested and work.
namaste
 

VegasWinner

Well-Known Member
LM358 is a general purpose opamp, did you use it in comparator mode or what exactly is so great about a controller mentioning some opamp?

I'm confused, pretty sure I've corrected schematics just passing through, and we're talking simple bjt errors.

For PWM, my god, I suggested months ago to grab a simple µC and write some asm, and I was flamed for that.

Meanwhile I have a handful of lines of asm code and a $3 PIC that will give me 0-100% duty cycle at a frequency I chose.... and I can count the clock cycles, can you do that on arduino? Not bashing arduino, only pointing out that if you were such a great coder you would have had this done a long time ago in C, let alone trying to do it efficiently (mundane task) in asm/
The LM358 circuit I use has a 10uF capacitor with two resistors 2.2K to create the 0-10v range
upload_2017-6-17_10-31-1.png
Where Vout = Vin * (1 + [R2/R1])
if both resistors are equal you will get a 0-10v output with a 12v power supply.
namaste
 

VegasWinner

Well-Known Member
I heard great things about you from real Styles I would like to speak to you about dimming a meanwell driver without a potentiometer and if it's possible to use a step down in between the potentiometer and the driver I would like to speak to you. Vaper410 (at) gmail
pm me and I will help you out.
namaste
 

VegasWinner

Well-Known Member
hlg 320s and 480s dim to zero
Yes they do, and I have client that uses those and he loves the way I can dim his leds. I use 0-255 pwm for smoother dimming of leds now. No more 0-100 like other companies. I also think 4096 steps is too many.
namaste
 

VegasWinner

Well-Known Member
I win because I prototype just for fun. Not for the fame or the money.
I always win because I do what I do DIY because that is what I want for me. if others want the same I help them do the same. Some want an end product some what to make their own like me. I help folks make their own, and I give them a case I made from my laser for free, because I like people to be happy. Never judge what you do not know. when I win everyone wins with me.
namaste
 

wietefras

Well-Known Member
A year later and finally he found some (still overly complex) solutions for converting from 5V PWM to 10V PWM. Wonders never cease.

Good to see that you finally (sort of) understand how it can be done :clap:
 

Gromax 3590B

Active Member
truth hurts. I know.
namaste
I am hurt so badly now. My tears fill the river "Maas". Will I ever get over this? And of course 4096 steps PWM is way too much. No one could handle 4096 steps. Oh, I dont feel hurt anymore. I already got over it. I do this for fun and now I do this to prove I build better than u. I like to provocate bigheads with big talk.

Namaste.
 

CannaBruh

Well-Known Member
ULN2003 for a current driver and the LM358 for non-inverting DC amplifier?

Vin* ((Rf/Rin)+1) for non-inverting

4096 is some 2.4mV per step? or I guess what is the reference voltage?
 

Gromax 3590B

Active Member
ULN2003 for a current driver and the LM358 for non-inverting DC amplifier?

Vin* ((Rf/Rin)+1) for non-inverting

4096 is some 2.4mV per step? or I guess what is the reference voltage?
Vegaswinner does it with 256 steps 8bit (not so very smooth). I do it with 4096 steps 12bit (very smooth). I dont use a lm358. There is no reverence voltage. I do not convert the 5V PWM signal to 0V-10V. No analog bullocks. I switch (connect/disconnect) the dim+ and the dim- wire of the driver with the PWM signal and a 2n3904 transistor. Be sure that the frequency of the PWM signal is at least 100Hz or higher if u switch the dim- and dim+ wires.
 
Last edited:

VegasWinner

Well-Known Member
I am hurt so badly now. My tears fill the river "Maas". Will I ever get over this? And of course 4096 steps PWM is way too much. No one could handle 4096 steps. Oh, I dont feel hurt anymore. I already got over it. I do this for fun and now I do this to prove I build better than u. I like to provocate bigheads with big talk.

Namaste.
So you have an ego namaste is meaningless to you. Sorry you lack understanding
You work at being better than others you will always lose. Work at competing with yourself not me or others you will be a lot happier. There is always someone smarter and you will meet them and your ago will deflate again. Sorry for your suffering every day trying to be as good as orhers you waste your life away. Perhaps you should stop posting and seek happiness
 

VegasWinner

Well-Known Member
Vegaswinner does it with 256 steps 8bit (not so very smooth). I do it with 4096 steps 12bit (very smooth). I dont use a lm358. There is no reverence voltage. I do not convert the 5V PWM signal to 0V-10V. No analog bullocks. I switch (connect/disconnect) the dim+ and the dim- wire of the driver with the PWM signal and a 2n3904 transistor. Be sure that the frequency of the PWM signal is at least 100Hz or higher if u switch the dim- and dim+ wires.
Start your own thread about what you do. Troll
 

VegasWinner

Well-Known Member
Vegaswinner does it with 256 steps 8bit (not so very smooth). I do it with 4096 steps 12bit (very smooth). I dont use a lm358. There is no reverence voltage. I do not convert the 5V PWM signal to 0V-10V. No analog bullocks. I switch (connect/disconnect) the dim+ and the dim- wire of the driver with the PWM signal and a 2n3904 transistor. Be sure that the frequency of the PWM signal is at least 100Hz or higher if u switch the dim- and dim+ wires.
Sorry greengeenes fan boy go start your own thread and move on be respectful if you know how to.
 

VegasWinner

Well-Known Member
ULN2003 for a current driver and the LM358 for non-inverting DC amplifier?

Vin* ((Rf/Rin)+1) for non-inverting

4096 is some 2.4mV per step? or I guess what is the reference voltage?
Ask coralux that is where you buy your controller trolling for greengenes fan club full of disrespect just like gg and gm glad you brought the hate for others to ser
namaste
Look up what it means RESPECT
 

VegasWinner

Well-Known Member
Okay??? I have to check what real styles is and I have to take a nap now first. I am from the netherlands and it is 1:05 pm here. Glad to talk to u later.
No you don't have to do anything you are not necessary what you lack you lack trolling for greengenes707 fan club showing how greengenes shows his respect to others or a lack of respect which you seem to know better
Disrespect hatred both the same thanks for the hatred greengenes707 keep showing your true hateful nature.
No fear
 

VegasWinner

Well-Known Member
First they ignore you, then they lie about you, then you win.
The truth must have struck deep to get so much attention over paid opinions on products.
I always buy products recommended by people paid to say good things about the products whether they ate true or not but that is one way to earn a paycheck not very moral but if you attack others that is called bullying and that is not very moral either.
Actions speak louder than words you can tell me you're a good person but your actions are just the opposite.
Inconsistent with word and action. That is called a liar.
namaste
 

VegasWinner

Well-Known Member
Vegaswinner does it with 256 steps 8bit (not so very smooth). I do it with 4096 steps 12bit (very smooth). I dont use a lm358. There is no reverence voltage. I do not convert the 5V PWM signal to 0V-10V. No analog bullocks. I switch (connect/disconnect) the dim+ and the dim- wire of the driver with the PWM signal and a 2n3904 transistor. Be sure that the frequency of the PWM signal is at least 100Hz or higher if u switch the dim- and dim+ wires.
That is an aquarium light controller for elg and ldd drivers but I am sure your fish love the light controller. To bad your controller works for only one light fixture at a cost of $250 for a single fixture controller versus a six or twelve fixture controller like I have. See how drinking koolaide costs you money and waste the money faster with only one on off time all that money for one light while I control an entire room with my controller you can't because they told you it was better. Lol.
 

Gromax 3590B

Active Member
I share my ideas and do not disrespect u. I have a healthy dosis of competition. U call me a hater an I call u a bighead. I know my designs are better than yours. No disrespect. I invite u to be me student. I will teach u like otters teached me. No need for frustration.

May the force be with u. Namaste.
 
Top