control AC fan speed using TRIAC, optocopler and arduino