according to one preferred embodiment illustrated in fig1 - 8 , seven u - shaped fluorescent tubes 10 ( 1 )- 10 ( 7 ) are driven by three electronic ballasts 20 . adjusting the ballast voltage controls the output power of the tubes . the tubes 10 ( 1 )- 10 ( 7 ) are supported by a housing 30 and are covered by a polycarbonate shield 40 which directs cooling airflow within the unit and prevents glass - patient contact in the event of tube breakage . an aluminum reflector 50 located behind the tubes increases both the output irradiance and the uniformity of the output distribution . the overall dimensions of the unit are approximately 38 cm h × 45 cm w × 44 . 5 cm d . fig1 shows the position of the patient &# 39 ; s head and nose . according to a preferred embodiment of the present invention , seven 36 ″ u - shaped f34t8 ultra blue fluorescent tubes 10 ( 1 )- 10 ( 7 ) provide a maximum visible light - emitting area 36 cm high by 46 cm wide ( approximately 2850 cm 2 ), with a minimum therapeutically active area 30 cm high by 46 cm wide ( approximately 1350 cm 2 ). as shown in fig1 , the tubes have a generally arcuate central region 10 a and arms 10 b extending from respective ends of the central region . fluorescent tubes are a type of gas discharge lamp . they utilize an electric discharge through a low pressure gas to create a plasma which interacts with a fluorescing phosphor to convert electrical energy into light . a typical fluorescent tube consists of a sealed glass tube with electrodes , or cathodes , at both ends . the tube is internally coated with a uniform luminescent inorganic crystalline phosphor . the tube is filled with a low pressure inert gas , usually argon , to which a small amount of liquid mercury is added prior to sealing . the low internal pressure causes some of the liquid mercury to evaporate resulting in an argon / mercury atmosphere within the tube . application of a sufficiently high voltage potential across the cathodes causes the emission of electrons from the cathode , which diffuse along the length of the tube and ionize the argon / mercury vapor . once ionized , the gas mixture within the tube becomes conductive which permits an electrical current to flow and continue to excite the mercury atoms . the magnitude of the tube current controls the number of excited atoms and hence the light output from the tube . as the excited mercury atoms return to a lower energy state , they emit ultraviolet ( uv ) radiation . this uv radiation is absorbed by the phosphor on the tube wall causing the phosphor to fluoresce , efficiently converting the energy of the principle resonant line of mercury to a longer wavelength . the chemistry of the phosphor material determines the characteristic spectral emission of the light output from the lamp . this can be utilized to tune the wavelength output of the light source to suit the requirements of the application , as is the case in the present invention . the output from a fluorescent tube is not inherently uniform . the output measured in the immediate vicinity of the cathode is typically much lower than the output over the rest of the tube . this occurs because ionized gas in the area near the cathode does not emit as much uv to excite the phosphor . this area of reduced emission is known as the faraday dark space . to avoid uniformity problems , one embodiment of the present invention utilizes a plurality of u - shaped tubes 10 ( 1 )- 10 ( 7 ). this arrangement allows the cathodes and their low output area to be located outside the active emitting area ( effectively behind the patient &# 39 ; s ears ). only the more uniform center portion of the tube output is used for patient treatment . another advantage of the arrangement is that uniformity can also be adjusted by varying the lateral spacing of the tubes ( relative horizontal spacing as shown in fig2 ). this is important since it is necessary to compensate for the fact that the output from a flat plane emitting light source drops near the edges . varying the lateral spacing of the tubes creates the same effect as folding the edges of a larger illuminator in on itself , thus emulating an infinite plane emitter with a compact unit . the u - shape minimizes the variations in distance between the emitter and the target , providing a uniform visible light distribution to the face or scalp of the patient ; the tube dimensions were chosen based on the average dimensions of the adult human head . the mounting of the tubes minimizes the impact of the non - emitting area at their ends . this allows the present invention to be more compact and permits easier centering of the patient &# 39 ; s head within the visible light sources . moreover , the “ u ” shape provides the desired irradiance and irradiance uniformity for scalp and facial irradiation , and thus ensures that the proper visible light dosage is applied to all target areas during pdt . the number of tubes used and the spacing between them were chosen to achieve desired uniformity and power output specifications . optimum output distribution has been found to occur when seven tubes 10 ( 1 )- 10 ( 7 ) are placed in the chassis in a symmetric pattern with respect to opposite edges of the unit with the following approximate lateral spacing : 7 cm between the center tube 10 ( 4 ) and each of the two tubes 10 ( 3 ), 10 ( 5 ) adjacent to the center tube 10 ( 4 ); 5 cm between the tubes 10 ( 3 ), 10 ( 2 ) and 10 ( 5 ), 10 ( 6 ), i . e ., the next pairs of tubes out from the center ; and 3 . 5 cm between tubes 10 ( 2 ), 10 ( 1 ) and 10 ( 6 ), 10 ( 7 ), i . e ., the outermost pairs of tubes at the sides of the unit . the outermost tubes 10 ( 1 ), 10 ( 7 ) are approximately 2 . 5 cm from the edges of the housing . the present invention provides a highly uniform output irradiance without the use of an additional diffusing element . however , it is also envisioned that a diffusing element could also be incorporated into the shield 40 . the fluorescent tubes according to preferred embodiments of the present invention utilize a commercially available phosphor — sr 2 p 2 o 7 : eu — that is used in the diazo blueprinting process . when this phosphor absorbs the uv radiation emitted from the mercury it produces an emission spectrum of blue light with a bandwidth having a range of 30 nm at a peak wavelength of 417 nm ( nominal ). a typical fluorescence emission spectrum of the tubes according to the present invention is shown in fig1 . according to a preferred embodiment of the present invention , the spectral output is selected to match the absorption spectrum of protoporphyrin ix , the photosensitizing species thought to be formed from ala in target tissue . other visible spectral outputs may be provided when utilizing a different phosphor within the tubes . other visible spectral outputs may also be provided when utilizing other light source technologies . achieving satisfactory performance from a fluorescent tube requires the application of a voltage to the tube cathodes to initiate tube conduction and subsequently control the tube current . fluorescent tubes , being gas discharge devices , are particularly sensitive to the electrical voltages and currents used to drive them . higher tube currents will increase the electron yield causing the output irradiance to increase . but higher currents result in higher cathode temperatures , potentially increasing the erosion of the cathode emitting material and contamination of the tube atmosphere by material removed from the cathodes ; this ultimately results in decreased tube life . tube currents that are too low can result in low tube wall temperatures that may cause condensation of the mercury vapor , adversely affecting the uniformity of the lamp output . furthermore , for most tube designs it is necessary to heat the cathodes to achieve proper tube starting . control of the voltage and / or tube current characteristics , as well as heating of the cathodes is accomplished with external electronic circuitry which is usually engineered and packaged into a single device commonly referred to as a “ ballast .” there are many such ballast designs possible ; they range from simple electromagnetic inductors to sophisticated electronic circuits that optimize and control many aspects of tube operation . according to a preferred embodiment of the present invention , each ballast 20 comprises three main functional sections : an input filtering circuit , a power oscillator circuit , and a high frequency output transformer . the input filter circuit rectifies the 120 vac line voltage into an internal dc voltage that can be utilized by the power oscillator . the filter also prevents disturbances on the ac line from adversely affecting the operation of the ballast and prevents oscillator switching transients from feeding back into the ac line . lastly , this circuit provides power factor correction so that the peak ac line current drawn by the ballasts is lower than that for a simple rectifier . it is also possible to operate preferred embodiments of the present invention using dc input voltage . the power oscillator provides the mechanism for electrical energy transfer in each ballast unit 20 ; it consists of a pair of switching transistors coupled to a resonant circuit which includes the output transformer . a small signal from the output transformer is fed back to the input of the switching transistors causing them to oscillate when the dc voltage is applied . energy from this oscillation is coupled through the transformer to the tubes . for this ballast design , the magnitude of the oscillation is proportional to the dc voltage which in turn is proportional to the ac line voltage . because the transformer is also connected to the tube cathodes , the magnitude of the tube current is proportional to the ac line voltage . this is known as a non - constant wattage design and it was chosen to allow adjustment of the output irradiance of the present invention . the high frequency transformer couples energy to the tube , as well as performing several other important functions . it provides electrical transformation of voltage levels and a current limiting impedance in order to supply the correct voltage and current to the tubes to ensure proper and safe operation . it also provides feedback to the oscillator to help stabilize its operation and to supply a mechanism to generate an initial high voltage starting pulse . additional windings of the transformer also provide a current to heat the tube cathodes . this lowers the starting voltage requirements and reduces damage to the cathodes from the initial starting current surge . because of manufacturing variations in the production of the tubes , the output irradiance must be adjusted to meet the requirements for the specific pdt indication . furthermore , the output must be adjusted as the tubes age to compensate for degradation within the tubes themselves . in a preferred embodiment of the present invention , ballasts 20 are non - constant wattage ballasts , thus allowing the tube output to be adjusted by changing the input voltage to the ballasts . according to a preferred embodiment of the present invention , a 40 % variation is possible through the use of two buck / boost auto - transformers 60 on the ac line . the ballast voltage may be adjusted manually or automatically . according to embodiments of the present invention having manual voltage adjustment , the appropriate ballast voltage is set by a technician manually selecting the taps on two buck / boost auto transformers 60 . since variations in input ac line voltage affect the ballast voltage , external voltage stabilization may be used to improve the stability of the output . another preferred embodiment of the present invention has automatic voltage adjustment including an “ active ” system of microcontroller - activated electronic switches to eliminate the need for external voltage stabilization and the need for technician - adjustment of the ballast voltage as the tube output decreases with use . the microcontroller accepts input signals from optical and voltage sensors and then activates the appropriate electronic switch to maintain output irradiance within specified parameters . the active switching system is also able to correct for changes in power output due to line voltage and temperature variation during treatment ; thus external line voltage stabilization is not required in a preferred embodiment of the present invention having the active switching system . automatic voltage adjustment according to a preferred embodiment of the present invention is be described more fully below . according to one preferred embodiment of the present invention , three rapid - start electronic ballasts 20 are utilized to drive seven fluorescent tubes 10 ( 1 )- 10 ( 7 ). two of the ballasts 20 ( 1 ) and 20 ( 3 ) drive two tubes 10 ( 1 ), 10 ( 7 ) and 10 ( 2 ), 10 ( 6 ), respectively , and one ballast 20 ( 2 ) drives three tubes 10 ( 3 )- 10 ( 5 ). these ballasts convert 120 vac line voltage available from a standard wall outlet into a high frequency (˜ 25 khz ) sinusoidal current suitable for driving the fluorescent tubes . high frequency operation is desirable to reduce the optical output ripple which is present in all fluorescent tubes and to increase the overall output . output ripple is a small variation in the tube output related to the sinusoidal alternating tube current used to sustain the plasma arc . in order to utilize the visible light emitted from the back of the tubes , and to increase the uniformity of the output distribution , a reflector 50 is positioned approximately 10 mm from the rear surface of the tubes . the reflector 50 is made of polished aluminum sheet which is bent to approximately conform to the configuration of the tubes . the emitting area of the present invention is covered with a low uv transmission plastic shield 40 . in a preferred embodiment of the present invention , plastic shield 40 is made from polycarbonate . when fluorescent tube technology is utilized , there is a small quantity of uv emission present in the output . polycarbonate has very low transmission in the uv region of the spectrum and it effectively filters out any residual uv emission from the visible light output of the unit . the shield 40 also protects the patient from injury in the event of tube breakage . since cathode and tube wall temperatures strongly affect the output distribution , a cooling system is provided to ensure proper bulb operation . according to an embodiment of the present invention , the cooling system comprises vents in the polycarbonate shield 40 , the reflector 50 and the housing 30 , as well as fans 70 to displace cooling air . ambient air enters the present invention through intake vents 42 in the polycarbonate shield 40 . the space between the shield 40 and the reflector 50 creates a first zone ( i . e ., a plenum ) in which the ambient air passes over the tubes 10 ( 1 )- 10 ( 7 ). the ambient air is heated by the tubes , and is transferred from the first zone to a second zone between the reflector 50 and the housing 30 through vents in the reflector 52 . the reflector vents 52 are located at ± 45 ° to provide the proper temperature distribution at the tube walls . heated air is exhausted by four fans 70 through exhaust vents 32 in the housing 30 . according to a preferred embodiment of the present invention , a plurality of intake vents 42 ( thirty - six are illustrated ) in the polycarbonate shield 40 are evenly spaced along each edge directly over the cathode area of the tubes . the vents 52 in the reflector 50 are pairs of slots machined in columns from its top to its bottom ; the reflector vents 52 are directly in front of the fans 70 which are located at ± 45 ° from the center of the unit . the straight section of the tube between the cathode area and curved section of the “ u ” tubes produces slightly more output than the center portion of the curved section . this has been attributed to differences in the phosphor coating thickness caused by the bending process . to further increase irradiance uniformity , the reflector vents 52 are located in the reflector 50 so that cooling air flows primarily over the straight section and the end portions of the curved section . less cooling air flows over the middle of the tubes between the sets of reflector vents 52 , causing the tube wall temperature to be higher in this region . since the output irradiance for this tube increases ( to a point ) with tube wall temperature , the hotter central region of the tube produces higher output irradiances than the rest of the tube and compensates for the lower emission efficiency of the central region . the user controls according an embodiment of the present invention include a main power switch 80 located on the back of the housing 30 , and an on / off key switch 90 and a timer 100 , located on a side of the housing 30 . the timer 100 includes an exposure time indicator 102 that displays the remaining treatment time . the main power switch 80 is part of a fused power entry module consisting of a two position rocker switch and an international electrotechnical commission ( iec ) standard power cord connector . pushing the rocker switch to the “ 1 ” position supplies power to the system . the fans 70 will operate but the tubes 10 ( 1 )- 10 ( 7 ) will not light until the key switch 90 is turned on and the timer 100 is set and activated . when the main power switch 80 is in the “ 0 ” position all electrical components within the present invention are disconnected from the ac line . the fused power entry module provides over - current protection to the present invention and current limiting in the event of a power surge ; the main power switch 80 will not apply power to the unit if either fuse in this module has blown . the key switch 90 provides a means by which use of the present invention can be restricted to authorized personnel . according to an embodiment of the present invention , operation of the timer 100 and tubes 10 ( 1 )- 10 ( 7 ) requires inserting the key and rotating it clockwise ¼ turn to the “ on ” position . this activates the timer 100 so that the prescribed exposure time can be entered . according to an embodiment of the present invention , the system timer 100 directly controls the operation of the fluorescent tubes 10 ( 1 )- 10 ( 7 ). it contains three adjustment / control buttons 104 : one start / stop and two time select buttons , as well as the exposure time indicator 102 . the timer 100 is used to set the required exposure time and to initiate visible light exposure . it automatically turns off the present invention tubes after the set exposure time has elapsed . the two time select buttons 104 are preferably membrane switches that enable the user to set the exposure time . depressing the button 104 with the “ up ” arrow increases time and depressing the button 104 with the “ down ” arrow decreases time . when first depressed , these buttons will change the display reading slowly . if they remain depressed , the display will begin to scroll more rapidly . small adjustments to the displayed time can be made by quickly depressing and releasing these buttons . in this manner , the prescribed treatment time may set by the user . the start / stop button 104 is a membrane switch that controls the tube operation ; it toggles between the running and stopped states of the tubes and timer . after the exposure time has been set , depressing this button 104 activates the tubes and initiates the timer countdown sequence . depressing it a second time turns off the tubes and stops the timer , thus providing a means for interrupting treatment if required . if the start / stop button 104 is not pressed a second time , the timer automatically turns off the tubes at the completion of the timer countdown . treatment may also be terminated , if necessary , by rotating the key to the off position or by pushing the main power switch 80 to the “ 0 ” position . the exposure time indicator 102 on the timer 100 is preferably a four digit led display which reads in minutes and seconds . prior to pushing the start / stop button 104 to begin light exposure , the display 102 indicates the exposure time that has been set . when the start / stop button 104 is depressed to initiate treatment , the exposure time indicator 102 will count down and display the amount of exposure time remaining . the tubes will automatically turn off when the display reads “ 00 : 00 .” power is supplied via a three conductor hospital grade electrical cord . the power requirements according to an embodiment of the present invention are 120 vac , 2 . 5 amps , 60 hz ac line voltage input that is stabilized using an external commercial voltage regulator ( e . g ., a sola mcr1000 constant voltage transformer ). according to a preferred embodiment of the present invention , the need for technician - adjustment of the ballast voltage as the tube output decreases with use is eliminated by providing automatic self - adjustment of the ballast voltage . this has been accomplished by replacing the manual tap selection jumpers with an “ active ” system of microcontroller - activated electronic switches ( fig9 a - 9e ). the microcontroller accepts input signals from optical and voltage sensors and then activates the appropriate electronic switch to maintain output irradiance within specified parameters . the active switching system is able to correct for changes in power output due to line voltage and temperature variation during treatment ; thus external line voltage stabilization is not required according to preferred embodiments of the present invention having automatic adjustment of the ballast voltage . all other components of the automatic ballast voltage adjusting embodiments of the present invention , including the tubes 10 ( 1 )- 10 ( 7 ), ballasts 20 , reflector 50 , and polycarbonate shield 40 , are the same as for the manually adjusted embodiments . according to a preferred embodiment of the present invention , an electronic control system 110 consists of six functional blocks . a microcontroller 200 is the central processing unit ; it contains firmware which reads the system sensors , determines the system status , controls the ballast voltage ( and tube output ), and provides user information by way of a system status led 112 ( the firmware is described in detail below ). to achieve output irradiance in the specified range , the microcontroller 200 monitors the tube output via a visible light sensor 120 which is located behind the tube reflector 50 . referring to fig1 , diffuse visible light is provided to the visible light sensor 120 by machining slots 122 ( 3 )- 122 ( 5 ) behind each of the center three tubes 10 ( 3 )- 10 ( 5 ) on the reflector panel 50 just left of the center . a voltage detection circuit 210 tells the microcontroller 200 when the timer 100 has initiated its countdown sequence and also when the maximum allowable ballast voltage has been reached . using input from these sensors , the microcontroller 200 compares the current system status with the values stored during calibration and determines whether ballast voltage adjustment is required . ballast voltage adjustment is accomplished with an electronic switch array interfaced with zero - crossing opto - isolators 222 to the microcontroller output lines . finally , if the system is not functioning properly , or cannot produce output power in the specified operating range , the microprocessor 200 activates the system status led 112 to inform the user . the functional blocks of the electronic control system will now be described in greater detail . according to a preferred embodiment of the present invention , a fully programmable embedded microcontroller 200 ( e . g ., microchip pic16f84 ) is provided that incorporates an arithmetic logic unit , system ram , non - volatile storage ram , rom and interface circuitry into a single monolithic integrated circuit . the microcontroller 200 also contains an electronically independent “ watch - dog ” timer circuit which is programmed to reset the cpu in the event of a microcontroller hardware failure or a firmware execution error . the microcontroller 200 interfaces . with the system sensors , the system status led 112 and the electronic switch array via twelve programmable digital i / o lines . system calibration parameters are stored in the on - chip non - volatile ram and all system firmware for controlling regulator functions is contained within the on - chip rom storage . firmware is programmed into rom and verified using external programming hardware . according to a preferred embodiment of the present invention , the visible light sensor 120 ( e . g ., a texas instruments tsl230b photosensor ) is used to detect the tube output , and the output of the visible light sensor 120 is used as the regulation criterion . in the case of the tsl230b photosensor , a large area photodiode and an integrated current - to - frequency converter provide an output signal to the microcontroller as a series of digital pulses . the direct conversion of the optical signal to a digital format reduces circuit complexity and eliminates calibration and drift problems associated with analog circuitry . the visible light sensor 120 is located behind the central tube 10 ( 4 ) and the reflector panel 50 just to the left of center . in order to monitor the visible light contribution from multiple tubes , three slots 122 ( 3 )- 122 ( 5 ) are machined into the reflector 50 behind the central three tubes 10 ( 3 )- 10 ( 5 ). the cross sectional area and position of these slots 122 ( 3 )- 122 ( 5 ) are such that the visible light sensor 120 receives equally weighted inputs from the three bulbs 10 ( 3 )- 10 ( 5 ). according to a preferred embodiment of the present invention , the ratio of the cross - sectional areas for any two selected slots is proportional to the inverse squares of the selected slots &# 39 ; distances from the visible light sensor 120 . the visible light sensor 120 is covered with a filter to match its spectral responsivity to that of the optometer which was used as the metering standard for calibration . additionally , the visible light sensor 120 is covered with a glass - diffuser to further minimize the positional dependence of the detector relative to the reflector slots 122 ( 3 )- 122 ( 5 ). the voltage detection circuit 210 performs a dual function : it coordinates microcontroller operation with the system timer 100 and informs the microcontroller 200 when the maximum permissible ballast voltage has been reached . in a preferred embodiment of the present invention ( referring to fig9 b ), the voltage detection circuit 210 comprises a cd4046 cmos phase lock loop ( pll ) 214 used as a voltage controlled oscillator ( vco ). a sample of the line voltage present on the ballast is rectified and used both to provide power to the cd4046 and to drive the vco input . this arrangement enables the circuit to produce a digital pulse train whose frequency is proportional to ballast voltage . the pulse train is coupled via an opto - isolator 212 to the microcontroller 200 which determines the ballast voltage by measuring the pulse period . detection of system timer state is accomplished by placing the timer relay contacts in series with the ballast supply leads . when the timer 100 is off ( e . g ., no treatment ), no voltage is present to drive either the voltage detection circuit 210 or the ballasts 20 . upon detecting this condition , the microcontroller 200 resets the system variables and loops until a pulse train ( voltage ) is present . upon initiation of the timer countdown sequence , the timer relay contacts close , supplying voltage to the voltage detection circuit 210 and ballasts 20 . when the presence of a pulse train is detected by the microcontroller 200 , it commences regulation ( see below ). although the regulator circuit can adjust the ballast voltage , treatment duration is hardware - controlled by the timer 100 through the series wiring of the relay contacts . once the visible light treatment has been initiated , the microcontroller 200 monitors the vco pulse train and compares it with a value stored in memory during unit setup and calibration . if the measured value exceeds the stored value , further increases in ballast voltage are inhibited . the value stored in the microcontroller memory corresponds to the ballast voltage at one transformer tap setting less than its maximum rated operating voltage , preventing selection of a transformer tap setting that would exceed the maximum ballast voltage . this technique minimizes unnecessary switching and ensures that the ballast voltage does not exceed its maximum rated operating voltage ( 133 vac in a preferred embodiment of the present invention ) at any time . referring to fig9 d and 9e , the electronic switch array for transformer tap selection comprises six thyristor electronic switches 220 which connect the ballast input lines and the voltage selection taps on the buck / boost auto - transformers 60 . the thyristor switches 220 control gates electro - optically coupled to the microcontroller 200 . the microcontroller 200 thus increases or decreases the voltage applied to the ballasts 20 ( increasing or decreasing the tube output ) by energizing the appropriate control gates to select the appropriate taps . according to preferred embodiments of the present invention , the system status indicator 112 shows when the output irradiance is not within specifications or when a control system failure has occurred . inspection with a separate power meter is not necessary . in one preferred embodiment of the present invention , the system status indicator 112 comprises a single led which indicates the functional status of the system using a coded flash rate . immediately after the key is first turned to the “ on ” position , the led flashes three times to indicate that the system function is normal and is ready for use . if this fails to occur , either the led or microcontroller is not functioning correctly , or the key switch 90 has been turned on , off , and on again too quickly for the microcontroller 200 to reset the led control . if the led does not flash three times after shutting off the power for several seconds and restarting it , the unit should not be used . rapid flashing immediately after the key switch 90 is turned on indicates there is a checksum error in the microcontroller 200 . this occurs when a problem exists with the values stored in the microcontroller memory for the optical regulation and ballast voltage limits . in this instance , the unit is not operational and will not light . if slow flashing occurs after timed treatment has been initiated , and the regulator attempts and fails 10 times to reduce the tube output to within the specified range , this indicates that the output may be too high and the ballast voltage cannot be further reduced . this may result from a microcontroller or component failure . if the led slowly flashes during treatment , the treatment should be discontinued because the output power may be higher than the specified maximum . if a steady glow occurs after timed treatment has been initiated , and the regulator attempts and fails 10 times to increase the tube output to within the specified range , this indicates that the output power may be too low and the ballast voltage cannot be further increased . if the led glows steadily during treatment , but does not flash , the treatment may be continued , although the efficacy may be reduced as a result of low tube output . the led will turn off if the output irradiance subsequently increases to above the minimum specified limit . the microcontroller firmware has three main executable firmware modules : power - on setup , calibration and regulation . only the power - on setup and the regulation modules execute during patient treatments . the power - on setup module runs only at microcontroller power up when the key switch 90 is inserted and turned to “ on .” at this time , the system variables are reset and calibration values stored in non - volatile ram are retrieved . additionally , a checksum calculation is performed and compared against a stored checksum . any mismatch causes the firmware to shut down the system and initiate the led rapid flashing code . once successful startup has been achieved , control is transferred to the regulation module . upon entering the regulation module , the microcontroller 200 enters a voltage detection loop until it detects either a pulse train from the voltage circuit or contact closure on one of the technician - accessible service buttons / jumpers . the internal clock and the error flags are reset in this loop . if contact service closure is detected , control is transferred to the calibration module ( see below ). after the exposure time has been set on the timer 100 and the “ start ” button 104 has been pressed , the microcontroller 200 detects the pulse train produced by the vco , and enters the main regulation loop . this starts the internal clock ( independent of the timer ). the main regulation loop reads the output of the vco , the visible light sensor 120 , and the internal clock ; selects a new tap switch ( if required ); and displays any system errors every three seconds according to the algorithm described below . loop execution continues until the timer terminates the treatment and the vco pulse train . when the timer countdown sequence is first initiated , the microcontroller 200 sets up the switch array to apply line voltage to the ballasts 20 . during the first 2 . 5 minutes of the treatment ( as determined from the internal clock ), the visible light sensor 120 measures the tube output , and appropriate transformer taps are selected to keep the output irradiance between half the stored minimum and maximum regulation limits ( 9 . 3 and 10 . 7 mw / cm 2 according to a preferred embodiment of the present invention ). this is done to provide optimum tube warm - up while maintaining output irradiance within the specified limits . to allow sufficient time for the output to be within the required range at five minutes after any ballast voltage adjustment , the microcontroller 200 switches the minimum regulation limit to the stored value ( 9 . 3 mw / cm 2 in a preferred embodiment of the present invention ) after the first two and a half minutes of operation ; the maximum limit remains unchanged . since the regulation limits are not modified beyond this point , the output irradiance will remain within these limits until treatment is terminated . if the output cannot be maintained between the regulation limits , the system error flags activate the system status led . a system error is not reported until the regulator has made ten attempts to correct the condition . this allows time for the tubes to respond to adjustment and to prevent “ nuisance ” error indications . during each loop , the microcontroller 200 measures the ballast voltage via the vco and sets an inhibit flag if the voltage is at maximum . while this action does not directly cause an error , one may be indicated if the system output is too low but cannot be raised due to the inhibit flag . if the timer 100 has terminated the treatment , the vco pulse train is no longer present , and the microcontroller 200 returns to the voltage detection loop until a new treatment is initiated . data for the calibration module is established prior to clinical installation . the maximum allowable ballast voltage for the voltage detection circuit 210 and the visible light sensor 120 signals corresponding to the minimum and maximum regulation limits are programmed into the microcontroller memory using a setup / calibration algorithm . to set the maximum ballast voltage , a voltage calibration jumper on the printed circuit board is shorted , causing the microcontroller 200 to enter the voltage calibration mode . a variac is used to adjust the ballast voltage to one transformer tap setting below the maximum allowable ballast voltage ( 127 vac in a preferred embodiment of the present invention ). shorting the voltage calibration jumper a second time stores both this voltage value and a checksum in the microcontroller non - volatile memory . each time the voltage calibration jumper is shorted , the system status led flashes to indicate that the action has been completed . next , the maximum and minimum regulation limits are stored in the microcontroller memory by switching to the optical calibration mode . a reference udt optometer ( e . g ., a udt s370 power meter with a 247 detector / cosine diffuser assembly ), is placed at a reference point . according to a preferred embodiment of the present invention , the reference point is 3 ″ from the polycarbonate shield 40 at the center of the therapeutically active area . the ballast voltage is adjusted with a variac to obtain the desired maximum irradiance on the optometer . the corresponding output signal from the visible light sensor 120 is input to microcontroller memory as the maximum output limit . this procedure is repeated , adjusting the output to obtain the desired minimum irradiance on the optometer and setting the minimum limit of the regulator . finally , a checksum is stored and the microcontroller 200 returns to the power - on setup module , commencing normal operation . as with the voltage calibration , the system status led flashes each time calibration data has been stored . it has been found that , according to a preferred embodiment of the present invention , the measured output over the active emitting area is within 70 % of the measured maximum when measured with a cosine response detector at distances of 4 ″ and 2 ″, and within 60 % of the measured maximum over all operation distances . one example of a treatment method for precancerous lesions , such as actinic keratosis , by pdt utilizing an illuminator described above in conjunction with 5 - aminolevulinic acid ( ala ) will now be described . essentially anhydrous ala is admixed with a liquid diluent just prior to its use . the ala admixture is topically applied to the lesions using a point applicator to control dispersion of the ala admixture . a suitable applicator is described in u . s . patent application ser . no . 08 / 962 , 294 ( filed oct . 31 , 1997 ), and ala is generally discussed further in u . s . patent application ser . no . 08 / 921 , 664 ( filed sep . 2 , 1997 ). the entire contents of these applications are incorporated herein by reference . after the initial application of the ala admixture has dried , one or more subsequent applications may be similarly applied . approximately 2 mg / cm 2 of ala is administered . formation of photosensitive porphyrin and photosensitization of the treated lesions occurs over the next 14 - 18 hours , during which time exposure to direct sunlight or other bright light sources should be minimized . between 14 and 18 hours after administration of the ala , the lesions are irradiated by an illuminator according to the present invention . the illuminator irradiates the lesions with a uniform blue light for a prescribed period . according to a preferred treatment , the visible light has a nominal wavelength of 417 nm . the invention thus provides a method for photodynamically diagnosing or treating a contoured surface of a patient which includes providing the illuminator described above , placing the patient in the illuminator , and illuminating the patient to diagnose or treat the patient . as described in the documents referred to above , the patient may be illuminated to treat actinic keratoses , acne , photo damaged skin , cancer , warts , or psoriasis . the method can also be used to remove hair and diagnose cancer . since total light dose ( j / cm 2 )= irradiance ( w / cm 2 )× time ( sec ), the only additional parameter that needs to be controlled for delivery of the correct treatment light dose is exposure time . this is accomplished in a preferred embodiment of the present invention by the timer which controls electrical power to the ballasts and which can be set by the physician . data has shown that 10 j / cm 2 delivered from a source with an irradiance density of 10 mw / cm 2 produces clinically acceptable results . from the equation above , this light dose will require an exposure time of 1000 seconds ( 16 min . 40 sec ). a selected light dose may also be administered by additionally or alternatively varying the irradiance density . additional advantages and modifications will readily occur to those skilled in the art . therefore , the invention in its broader aspects is not limited to the specific details , and representative devices , shown and described herein . accordingly , various modifications may be made without departing from the spirit and scope of the general inventive concept as defined by the appended claims and their equivalents .
a method of photodynamically diagnosing or treating a contoured surface includes topically applying 5 - aminolevulinic acid to the contoured surface and irradiating the contoured surface with substantially uniform intensity visible light from a plurality of light sources generally conforming to the contoured surface . the plurality of light sources may comprise fluorescent tubes .