control external relay with PWM expansion.
Posted: Thu Oct 23, 2014 8:10 pm
I just DIY another automatic zeovit reactor with Pump. as zeo system request, pump should be running as 3hours on/off schedule. unfortunately i dont have spare relay port.
since i got a PWM expansion with 4 ports free. is it possible to trigger a external relay by dimming expansion port.
i'd rather to use dosing pump library. It will be much easier to adjust interval timing.
i suppose code should be like this.
or
since i got a PWM expansion with 4 ports free. is it possible to trigger a external relay by dimming expansion port.
i'd rather to use dosing pump library. It will be much easier to adjust interval timing.
i suppose code should be like this.
Code: Select all
ReefAngel.DosingPumpRepeat1(ReefAngel.PWM.SetChannel(2,100))
Code: Select all
ReefAngel.DosingPumpRepeat1(Pinmode(PWMports[2],output));