3IN1 Dimming Part II :A more advanced approach

CanadianONE

Well-Known Member
And here's an example of a single-sided PCB (FR4 ) design for the circuit ...
View attachment 3319689
Always such clean work. Beautiful work once again. Possible to get the PCB designs files for this? I have been contemplating arduino PWM control on my next build cause I already have HLG-120H-C1400 with internal pot for this one. But I would love to be able to automate some dimming functions into next build. This first build was just to get my feet wet then we will complicate things more from there lol.
 

robincnn

Well-Known Member
I am looking at the inventronics driver 320 w constant current and its dimming looks different from meanwell. Looks like it can support 4 vero 29's at 2.1 amps
http://www.inventronics-co.com/upload/EUC-320SxxxDT(ST)_2014101405165109311.PDF

see "Implementation 2: External Resistor"
Looks like with potentiometer method it has non linear dimming unlike meanwell drivers.

Looks like we need 1K Ohm resistor and a 5k Ohm potetiometer.
In this case would a 'Logarithmic Taper' potetiometer be better instead of 'linear Taper' potetiometer.

upload_2015-11-20_17-58-45.png
 

tomate

Well-Known Member
Well ,I've plenty of Arduino Unos sitting around ...
And a handfull of these B/W "NoKia 5110 " lcd graphic displays ...
All ,I need is a small (silver painted ? ) case ,to put them inside ....

Added an LCD routine to the code ...
And testing it ,the past half hour or so ....
So far so good ...
It increases ~22mA the Io ,every 2.5 seconds .
Tried with an ordinary small led ...
Works like cream !

Now the case needs some modification ...
A BNC connector will be installed at the rear ..
(pwm signal input )

The light has already +12VDC output ,with enough available current to power the Arduino+display .
View attachment 3319890

And a small test group ,of my favourite White Russians ,to be tested and evaluated quality & quantity wise ,under the "AutoDia ver.1.0 " (that's how I've named it ) dimming automation system ...
In the very first days of their lives ..(from seed/regular )
View attachment 3319892

Cheers.
Hey SDS,
are you still around?

Do you have some results of the experiment with your WRs?
 

VegasWinner

Well-Known Member
All it takes is an Arduino Nano and few lines of code like this one :

// Auto COB LED pulsating Dimmer//
// Decreases gradually Io from 100% to ~30% over a period of ~30 min.
//Then,it increases again Io ,gradually from ~30% up to 100% ,over a period of 30 minutes.
//Set frequency = 1 KHz
// Inverted signal for use with optocoupling.0% duty cycle=100% power


//Libraries
#include <TimerOne.h>
//Set up
void setup()
{
Timer1.initialize(1000);
Timer1.setPeriod(1000);
Timer1.pwm(9,0);
}
//Loop
void loop()
//Increasing from ~30% to 100% (0)
for (int i=720 ; i>0 ; i-- )
{
Timer1.setPwmDuty(9,i);
//delay for 2.5sec (2.5 sec x 721 = 1802.5sec=~30 min)
// to increase from ~30% to 100% of Io max)

delay(2500);
}
//Decreasing from 100% to ~30% (720=1023*0.7)
for (int i =0; i<720; i++)
{
Timer1.setPwmDuty(9,i);
//delay for 2.5sec (2.5 sec x 721 = 1802.5sec=~30 min)
// to decrease from 100% to 30% of Io max)

delay(2500);
}
}

Something like a USB connector on the rear of the case...
Ground - / +12VDC from fan psu & pwm +/- to the optocoupler .and Arduino nano like a
" auto pwm pulsating " "usb stick " ...Turn rotary switch at position #12 and just plug the stick ..
Veros start automatically to dim down and up ...Hmmm ..I like that idea ...
And I need to test the whole concept of non-power stable plant illumination ....

Lots of work ..
Cheers.
Real nice clean too
 

VegasWinner

Well-Known Member
Now ....

finished and installed new power adjust interface ...
With an 4N33 optocoupler ...
View attachment 3320522

And also installed a RCA plug at rear of case ,for PWM input signal. (+5VDC )

View attachment 3320510

And completed the "AutoDia" device ,Arduino Uno based.
View attachment 3320511
With two parallel outputs ,able to drive two V series units.


AutoDia device :
View attachment 3320512

SET:
At the center ,a 10 turn ,low tolerance (high precision)smooth linear operation pot ,the one with the flat screw head and golden screw -on cover ,adjust the fall/rise (half period ) time .
From 1 minute to 720 min (12 hours) ,in 'steps' of 1 min .

So,at 24 h full light regime ,the device will be increasing power for 12 hours and will decrease power for the other 12 hours.

At top right is the Max Power adjust pot .Single turn ,many-many small 'clicks' ,
adjusts max power "peak" from 55% up to full 100% ,in steps of 1% .(linear)

Bottom Right is the Min Power adjust pot.same as before , single turn ,many 'clicks' pot ,
adjusting min power "valley" from 10% up to 54% ,in steps of 1% .(linear)

An example of " Day " operation is : At veg of 18 hours ,it can increase power from say 20% atr hour 00:00 up to 60% at hour 09:00 ("Noon" ) .
And then it will decrease it gradually and linearly back to 20% ,at hour 18:00 .

At flowering ,it can be set ,to increase power for 6 hours ,say from 40% up to 100% and then for the rest 6 hours ,
to decrese from 100% back to 40% ...

Not something fancy ..(geolocation,season,multi-channel;s,etc ..)
But it was quickly made and it will do it's job ,just fine ,I may suppose ..

View attachment 3320514

Golden 'screw-on cover'is the 'case' from a cheap old rca wire plug .
It serves to avoid accidently turn the rise/fall time pot ,as it is quite sensitive in changing minutes .
The other two are 'locking' into their setting (res value) in every 'click' ,as they rotate



Cheers.
:peace:
Real nice
 

VegasWinner

Well-Known Member
...typhon way use pwm... i keep thinking on my crazy resistive way with reles+resistors.... yeah its not linear smooth like pwm... but dimming without pulse its atractive to me... no flickering way... ...but maybe its only other crazy idea mine...

...substitute the dimmnig pwm function with a resistor+rele function ...or maybe with a digital potenciometer function.... and you can go with substitutions and test with a lot of reef controllers codes .. maybe only other crazy idea mine...

,,,and typhon way dont go for certain drivers...you need add hardware... and maybe little changes on code... with reles + resistors we go with on off function for drivers with suport resistive way...

...typhon page said...

NOTE: Not compatible with MeanWell LPF and HLG LED drivers. ... i think dont go on HLPs too...

...typhon is an arduino + lcd 16 x 2 with botons + rtc...

...but heyy thanks for the link i see one manual, code and libraries... some to looking or read tonight...;)

...off course its not lazy stoner way... its more crazy stoned way...

saludos
There is a public domain version of the growgreen controller with code and parts list arduino based free
 

salmonetin

Well-Known Member
...if not check DIY.... ...to share its better....

...SDS its a good example here... but beware ... its a rude greek...

...ese Griegoooo... jejeje ...

...i hope you are ok bro..

...same for all bros here.... sorry i dont have internet time actually... to expensive to me....

...prefiero unas cervecitas...

:peace:

Saludos
 
Last edited:
Top