Vatendra
Newbie level 3

I have made the following circuit to control my water pump with Arduino(UNO R3). I have tried many resistors (calculated myself) to limit current in the optocoupler and triac, but failed to carry the load for a long time. At one time either resistor get burned or triac gets too hot. Kindly suggest what resistance I should use in the resistors with '?'. Any other suggestions are also welcome.

MOC 3021 datasheet - https://www.alldatasheet.com/datasheet-pdf/pdf/53870/FAIRCHILD/MOC3021.html
BT136 datasheet - https://www.alldatasheet.com/datasheet-pdf/pdf/16751/PHILIPS/BT136.html

MOC 3021 datasheet - https://www.alldatasheet.com/datasheet-pdf/pdf/53870/FAIRCHILD/MOC3021.html
BT136 datasheet - https://www.alldatasheet.com/datasheet-pdf/pdf/16751/PHILIPS/BT136.html