So after watching the above video like 8 times I have a few ideas about how to control t247 fixtures with a raspberry pi.
1. The first problem is to get rid of the crappy OR timer so that reef-pi can control the on off times of both channels.
This could be done using 2 relays to turn on a connection between the on-off wire and the 12 volt wire coming straight from the driver and bypassing the built in timer board altogether. The relays would be declared in the reef-pi equipment tab and could be set up with timers.
By using relays set up to run off of the reef-pi timers, we could turn on both channels at different times. The fans would turn on when the blue channel powers up. I'm thinking 12volt relays so that they can use my existing power supply and the 12volt rail I already have built into my proto pi hat. The guy in the video said that the led drivers in the fixture default to 1% pwm on start up, so that should solve the problem of having them start at 10% and reef-pi can ramp them up from there. I will do some testing to confirm this.
Was looking at these relays.
https://www.amazon.com/SMAKN®-Chann...&qid=1542925664&sr=8-10&keywords=12v+dc+relay
2. There are 2 pwm gpio pins built into the rpi. GPIO 18 and 19. I'm thinking that we can use these 2 pins and declare rpi to run the pwm at 3.3volts instead of a PCA9685 breakout board, since we only have 2 channels to worry about in the OR T247. I believe we can use the reef-pi lighting tab to get the desired ramp up and down from 1% to 100% I'm not sure about the programing end of things but maybe we can get
@Ranjib to chime in and help us out with that.
4. A DB9 cable would let us run the relays, the grounds and the pwm signal from the rpi to the light fixture.
Here's what I'm thinking of for a circuit to connect the relays and the lights to the pi hat.
Any thoughts or problems anyone sees?
This is just my initial thought process on integrating the lights with a reef-pi. I think it could work.
In the diagram I tried to stick with the same color scheme that Ocean Revive used in their wiring. That's why the ground is red and black is the pwm. I believe that the same wiring set up would work for later models of the 247 with different wire colors (the difference being the on on/off wire and 12v dc wire are different colors).
I hope the diagram makes sense it was just a quick throw together using paint.