Stuggling with the LDD Drivers
Re: Stuggling with the LDD Drivers
I already ordered two 1000ma Steve... Thanks for the offer. I ordered the PWM Expansion Module, because it appears that is the only way people are having success... I would though hope that Roberto will add the ability to modify the voltage out of the relay pack PWM outputs in the future.
Re: Stuggling with the LDD Drivers
No Problem. Good luck with them.
I have 4 that I need to get motivated to set up.
I have 4 that I need to get motivated to set up.
Re: Stuggling with the LDD Drivers
Roberto any thoughts on this code?newtoke wrote:Sigh... it didn't seem to work. I put those two lines you mentioned before the "interface" method. This is what I did:
I am ordering new drivers in case I fried them. Any other ideas? I'd really love to find a testing device that can generate a PWM signal and a device that can test a PWM signal, but I have yet to find any.Code: Select all
//ATO PWM output pinMode(lowATOPin, OUTPUT); pinMode(highATOPin, OUTPUT); analogWrite(lowATOPin, ReefAngel.PWM.GetActinicValue() * 2.55); analogWrite(highATOPin, ReefAngel.PWM.GetDaylightValue() * 2.55); // This should always be the last line ReefAngel.Portal(); ReefAngel.ShowInterface();
Re: Stuggling with the LDD Drivers
Doesn't work... Only thing that happens is that the lights go out. Hopefully the dimmer module I just purchased will solve this?
Stuggling with the LDD Drivers
The LDD drivers and the controlling device MUST share a common ground. You can't just send them a signal and have them work, they need to be properly hooked up electrically.newtoke wrote:Sigh... it didn't seem to work. ...
Re: Stuggling with the LDD Drivers
I know the ground from the RA ATO port was connected to the -Vout on the power supply. I was trying to use Roberto's suggestion of having using the ATO as a PWM 5vdc signal using the code shown in earlier in this thread, but the lights would just stay dark.
Re: Stuggling with the LDD Drivers
Do you get any voltage when you measure the ago ports?
Sent from my SM-G900P using Tapatalk
Sent from my SM-G900P using Tapatalk
Roberto.
Re: Stuggling with the LDD Drivers
I went ahead and purchased the Dimmer module. I opened it up and put in the 5 vdc jumpers. I wired ther LDD white wire to the dimmer and the negative or ground of the DImmer module to the negative VOut on the power supply and the lights don't turn on at all.
If I disconnect the white wire from the dimmer module then I get 100% full on from my lights
If I disconnect the white wire from the dimmer module then I get 100% full on from my lights
Re: Stuggling with the LDD Drivers
Did you change your code to use the dimming expansion module?
Can we see it?
Can we see it?
Roberto.
Re: Stuggling with the LDD Drivers
Code: Select all
ReefAngel.ActinicLights( Port5 );
ReefAngel.MoonLights( Port4 );
ReefAngel.PWM.DaylightPWMSlope();
ReefAngel.PWM.ActinicPWMSlope( 60 );
//Moon output
moonPWM = Moon.MoonPWM(0, 20);
if (moonPWM >= 1)
{
ReefAngel.Relay.On( Port3 );
}
else
{
ReefAngel.Relay.Off( Port3 );
}
//light temp
int lightTemp = ReefAngel.Params.Temp[T2_PROBE];
if(lightTemp > 1200) lightOverHeat = true;
if(lightTemp < 900)
{
lightOverHeat = false;
}
//fan control
if(lightTemp > 950)
{
//turn on fans when over 95 degrees
ReefAngel.Relay.On( Port8 );
}
else if(lightTemp <= (ReefAngel.Params.Temp[T1_PROBE] + 50))
{
//turn off fans when in five degrees of room temp;
ReefAngel.Relay.Off( Port8 );
}
//driver control
if (lightOverHeat)
{
ReefAngel.PWM.SetChannel(0, 0);
ReefAngel.PWM.SetChannel(1, 0);
ReefAngel.Relay.Off( Port5 );
}
else
{
ReefAngel.PWM.Channel0PWMSlope();
ReefAngel.PWM.Channel1PWMSlope(60);
ReefAngel.Relay.On( Port5 );
}
Re: Stuggling with the LDD Drivers
Oh and the code worked fine with my older meanwell drivers.
Re: Stuggling with the LDD Drivers
This code doesn't use the dimming expansion.
Try adding this to see if it works:
Try adding this to see if it works:
Code: Select all
ReefAngel.PWM.SetChannel(0,100);
ReefAngel.PWM.SetChannel(1,100);
ReefAngel.PWM.SetChannel(2,100);
ReefAngel.PWM.SetChannel(3,100);
ReefAngel.PWM.SetChannel(4,100);
ReefAngel.PWM.SetChannel(5,100);
Roberto.
Re: Stuggling with the LDD Drivers
Isn't this the dimming expansion code?
//driver control
if (lightOverHeat)
{
ReefAngel.PWM.SetChannel(0, 0);
ReefAngel.PWM.SetChannel(1, 0);
ReefAngel.Relay.Off( Port5 );
}
else
{
ReefAngel.PWM.Channel0PWMSlope();
ReefAngel.PWM.Channel1PWMSlope(60);
ReefAngel.Relay.On( Port5 );
}
//driver control
if (lightOverHeat)
{
ReefAngel.PWM.SetChannel(0, 0);
ReefAngel.PWM.SetChannel(1, 0);
ReefAngel.Relay.Off( Port5 );
}
else
{
ReefAngel.PWM.Channel0PWMSlope();
ReefAngel.PWM.Channel1PWMSlope(60);
ReefAngel.Relay.On( Port5 );
}
Re: Stuggling with the LDD Drivers
Oh.
My bad. I didn't scroll down the code.
I just looked the top part.
You are correct. They are for the dimming module.
What do you see in the screen for the channels 0 and 1?
Is it showing 0 or some other number?
My bad. I didn't scroll down the code.
I just looked the top part.
You are correct. They are for the dimming module.
What do you see in the screen for the channels 0 and 1?
Is it showing 0 or some other number?
Roberto.
Re: Stuggling with the LDD Drivers
Its 100 as it should be.
Re: Stuggling with the LDD Drivers
I'm thinking it is something in your wiring or your driver.
Can you post a sketch of how you connected stuff together?
Can you post a sketch of how you connected stuff together?
Roberto.
Re: Stuggling with the LDD Drivers
- Attachments
-
- wiring.png (9.89 KiB) Viewed 4978 times
Re: Stuggling with the LDD Drivers
If you disconnect the white ch0 wire, what voltage do you get on channel 0?
Roberto.
Re: Stuggling with the LDD Drivers
I will have to check when I get back into work on Tuesday.
Re: Stuggling with the LDD Drivers
I just checked it and I am getting zero volts out of each channel ( 0 - 5 ). To make sure my voltmeter was working, I then checked the ATO ports where I got 4.75 volts. So what am I doing wrong to only get zero volts?
Re: Stuggling with the LDD Drivers
Run the I2CScanner code and send the results:
http://forum.reefangel.com/viewtopic.php?p=18831#p18831
http://forum.reefangel.com/viewtopic.php?p=18831#p18831
Roberto.
Re: Stuggling with the LDD Drivers
I2CScanner ready!
starting scanning of I2C bus from 1 to 128...
addr: 1 addr: 2 addr: 3 addr: 4
addr: 5 addr: 6 addr: 7 addr: 8
addr: 9 addr: A addr: B addr: C
addr: D addr: E addr: F addr: 10
addr: 11 addr: 12 addr: 13 addr: 14
addr: 15 addr: 16 addr: 17 addr: 18
addr: 19 addr: 1A addr: 1B addr: 1C
addr: 1D addr: 1E addr: 1F addr: 20 found!
addr: 21 addr: 22 addr: 23 addr: 24
addr: 25 addr: 26 addr: 27 addr: 28
addr: 29 addr: 2A addr: 2B addr: 2C
addr: 2D addr: 2E addr: 2F addr: 30
addr: 31 addr: 32 addr: 33 addr: 34
addr: 35 addr: 36 addr: 37 addr: 38
addr: 39 addr: 3A addr: 3B addr: 3C
addr: 3D addr: 3E addr: 3F addr: 40
addr: 41 found! addr: 42 addr: 43 addr: 44
addr: 45 addr: 46 addr: 47 addr: 48
addr: 49 addr: 4A addr: 4B addr: 4C
addr: 4D found! addr: 4E addr: 4F addr: 50 found!
addr: 51 addr: 52 addr: 53 addr: 54 found!
addr: 55 addr: 56 addr: 57 addr: 58
addr: 59 addr: 5A addr: 5B addr: 5C
addr: 5D addr: 5E addr: 5F addr: 60
addr: 61 addr: 62 addr: 63 addr: 64
addr: 65 addr: 66 addr: 67 addr: 68 found!
addr: 69 addr: 6A addr: 6B addr: 6C
addr: 6D addr: 6E addr: 6F addr: 70 found!
addr: 71 addr: 72 addr: 73 addr: 74
addr: 75 addr: 76 addr: 77 addr: 78
addr: 79 addr: 7A addr: 7B addr: 7C
addr: 7D addr: 7E addr: 7F addr: 80 found!
done
starting scanning of I2C bus from 1 to 128...
addr: 1 addr: 2 addr: 3 addr: 4
addr: 5 addr: 6 addr: 7 addr: 8
addr: 9 addr: A addr: B addr: C
addr: D addr: E addr: F addr: 10
addr: 11 addr: 12 addr: 13 addr: 14
addr: 15 addr: 16 addr: 17 addr: 18
addr: 19 addr: 1A addr: 1B addr: 1C
addr: 1D addr: 1E addr: 1F addr: 20 found!
addr: 21 addr: 22 addr: 23 addr: 24
addr: 25 addr: 26 addr: 27 addr: 28
addr: 29 addr: 2A addr: 2B addr: 2C
addr: 2D addr: 2E addr: 2F addr: 30
addr: 31 addr: 32 addr: 33 addr: 34
addr: 35 addr: 36 addr: 37 addr: 38
addr: 39 addr: 3A addr: 3B addr: 3C
addr: 3D addr: 3E addr: 3F addr: 40
addr: 41 found! addr: 42 addr: 43 addr: 44
addr: 45 addr: 46 addr: 47 addr: 48
addr: 49 addr: 4A addr: 4B addr: 4C
addr: 4D found! addr: 4E addr: 4F addr: 50 found!
addr: 51 addr: 52 addr: 53 addr: 54 found!
addr: 55 addr: 56 addr: 57 addr: 58
addr: 59 addr: 5A addr: 5B addr: 5C
addr: 5D addr: 5E addr: 5F addr: 60
addr: 61 addr: 62 addr: 63 addr: 64
addr: 65 addr: 66 addr: 67 addr: 68 found!
addr: 69 addr: 6A addr: 6B addr: 6C
addr: 6D addr: 6E addr: 6F addr: 70 found!
addr: 71 addr: 72 addr: 73 addr: 74
addr: 75 addr: 76 addr: 77 addr: 78
addr: 79 addr: 7A addr: 7B addr: 7C
addr: 7D addr: 7E addr: 7F addr: 80 found!
done
Re: Stuggling with the LDD Drivers
Remove the jumper in the dimming expansion module that is all by itself.
Roberto.
Re: Stuggling with the LDD Drivers
That did it... What did the jumper do?
Re: Stuggling with the LDD Drivers
Changes the address from 0x40 to 0x41.
Technically you can have 2 of those modules, but only one is supported with the current libraries.
Technically you can have 2 of those modules, but only one is supported with the current libraries.
Roberto.