I'm using an arduino to control 4 pieces of EL wire for a jacket. I have an inverter for AC power and using optoisolators and triacs to control when the lights turn on and off. Push buttons are meant to turn each light on or off. I prototyped this circuit using LEDs and the buttons worked fine. Now that I've switched to AC power control, the buttons seem to be staying on HIGH rather than switching to LOW when released. I've included an image of how my circuit is wired - note* optocouplers are actually optoisolators used to keep DC and AC currents separate.
Wire behaviors should be as follows:
Yellow - default HIGH
Left/Right Green - blink when button pressed, stay blinked until button pressed again
Red - set to HIGH when button is pressed - yellow sets to LOW
Right now they dance back and forth with all lights turning on and off.
Any ideas on why this is happening and how I can fix it?
Wire behaviors should be as follows:
Yellow - default HIGH
Left/Right Green - blink when button pressed, stay blinked until button pressed again
Red - set to HIGH when button is pressed - yellow sets to LOW
Right now they dance back and forth with all lights turning on and off.
Any ideas on why this is happening and how I can fix it?