Hello, Im trying to use software serial to connect my arduino uno r3 to my android phone through HC-05 and that is working perfectly, then im using both interrupt 0 on arduino uno and Timer 1 library to control an AC load like a bulb and that works perfectly BUT WITHOUT THE SOFTWARE SERIAL LIBRARY.
The problem is that Software serial library keeps turning the interrupts off and on repeatedly which appeared as the flicking of the bulb on the specified dimming levels except the highest dimming level which the full power is used= 120VAC of course. The question is: Is there any software library that doesn't rely on interrupts ? and after googling alot I found SimpleTimer library that may do the job right, it that true ? any suggestion?
Note: I chose my software serial pins accurately which doesn't conflict with my timer1 library .... I chose pins Rx=7,Tx=12. and output for ac triac driver is 4 so its not connected to timer 0. also I chose interrupt 0 on the uno which is on pin 2.