The once ubiquitous fluorescent light tubes are gradually being replaced by the LED light. The once popular compact fluorescent bulbs are already near extinct. Two of my 3' fluorescent tubes are not working right: they do not light up fully. They are the F30T12 rapid start type (30W, 1.5" diameter). The ballast is rated at 120V 0.65A and has eight wires: white and black for neural and live AC input, two tubes share one pair of yellow wires and one pair of red and blue go to the other end of the tubes with the so-call "tombstone" holders. While I'm not sure if the tubes are or the electronic ballast are bad (I do suspect the ballast since the tubes work sometimes), replacing with LED tubes is less expensive than getting new ballast or fluorescent tubes.
An 18W T8 (1" diameter) LED tube costs about $7 (at quantities of a pack of 4); it can be installed plug-and-play (Type A) or with the ballast removed (Type B). It is rated at 100-277V 0.18A. It claims 45W equivalent and 2520lm 6000K, which would imply 140lm/W, a little high (as a comparison, a Philips 18W puts out 2000lm 6500K). The tube is made of two rows of LEDs, total 120 individual LEDs (laid out on a PCB with groups of 5 in parallel). The back side is aluminum, where the LED PCB is mounted on, and the front is transparent plastic cover (not frosted). The two pins at each end are shorted. The tubes work when plugged into the existing fixture without modification, but I could notice some flickering and humming of the ballast. There was a slight delay for the LEDs to turn on when starting cold; once warmed up, it started instantly. When I measured the input current, I was surprised that it read 0.9A (that is over 100W), not only it exceeded the LEDs current by a lot (should be less than 0.4A) and but also more than the ballast rating. Also the ballast seemed to fail completely after a few times. I definitely need to try bypassing the ballast, which is straightforward. Each LED tube draws only 0.135A, 16W (measured by the multimeter and the power meter); it is much better without the ballast: instant start, no humming and lower power (reduction of more than 50% with at least similar brightness if not brighter).
The common electronic ballast circuit is a resonant half bridge with a capacitor bypass. Initially the current flows through this capacitor and heats up the filament; a higher strike voltage is generated to start arc discharge through the tube. Afterwards the current through the bypass capacitor and the filament is reduced and the voltage across the tube is also lowered. A transformer feedback sustains the oscillation, which is over 10KHz. Some include power factor correction. The question is how the LED tube is able to tolerate the high voltage from the ballast. One possibility is that it has a low-pass filter to attenuate the high-frequency voltage.
When I took down the ballast, it felt rather heavy, 3.5 lbs. I realized that it is not an electronic ballast; it is the magnetic type. The ballast is over 30 years old (possibly manufacture in 1991 based on a marking on the ballast). The inductance measurements are: black-white 390mH (10Ohms), yellow 47uH (0.4Ohm), blue 48uH (0.4Ohm), red 109uH (0.4Ohm). The coils provide heating to the cathode. The coils appear DC isolated. When 120V AC is applied to black-white, about 4V AC on each coils, across yellow and blue is 226V and yellow and red is 5V (something seems faulty here). Between blue and red is 1.4H, yellow and blue is 1H, yellow and red no inductance. So there is an additional coil that is connected through capacitors; it functions like autotransformer to generate the high voltage. So I suspect a broken capacitor. Unfortunately, the ballast is completely potted.
Another question is, does a Type A only LED tube work without a ballast? Testing confirms it does not work. This is because this type of LED tube requires higher voltage provided by the ballast. Other explanations out there make no sense.