Hi,
I am using an Arduino Uno with a custom PCB shield that uses a zero cross-detection circuit as well as triacs and opto-isolaters to control two resistive loads using PWM.
I am using the library found here: Arduino Playground - ACPWM
I have the code working great to control one of the triac circuits.
Is there a simple way to use the library to control both triac circuits independently?
For example can I do something like take:
ACpwm.initialize(50,ZERO_PIN,CHANGE,PWM_PIN,255);
and add:
ACpwm.initialize2(50,ZERO_PIN,CHANGE,PWM_PIN,255);
throughout the code?
Your help is greatly appreciated. Please let me know if I can provide any further information.
Thank you,
Danny