I am building 2 channel triac dimmer to control led strip lights in my pantry. Have 4 channel Krida module (just use two, I guess) and Uno. Have had some success with the triacDimmer library examples, but now realize I'm not sure of my basic approach.
I want to have two light circuits ramp up to a preset light level, then stay on until the power cuts out. My question is this: is it possible to power the Arduino Uno and the AC going into the triac module from the same switch? Will the microcontroller just "start over" every time the power comes on to it - and will the triac be in "off" status without power to its gate?
This is a matter of design, and I'm way out of my depths. I want to power this project, and write the sketch, so that the two circuits fade on to a pre-set level when the power comes on. Is it ok to plan to turn off the lights by just 'pulling the plug?'
Please let me know if this is still not an appropriate question for this forum. I appreciate any help or feedback. Thanks