syee10 said:
The LED's we using is 5mm superbright daylight colour. The specification can be found at http://www.ledshoppe.com/Product/led/LE1002.htm
I didn't see anywhere where you said how many LEDs you have in each string. It makes a difference.
Other than that, there is a better way to drive leds off the AC lines. An associate and I came up with an eligant and energy efficient solution, with little power dumping, except at start-up time. There are no very lossive resistive elements required. It involves a capacitor and a bridge rectifier and a soft-start thermistor and the diode string. I don't know if it's patent protected. Does it matter?
Connect one of the AC lines to a negative coefficient thermistor, then to a capacitor. This is a high voltage capacitor. Connect the capacitor and the other AC line to a bridge rectifier. Connect the DC outputs of the bridge to your LED string. The arrangement constitutes a somewhat-constant current source, which is what your want. Size the capacitor to develop the current given in the LED specs (<30 ma rms) for nominal line voltage. The capacitor needs to be nonpolar. The current developed through the string is dependent upon the AC line voltage and the capacitor tolerance, with lesser dependence upon the voltage drop across the LEDs when the LED string voltage is, say, <1/3rd of 340 volts, in your case. But if you have a lot of LEDs like 60 or 70, it will still work OK.
You could model it in spice if it helps.
The thermistor is required to prevent surge currents from blowing out the string. Otherwise the full rectified line voltage of 340V could appear across the LED string at turn-on time. Size the thermistor so that it's cold resistance current doesn't exceed the 80 ma current rating of the LEDs.
However if your design requirments are to turn the LEDs on within a few seconds of turning them off this design solution will not work. The thermistor requires time to cool.