# Patent

## Title
Fluorescent lamp starter unit having a hot socket insert capability

## Abstract

A fluorescent lamp starter unit determines whether the lighting fixture into which it has been plugged is in a first or second state. The lamp is on in the first state and off in the second state. If the fixture is in the first state then the starter unit uses a first method to detect ballast type, whereas if the fixture is in the second state then the starter unit uses a second method to detect ballast type. In one example, the first method involves turning on the power switch of the starter unit at a time after a zero-crossing and then using the periodicity of a transient switch current signal to determine ballast type, whereas the second method involves turning on the power switch at the time of the zero-crossing and then using peak amplitude information of the transient switch current to determine ballast type.

## Background
TECHNICAL FIELD
The described embodiments relate to starter units for fluorescent lamps.
BACKGROUND INFORMATION
Fluorescent light fixtures include tubular fluorescent bulbs. A fluorescent bulb is also referred to here as a fluorescent lamp. The tube is a glass tube that contains an ionizable gas and a small amount of mercury. There are filaments at each end of the tube. Upon application of proper electrical voltages, the filaments can be made to heat up and to ionize the ionizable gas in the tube. If a voltage of adequate magnitude is then provided between the filaments, an arc can be started through the gas in the tube between the filaments. The arc involves a flow of current from one filament, through the ionized gas, and to the other filament. Energetic electrons in this current flow collide with the mercury atoms, thereby exciting the mercury atoms and causing them to emit ultraviolet radiation. The emitted ultraviolet radiation is absorbed by and excites a phosphor coating on the inside of the walls of the tube. The phosphor coating fluoresces and emits radiation in the visible spectrum (i.e., visible light). The visible light passes outward through the glass and is usable for illuminating purposes.
Some such fluorescent light fixtures involve a circuit referred to as a “starter” or a “starter unit”. In a first step, a switch in the starter unit closes and forms an electrical connection between the filament at one end of a tube and the filament at the other end of the tube such that an alternating current can flow from an AC power source, through an inductive ballast, through one filament, through the closed switch of the starter, and through the second filament, and back to the AC power source. This alternating current flow causes the filaments to heat. The heating of the filaments causes gas surrounding the filaments to ionize. Once the gas is ionized in this way, then the switch in the starter unit is opened. The opening of the switch cuts current flow through the inductive ballast, thereby causing a large voltage spike to develop. Due to the circuit topology, this large voltage is present between the two filaments. The voltage is large enough to strike an arc through the gas. Once the arc is established, the resistance between the two filaments through the gas decreases. This allows the current to continue to flow through the gas without a large voltage being present between the filaments. The switch is left open, the current continues to flow, filaments continue to be heated, the arc is maintained, and the current flow is regulated by the ballast. The fluorescent lamp is then said to be on. The lamp emits visible light to illuminate an area.
In fluorescent light fixtures, the starter unit may fail. The starter unit is therefore sometimes made to be a replaceable unit. Great numbers of fluorescent light fixtures with replaceable starter units are installed throughout the world. Large numbers of such fluorescent light fixtures are installed in public buildings, office buildings, and other large buildings. Quite often the fluorescent lights are left on and consume electrical energy even though the area served does not need to be illuminated. A way of preventing this waste of electrical energy is desired.
Infrared motion detecting wall switches are often employed to prevent the waste of energy due to lights being left on when lighting is not needed. If an infrared motion detector in the wall switch does not detect motion of an infrared emitter (for example, a human body) in the vicinity of the wall switch, then circuitry in the wall switch determines that the room is not occupied by a person. Presumably if a person were in the room, the person would be moving to some extent and would be detected as a moving infrared emitter. If the wall switch determines that the room is unoccupied because it does not detect any such moving infrared emitter, then the wall switch turns off the fluorescent lights on the circuit controlled by the wall switch. The wall switch turns off the fluorescent lights by cutting AC power flowing to the fluorescent lamp light fixtures through power lines hardwired into the building. If, however, the wall switch detects a moving infrared emitter, then the wall switch turns on the lights by energizing the hardwired power lines so that AC power is supplied to the fluorescent light fixtures through the hardwired power lines.
The wall switch motion detection system involving hardwired power lines embedded in the walls and ceilings of buildings is quite popular, but a wireless system has been proposed whereby each of the replaceable starter units is to be provided with an RF receiver. The starter unit is then to turn on or off the fluorescent lamp of its light fixture in response to RF commands received from a central motion detecting occupancy detector. If a person enters a room provided with such a system, then the central motion detector detects motion and issues RF commands to the starter units in the light fixtures to turn on their respective fluorescent lamps. If the central motion detector fails to detect motion for an amount of time and determines that the room is not occupied, then the central motion detector issues RF commands to the starter units to turn off their respective fluorescent lamps, thereby preventing wasted electrical power that would otherwise be consumed illuminating the unoccupied room.
In a proposed system, different timing is to be employed in a starter unit to turn off a fluorescent lamp depending on the type of ballast being used. There are many types of ballasts used to limit current flow through fluorescent lamps including ballasts referred to here as L-type ballasts and including ballasts referred to here as C-type ballasts. An L-type ballast is generally an inductor whereas a C-type ballast is an inductor that includes a series capacitor. In the proposed system, each starter unit attempts to detect the type of ballast to which it is connected. If the starter unit detects it is connected to an L-type ballast, then it uses turn off timing more appropriate for lamps having L-type ballasts. If the starter unit detects it is connected to a C-type ballast, then it used turn off timing more appropriate for lamps having C-type ballasts. Often times a light fixture employing multiple lamps will include one L-type ballast and one C-type ballast so that the overall power factor of the light fixture is suitable. The starter units in the fixture of the proposed system therefore would use different timings to turn off the lamps. Other times a light fixture employing multiple lamps will include two C-type ballasts, or will include two L-type ballasts. The starter units in these fixtures of the proposed system would use the same timings to turn off the lamps.
SUMMARY
A starter unit (for example, an RF-enabled and replaceable starter unit) has an ability both to turn on a fluorescent lamp and to turn off the lamp. The starter unit detects whether a ballast in the circuit with the fluorescent lamp is of a first type (for example, a L-type ballast) or is of a second type (for example, a C-type ballast). In one novel aspect, the determination is made by determining a periodicity of a transient oscillatory response that results from turning on the switch of the starter unit during a preheat operation. If the determination is that the ballast is likely of the first type, then the starter unit turns off the lamp in a first way (for example, using C-type timing and then using L-type timing alternatingly). C-type timing may involve putting the switch of the starter unit into a linear mode of operation at the end of the turn off operation at a different time than does L-type timing. If, on the other hand, the determination is that the ballast is likely of the second type then the starter unit turns off the lamp in a second way (for example, using only C-type timing and using substantially no L-type timing).
In an example in which AC mains power is 230 volts and fifty hertz, in both the L-type and C-type turn off timings the switch of the starter unit is pulsed on for a duration of more than twenty milliseconds and less than fifty milliseconds, and this pulse on time is followed by a duration of less than ten milliseconds when the switch is operated in the linear mode.
Using the novel alternative pattern turn off method, the same starter unit design is usable both in single-lamp light fixtures and in multi-lamp light fixtures where a mix of ballast types may be used. If a multi-lamp light fixture involves both an L-type ballast and a C-type ballast, then the lamp provided with the C-type ballast will only be turned off using C-type turn off timing that is safe for the switch in the starter unit. The lamp provided with the L-type ballast will experience an initial turn off attempt using C-type timing. Use of C-type timing increases the chance that both lamps will be turned off simultaneously without a later turn off operation erroneously re-igniting a previously turned off lamp. If the lamp does not turn off, however, due to the use of weaker C-type turn off timing on a lamp coupled to a L-type ballast, then a later turn off attempt on the lamp will use L-type timing. In situations in which a starter unit of this design is used in a single-lamp light fixture, a lamp coupled to a L-type ballast will experience, in addition to C-type turn off timing, the more effective L-type turn off timing. A lamp in a single-lamp light fixture with a C-type ballast will experience only C-type turn off timing attempts.
In another novel aspect, the replaceable fluorescent lamp starter unit described above has a hot socket insert capability. The starter unit determines if it needs to determine ballast type. The starter unit may determine it needs to determine ballast type due to any one of a number of different conditions occurring. One condition is the starter unit detecting that it has powered up as a result of a hot socket insert event. After determining that it needs to determine ballast type, the starter unit determines whether the lighting fixture into which the starter unit is plugged is in a first state (for example, the lamp of the lighting fixture is off) or is in a second state (for example, the lamp of the lighting fixture is on). In one example, the starter unit determines whether the lamp is on or off by examining a voltage signal ZXMON indicative of a voltage between the filaments of the lamp. The ZXMON signal has a different wave shape depending on whether the lamp is on or off. If the determination is that the lighting fixture is in the first state (lamp is off) then the starter unit uses a first method to detect a ballast type, whereas if the determination is that the lighting fixture is in the second state (lamp is on) then the starter unit uses a second method to detect ballast type.
The first method of determining ballast type may involve turning on the power switch of the starter unit at a time after a zero-crossing of the ZXMON signal and then using the periodicity of a transient switch current IMON signal to determine ballast type. The second method of determining ballast type may involve turning on the power switch approximately at the time of the zero-crossing of the ZXMON signal and then using peak amplitude information regarding one or more peaks of the transient switch current IMON to determine ballast type. In both the first and second methods of detecting ballast type, the power switch is turned off at the end of the ballast type determining operation and this causes the lamp to go back on. In one example, the lamp is only off for about twenty milliseconds during the ballast type determining operation following hot socket inserting of the starter unit.
Further details and embodiments and techniques are described in the detailed description below. This summary does not purport to define the invention. The invention is defined by the claims.



BRIEF DESCRIPTION OF THE DRAWINGS
The accompanying drawings, where like numerals indicate like components, illustrate embodiments of the invention.
FIG. 1 is a perspective diagram of a system involving a multi-lamp light fixture, where the fluorescent lamps in the fixture can be turned off by RF-enabled and replaceable starter units.
FIG. 2 is a simplified circuit diagram of the multi-lamp light fixture of FIG. 1.
FIGS. 3-8 is a sequence of diagrams that illustrate steps in the turn off of a fluorescent lamp using a starter unit in the multi-lamp light fixture of FIG. 1.
FIG. 9 is a perspective view of one of the RF-enabled starter units of the system of FIG. 1.
FIG. 10 is an exploded perspective view of the RF-enabled starter unit of FIG. 9.
FIG. 11 is a circuit diagram of a first portion of the starter unit of FIG. 10.
FIG. 12 is a circuit diagram of a second portion of the starter unit of FIG. 10.
FIG. 13 is a waveform diagram that illustrates how the switch of the starter unit is made to pulse on and off in a C-type timing turn off operation.
FIG. 14 is a waveform diagram that illustrates how the switch of the starter unit is made to pulse on and off in an L-type timing turn off operation.
FIG. 15 is a flowchart of a method 100 in accordance with one novel aspect.
FIG. 16 is a waveform diagram of a transient response due to a C-type ballast. The starter unit detects this transient response and analyzes it and thereby determines that the starter unit is likely coupled to a C-type ballast.
FIG. 17 is a waveform diagram of a transient response due to an L-type ballast. The starter unit detects this transient response and analyzes it and thereby determines that the starter unit is likely coupled to an L-type ballast.
FIG. 18 is a waveform diagram that shows how the shape of the zero-crossing signal differs depending on whether the lamp is on or off.
FIG. 19 is a waveform diagram of a hot socket insert ballast type detection method.
FIG. 20 is a flowchart of a method in which a first method is used to determine ballast type in a situation in which a lighting fixture is in a first state (for example, the lamp is off and cold) whereas a second method is used to determine ballast type in a situation in which the lighting fixture is in a second state (for example, the lamp is on and hot).
FIG. 21 is a flowchart of a method involving a hot socket insert situation.



DETAILED DESCRIPTION
Reference will now be made in detail to background examples and some embodiments of the invention, examples of which are illustrated in the accompanying drawings.
FIG. 1 is a diagram of a system 1 for turning off a fluorescent lamp that includes a master unit 2 and a plurality of multi-lamp fluorescent light fixtures having fluorescent lamp starter units. For illustrative purposes, one multi-lamp fluorescent light fixture 3 is pictured in FIG. 1. Other multi-lamp fluorescent light fixtures of system 1 are not pictured. Multi-lamp fluorescent light fixture 3 includes two fluorescent lamps 4 and 5 and starter units 6 and 7 associated with each lamp, respectively. In this example, master unit 2 is an infrared occupancy detector involving a Passive InfraRed (PIR) sensor 8 and a multi-section fresnel lens 9. Using techniques well known in the art, master unit 2 detects motion of infrared emitters in the field of view of fresnel lens 9 and detects the lack of motion of such infrared emitter. If the master unit detects motion, then the master unit turns on or keeps on the fluorescent lamps of the fluorescent light fixtures of system 1. If, on the other hand, the master unit does not detect motion, then the master unit turns off the fluorescent lamps of system 1 to conserve electrical energy. In another example, master unit 2 includes an ambient light detector useable to indicate available ambient light. Based on the available ambient light, the master unit may turn off fluorescent lamps of the multi-lamp fixture 3 of system 1 to conserve electrical energy. In the illustration of FIG. 1, multi-lamp light fixture 3 includes a base portion 10, a translucent cover portion 11, the fluorescent bulbs or lamps 4 and 5, and their associated starter units 6 and 7, respectively. Ballasting inductances (not shown) are included with fluorescent lamps 4 and 5. Both the multi-lamp light fixture 3 and the master unit 2 are fixed to the ceiling 12 of a room in a building as shown. A wall switch 13 is connected by electrical wires 14 and 15 to all the light fixtures of system 1 in standard fashion so that a person in the room can manipulate the wall switch to turn on, and to turn off, the fluorescent lights. The electrical wires 14 and 15 are embedded in the walls and ceiling of the building. In the illustrated example, wire 14 is the LINE conductor, whereas wire 15 is the NEUTRAL conductor.
Master unit 2 has a radio-frequency (RF) transceiver (transmitter and receiver) for engaging in RF communication, including an RF communication 16 with the starter units 6 and 7 of system 1. As pictured, master unit 2 need not be connected to any hardwired electrical wiring in the building. The master unit 2 is a self-contained, battery-powered unit that is fixed to the ceiling 12 of the room illuminated by system 1. Master unit 2 can be easily fixed to ceiling 12 by application of adhesive tape or by a screw or other common attachment mechanism.
FIG. 2 is a circuit diagram of multi-lamp light fixture 3 of FIG. 1. The lamp 4 is provided with an L-type ballast 17, whereas the lamp 5 is provided with a C-type ballast 18. The C-type ballast 18 includes a capacitor 19 in series with an inductor 20, whereas the L-type ballast 17 includes only an inductor 45 and no series-connected capacitor. To turn on lamp 4, for example, the starter unit 6 forms an electrical connection between filaments 21 and 22 of lamp 4. A current then begins to flow from the AC mains LINE conductor 23, through wall switch 13 (which is closed in this example), through conductor 14, through ballast 17, through filament 21, through starter unit 6, through filament 22, through NEUTRAL conductor 15 and back to the AC mains. The filament heats and ionizes the ionizable gas in lamp 4. The starter unit 6 is then made to open the electrical connection. When current stops in the inductor of ballast 17, the voltage between the filaments 21 and 22 rises rapidly, and this strikes an arc through the gas in the lamp between the filaments, thereby turning on the lamp. The same basic turn on process is used to turn on lamp 5.
FIG. 3-8 illustrate steps in the process of turning off a lamp (for example, lamp 4) using a starter unit. Initially, lamp 4 is on as is illustrated in FIG. 3. A switch 99 in starter unit 6 is off (open). Current 24 flows through the lamp as illustrated. Next, as illustrated in FIG. 4, the turning off of lamp 4 is caused by receipt of a turn off command 25 received from master unit 2. Turn off command 25 instructs the starter unit 6 to turn off lamp 4. Next, as illustrated in FIG. 5, switch 99 closes such that current 24 now flows through the switch 99 in the starter unit and not through the lamp. Next, as illustrated in FIG. 6, the turn off of switch 99 is initiated. In this example, the switch is a MOS power transistor that is put into its linear mode of operation. A voltage clamp circuit is enabled and this is illustrated in FIG. 6 by showing switch 99 in a dashed representation. The voltage clamp circuit keeps switch 99 operating in its linear mode until the voltage across the filaments 21 and 22 drops to a predetermined voltage. Operation in the linear mode is illustrated in FIG. 7. When the voltage across the filaments drops sufficiently (as detected inside the starter unit by a rectified voltage falling to a predetermined voltage), then the voltage clamp circuit causes switch 99 to be fully turned off. As illustrated in FIG. 8, the switch 99 is fully off and the lamp 4 is off.
FIG. 9 is a perspective view of starter unit 6.
FIG. 10 is an exploded perspective view of starter unit 6. Starter unit 6 includes a first terminal 26, a second terminal 27, a power supply 28, fluorescent lamp interface circuitry 29, a microcontroller integrated circuit 30, an RF transceiver 31 and an antenna 32. This circuitry is disposed on a printed circuit board (PCB) 33 as illustrated. PCB 33 is disposed within a cylindrical cap 34. Terminals 26 and 27 extend downward through holes in a circular disk-shaped base portion (not shown) of PCB material. The circular edge of this disk-shaped base portion joins with the circular bottom edge of cap 34 and forms a circular bottom of starter unit 6.
Fluorescent lamp interface circuitry 29 includes a full wave rectifier 35 that receives a 230-volt alternating-current (AC) signal between terminals 26 and 27 and outputs a full wave rectified signal (VRECT) between nodes 36 and 37. Power switch 99 is the switch that is used to turn on, and to turn off, fluorescent lamp 4. Power switch 99 is a power field effect transistor (FET) that is controlled by microcontroller 30 via gate drive circuitry of circuitry 29. Microcontroller 30 drives the control electrode (the gate in this case) of switch 99 and controls and monitors the remainder of interface circuitry 29 via signals communicated across conductors 39. Microcontroller 30 monitors and traces the alternating current and voltage waveforms between nodes 36 and 37 using an analog-to-digital converter (ADC) that is part of the microcontroller. Microcontroller 30 monitors and traces the waveform of the current flowing through switch 99 by using its ADC to monitor a voltage dropped across a sense resistor 40. Microcontroller 30 uses an on-board comparator and a timer to detect and time zero-crossings and minima of the AC signals on nodes of the circuitry 29. Microcontroller 30 determines when and how to control switch 99 based on the detected voltage and current between nodes 36 and 37, the time of the zero-crossings of the AC signal on terminals 26 and 27, and the magnitude of current flowing through switch 99.
Power supply 28 receives the full wave rectified signal between nodes 36 and 37 and generates therefrom a direct current (DC) supply voltage VDD used to power microcontroller 30, RF transceiver 31, and interface circuitry 29. Power supply 28 includes a capacitance that is charged to the DC supply voltage VDD. This capacitance is large enough that it continues to power the microcontroller and RF transceiver of the starter unit for more than five seconds after the 230-volt AC power is removed from terminals 26 and 27. If the starter unit 6 is installed in light fixture 3, and if wall switch 13 is toggled on and off faster than once every five seconds, then interface circuitry 29, microcontroller 30, and transceiver 31 remain powered and operational.
Microcontroller 30 communicates with and controls RF transceiver 31 via a bidirectional serial SPI bus and serial bus conductors 42. In one embodiment, microcontroller 30 is a Z8F2480 8-bit microcontroller integrated circuit available from Zilog, Inc., 6800 Santa Teresa Blvd., San Jose, Calif. 95119. Microcontroller 30 includes an amount of non-volatile memory (FLASH memory) that can be written to and read from under software control during operation of starter unit 6. In one embodiment, RF transceiver 31 is a SX1211 transceiver integrated circuit available from Semtech Corporation, 200 Flynn Road, Camarillo, Calif. 93012. Transceiver 31 is coupled to antenna 32 via an impedance matching network 43 and a SAW filter 44 (see FIG. 6). The SAW filter may, for example, be a B3716 SAW filter available from the Surface Acoustic Wave Components Division of EPCOS AG, P.O. Box 801709, 81617 Munich, Germany. Antenna 32 may, for example, be a fifty ohm 0868AT43A0020 antenna available from Johanson Technology, Inc., 4001 Calle Tecate, Camarillo, Calif. 93012. RF transceiver 31 operates in a license free frequency band in the 863-878 MHz range (for example, about 868 MHz), in accordance with a reference design available from Semtech Corporation. The RF antenna and transceiver of starter unit 6 can receive an RF communication 16 (see FIG. 1) from master unit 2. The data payload of the communication 16 is communicated across SPI bus conductors 42 to microcontroller 30 for processing.
FIG. 11 is a more detailed circuit diagram of starter unit 6. A 230-volt, 60-Hz alternating current (AC) mains voltage is present between conductors LINE conductor 23 and NEUTRAL conductor 15. L-type ballast 17 includes inductor 45 but no series capacitor, whereas the alternative C-type ballast 46 includes an inductor 47 and a series capacitor 48. If C-type ballast 46 were being used rather than L-type ballast 17, then terminal 49 of the ballast 46 would be connected to filament 21 of lamp 4 and terminal 50 would be connected to LINE conductor 23. A capacitor 51 is connected across terminals 26 and 27. Reference numeral 54 identifies a thermal fuse. AC voltage across terminals 26 and 27 is rectified by a full-wave rectifier 35 so that a rectified voltage signal RECT is present across nodes 36 and 37. Reference numeral 99 identifies the switch. The microcontroller 30 (see FIG. 12) can turn on and off this switch 99 by driving digital control signals OFF and TMEN onto conductors 55 and 56, respectively. Components 57-66 form a voltage translation and gate drive circuit for switch 99. Components 67-70 form a voltage clamp for clamping the gate voltage of switch 99. Signal TMEN being a digital high enables the voltage clamp. OFF being a digital high turns off switch 99. Microcontroller 30 monitors the voltage VRECT between nodes 36 and 37 using a voltage divider of resistors 71 and 72 and a voltage follower 73. The resulting signal VMON is directly proportional to VRECT and is supplied to the ADC on microcontroller 30 via conductor 74. Microcontroller 30 monitors the current flowing through switch 99 by monitoring the voltage drop across current sense resistor 40 using voltage detecting circuitry 75-80. The resulting voltage signal IMON has a magnitude that is directly proportion to the current flowing through switch 99. Signal IMON is supplied to the ADC on microcontroller 30 via conductor 81. Microcontroller 30 detects zero-crossings of the 230 volt AC signal indirectly via voltage divider circuitry 82-85. The divided down voltage signal ZXMON is supplied to microcontroller 30 via conductor 86. Power supply circuit 28 supplies a 3.3 volt DC power supply voltage to microcontroller 30 and to RF transceiver integrated circuit 31 via conductor 87.
FIG. 12 is a simplified circuit diagram that shows microcontroller 30 being interfaced via SPI serial bus and conductors 42 to RF transceiver integrated circuit 31. The starter unit 6 can both receive and transmit RF signals via transceiver 31 and antenna 32.
In the turning off of fluorescent lamps using starter units, it has been recognized that when one of the two ballasts of a multi-lamp light fixture is of the L-type and the other of the two ballasts is of the C-type, that one of the two lamps may be turned off first. This may, for example, be due to the different type of turn off timing employed to turn off one lamp versus the other lamp. The first lamp may be turned off satisfactorily, but when the second lamp is then turned off then the on-state of the second lamp or the turn off of the second lamp may cause the first lamp to be ignited again. This may be due to electromagnetic interference from the second lamp turn off being received by the circuitry of the first lamp. In turn, in some cases, the first lamp being restarted may in turn cause the second lamp to be restarted at a later time. Regardless of the mechanism at work, a reliable solution to this problem is desired.
FIG. 13 is a waveform diagram that shows waveforms of signals in the turning off of a lamp using the starter unit 6 in a situation in which the ballast to which it is coupled is a C-type ballast. See for example, ballast 46 of FIG. 11 where the C-type ballast 46 is used rather than the L-type ballast 17. In the waveform diagram of FIG. 17, the signal ZXMON is the voltage signal on conductor 86, the signal GATE is the voltage signal on node 88 on the gate of transistor switch 99, the signal TMEN is the voltage clamp enable signal on conductor 56, and the signal IMON is the signal on conductor 81 that is proportional to the current flowing through switch 99. When the lamp 4 is to be turned off, the microcontroller 30 monitors the ZXMON signal to determine when a zero crossing of the AC mains signal occurs. The troughs 89-92 of the ZXMON signal indicate these times. At or slightly following one of the times, microcontroller 30 drives the digital signal OFF to a digital low. In the example of FIG. 13, this results in the gate signal GATE transitioning high at time T0 2.5 milliseconds after the zero crossing. Switch 99 is therefore turned on, and effectively shorts the nodes 36 and 37 across full-wave rectifier 35. The voltage ZXMON therefore falls to zero. The current through switch 99 as indicated by signal IMON in FIG. 13 rises and falls with a periodic wave shape that corresponds to a rectified sinusoidal wave shape because the AC signal supplied to the full-wave rectifier 35 input nodes is an AC signal. In the example of FIG. 13, the wave shape of the rectified sinusoid half-cycles of IMON are more pointed than the peaks of an ordinary rectified AC sinusoid.
Microcontroller 30 monitors the periodic IMON signal by taking ADC samples at a rate of about two hundred samples during the next twenty milliseconds. The microcontroller analyzes these samples to detect when the IMON signal reaches its minimum value at time T1 after having risen and fallen twice since time T0. Starting at time T1, microcontroller 30 waits a predetermined amount of time (for example, four milliseconds) and then initiates turn off of switch 99 by asserting the TMEN signal high at time T2. This causes the gate voltage on the gate of transistor 99 to decrease as illustrated such that transistor 99 begins operating in the linear mode. The high voltage VRECT on node 36 through clamp circuit 67-70 maintains the voltage on the gate of transistor 99 so that transistor 99 remains in the linear mode. VRECT decreases as energy drains from the ballast. When VRECT has decreased to a predetermined voltage (for example, 396 volts), then the clamp circuit 67-70 stops conducting current to node 88. The voltage on the gate of transistor 99 transitions to zero volts at time T3. This turns transistor 99 off. (The putting of switch 99 into the linear mode for a short amount of time so that shortly thereafter the gate voltage decreases to turn off the switch fully are sometimes generally referred to together as the turning “off” of the switch even though more properly considered the turn off operation actually involves a linear mode operation of short duration followed by switch turn off.)
FIG. 14 is a waveform diagram that shows waveforms of signals in the turning off of a lamp using the starter unit 6 in a situation in which the ballast to which it is coupled is an L-type ballast. See for example, ballast 17 of FIG. 11. Microcontroller 30 monitors ZXMON and determines when a zero crossing of the AC signal occurs. At or slightly following one of the times, microcontroller 30 drives the digital signal OFF to a digital low, thereby asserting the gate signal GATE on node 88 high at time T4. Switch 99 is turned on. The voltage ZXMON therefore falls to zero. The current through switch 99 as indicated by signal IMON in FIG. 14 rises and falls with a periodic wave shape that corresponds to a rectified sinusoidal wave shape. In the example of FIG. 14, the wave shape of the high peaks of IMON more closely resemble rectified sinusoid wave shapes than do the peaks in the waveform of FIG. 13.
Microcontroller 30 monitors the IMON wave by taking ADC samples and determines when the IMON signal reaches its minimum value at time T5 after having risen and fallen twice since time T4. Rather than waiting four milliseconds as in the example of FIG. 13, the microcontroller 30 asserts the TMEN signal high right away at time T6. In one example, the difference between times T1 and T2 in the situation of FIG. 13 is more than two milliseconds whereas the difference between times T5 and T6 in the situation of FIG. 14 is less than two milliseconds. The asserting of TMEN high causes the gate voltage on the gate of transistor 99 to decrease such that transistor 99 begins operating in the linear mode. The high voltage VRECT on node 36 through clamp circuit 67-70 maintains the voltage on the gate of transistor 99 so that transistor 99 remains in the linear mode. VRECT decreases as energy drains from the ballast. When VRECT has decreased to a predetermined voltage (for example, 396 volts), then the clamp circuit 67-70 stops conducting current to node 88. The voltage on the gate of transistor 99 transitions to zero volts at time T7. This turns transistor 99 off.
It has been found that using the turn off timing of FIG. 14 with L-type ballasts works better than does using the turn off timing of FIG. 13 with L-type ballasts. It has been found, however, that using the turn off timing of FIG. 14 with C-type ballasts can cause catastrophic failures of the switch transistor. If the switch 99 were to be controlled to begin turning off when the IMON signal was at its second minimum, then there would likely be too much energy remaining in the C-type ballast. When the switch is then put into its linear mode, the large amount of energy would overheat and destroy the switch transistor 99. The wait time between T1 and T2 in the timing of FIG. 13 is provided so that there will be less energy remaining in the ballast when switch 99 is put into the linear mode. Accordingly, the first type of timing is generally better for C-type ballasts and the second type of timing is generally better for L-type ballasts. To avoid the later turned-off lamp in a multi-lamp fixture from turning back on the other lamp that was just turned off, a method of using C-type timing to turn off both types of ballasts in a multi-lamp fixture has been used but sometimes the timing is such that lamps operating with L-type ballasts are not reliably turned off. Moreover, the starter unit does not have a way to determine if it is in a multi-lamp fixture or not, and therefore the L-type timing cannot be used even in situations in which the starter is not operating in a multi-lamp fixture.
FIG. 15 is a flowchart of a method 100 in accordance with one novel aspect. In a first step (101), the starter unit makes a determination as to whether the ballast coupled to the starter unit is likely an L-type ballast or is likely a C-type ballast. In one example, this determination is made in a new way as set forth in connection with FIGS. 16 and 17. If the determination is that the ballast is likely an L-type ballast, then the lamp is turned off in a first way (step 102) in a subsequent turn off operation. This first way may involve performing a sequence of multiple turn off operations, using C-type timing and L-type timing alternatingly from turn off operation to turn off operation, starting with a C-type timing. Where a C-type timing is denoted “C” with a capital C, and where an L-type timing is denoted “L” with a capital L, the pattern of timings used in a sequence of turn off operations may be a mix of timings such as “CLCCLCLC” for a number of attempts. If the lamp is not successfully extinguished, then the pattern may switch to another pattern, for example “CLCCCCCC”. The patterns are read left to right.
If, however, the determination in step 101 is that the ballast is likely a C-type ballast, then the lamp is turned off in a second way (step 103) in a subsequent turn off operation. This second way may involve performing a sequence of multiple turn off operations using C-type timing and substantially no L-type timing. By not using L-type timing, the risk of using L-type timing in combination with a C-type ballast and thereby destroying switch 99 in the starter unit is avoided. The pattern of timings used in a sequence of turn off operations may be designated “CCCCCCCC”.
Accordingly, if a C-type ballast and an L-type ballast are both provided in a multi-lamp fixture, then there will be times when attempts are being made to turn off both lamps of the multi-lamp fixture using the same C-type timing. The simultaneous turn off of both lamps reduces to incidence of a later turn off operation from reigniting a previously turned off lamp. Also, in the event a lamp coupled to an L-type ballast is not turned off using the weaker C-type timing, there will be a time when an attempt is made to turn off that lamp using L-type timing. The same method 100 is carried out in a starter unit, regardless of whether the starter unit is employed in a multi-lamp light fixture or is employed in a single-lamp light fixture.
FIGS. 16 and 17 are waveform diagrams that illustrate a novel way that the determination of the type of ballast can be made in step 101. Previously in the art attempts were made to determine ballast type based on differences in the saddle portion of the wave shape of the ZXMON signal. In FIG. 13, for example, notice that between troughs 89 and 90 the ZXMON wave shape has more of a saddle than does the ZXMON signal in FIG. 14. The differences between the high voltage during this saddle time and the low voltage during this saddle time was used in an attempt to detect whether the ballast was an C-type ballast or an L-type ballast, but this previously used Method was unreliable.
In the novel method set forth in FIGS. 16 and 17, the saddle shape of the ZXMON signal is not used but rather the periodicity of the IMON signal is detected and used as an indicator of the ballast type. The different ballast types are used to affect power factor and therefore the ballasts typically have different natural harmonic oscillating frequencies. In general, the capacitor of the C-type ballast is not small and has a fixed relationship with respect to the inductance L of the ballast for a given AC power signal frequency. For example, in a fifty hertz example for a 36 watt lamp, the inductance of the inductor in the C-type ballast may be 3.4 microhenrys and the series capacitance in the C-type ballast may be 3.4 microfarads. But regardless of the reason, the transient oscillatory response of current flow through the ballast and lamp back into the starter unit as a result of switching on of switch 99 is seen to differ depending on whether a C-type ballast is used or whether an L-type ballast is used. The magnitude of the period of the transient response is related to the natural oscillating frequency of the ballast, and is therefore indicative of whether the ballast is a C-type ballast or an L-type ballast.
FIG. 16 is a waveform diagram that shows the transient response of IMON that is detected by microcontroller 30 to determine that the ballast is likely a C-type ballast. In a preheat operation, the switch 99 is turned on as a result of the signal OFF transitioning low at time T8. Switch 99 is turned on so that current flows through the full-wave rectifier 35. Three rectified sinusoidal wave shapes are then seen in the IMON signal over the next twenty milliseconds as illustrated. This is a transient response and over time the period of the IMON signal settles to match the fifty hertz forced response due to the starter unit being driven with a fifty hertz AC signal. Microcontroller 30, however, monitors the IMON signal during the first twenty milliseconds. If it detects a first periodicity of IMON (for example, more than two pulses of IMON during this twenty millisecond time as illustrated in FIG. 16) then it determines that the ballast is likely a C-type ballast.
FIG. 17 is a waveform diagram that shows the transient response of the IMON signal that is detected by microcontroller 30 to determine that the ballast is likely an L-type ballast. In the preheat operation, the switch 99 is turned on at time T9. Microcontroller 30 monitors the IMON signal and if it detects a second periodicity of the IMON signal (for example, two pulses of IMON during the next twenty millisecond time) then microcontroller 30 determines that the ballast is likely an L-type ballast. Although the determining of the periodicity of the transient response is described here as occurring in a preheat cycle, this is just an example. The determination of the periodicity of the transient response may be performed at other times such as in response to the turning on of switch 99 during a lamp turn on or turn off operation. It is to be understood that the description of the operation of the fluorescent lamp light fixture and starter unit is a simplification. For a more detailed and accurate description and understanding, the actual detailed circuit can be built and/or simulated using a circuit simulator such as SPICE.
For additional details on how starter units turn off fluorescent lamps without using a wall switch and for details on RF-enabled starter units in a lighting system, see: 1) U.S. patent application Ser. No. 12/587,152 entitled “Registering A Replaceable RF-Enabled Fluorescent Lamp Starter Unit To A Master Unit,” filed on Oct. 1, 2009, and published as U.S. Pat. App. Pub. 2011/0080091; 2) U.S. patent application Ser. No. 12/587,130 entitled “Turning Off Multiple Fluorescent Lamps Simultaneously Using RF-Enabled Lamp Starter Units,” filed on Oct. 3, 2009, and published as U.S. Pat. App. Pub. 2011/0080106; 3) U.S. patent application Ser. No. 12/587,169 entitled “Dimming A Multi-Lamp Fluorescent Light Fixture By Turning Off An Individual Lamp Using A Wireless Fluorescent Lamp Starter,” filed on Oct. 3, 2009, and published as U.S. Pat. App. Pub. 2011/0080107; and 4) U.S. patent application Ser. No. 12/802,090 entitled “Rejecting Noise Transients While Turning Off A Fluorescent Lamp Using A Starter Unit,” filed on May 28, 2010, and published as U.S. Pat. App. Pub. 2011/0291581 (The subject matter of all four patent documents is incorporated herein by reference).
Hot Socket Insert Ballast Type Detection: There may be a requirement sometimes referred to as a “hot socket insert” requirement imposed on the starter unit whereby a starter unit in a functioning lighting fixture whose fluorescent lamp is on and hot is to be removed from the lighting fixture, and a second starter unit is then to be plugged into the lighting fixture such that the fluorescent lamp is to remain on. The newly inserted second starter unit is to operate thereafter in the lighting fixture as if it had been plugged into and installed in the lighting fixture when the lamp was off and cold.
Described above are methods for detecting ballast type by detecting a periodicity of the IMON signal during an initial portion of a preheat operation. FIG. 16 illustrates a waveform of an IMON signal during a preheat operation when the lighting fixture involves a C-type ballast. FIG. 17 illustrates a waveform of the IMON signal during a preheat operation when the lighting fixture involves an L-type ballast. Although the periodicity difference in the IMON signal is usable to detect ballast type in an ordinary preheat operation when the lighting fixture and lamp are in an off state, there may be problems with using the periodicity of the IMON signal to determine ballast type when the lighting fixture and lamp are in an on state. The same periodicity difference between the waveforms of FIG. 16 and FIG. 17 may not occur if such a preheat operation were to be performed on a lighting fixture whose lamp is on. Accordingly, in accordance with one novel aspect, the starter unit uses a first method to determine ballast type in a situation in which the lamp of the lighting fixture is off whereas the starter unit uses a second method to determine ballast type in a hot socket insert situation in which the lamp is on.
FIG. 18 is a waveform diagram that shows the shape of the zero-crossing signal ZXMON in a condition in which the lamp is on (upper waveform 200) and in a condition in which the lamp is off (lower waveform 201). The differences between these two wave shapes is usable by the starter unit to determine whether the starter unit is in a hot socket insert situation.
FIG. 19 is a waveform diagram associated with the second method of determining ballast type in a hot socket insert situation. The power switch 23 is turned on for a short amount of time (twenty milliseconds from T10 to T11) without turning on the voltage clamp (voltage clamp control signal TMEN is low and remains low). Rather than waiting an amount of time after the zero-crossing 202 to turn the power switch 99 on as is shown in the waveforms of FIG. 16 and FIG. 17, the power switch 99 is turned on at or substantially at the time T10 of the zero-crossing 202 as indicated in the waveforms of FIG. 19. The IMON signal has the wave shape indicated by waveform 203 if the ballast is a C-type ballast whereas the IMON signal has the wave shape indicated by waveform 204 if the ballast is an L-type ballast. Note that in this hot socket situation the periodicity of both waveforms 203 and 204 is the same or approximately the same for both ballast types, but the relative peak heights of the first and second peaks is quite different depending on ballast type. In the case of an L-type ballast, there is a substantial relative difference 205 in the height of the first and second peaks 206 and 207 of the IMON signal, whereas in the case of a C-type ballast there less of a relative difference 208 between the first and second peaks 209 and 210. The relative difference in the peak heights of the first and second peaks is therefore used to determine ballast type in a hot socket insert situation. The ADC of the microcontroller within the starter unit samples the IMON signal (at a rate of approximately two hundred samples in twenty milliseconds) to detect the amplitudes of the IMON signal peaks.
FIG. 20 is a flowchart of a method 211 in which a first method is used to determine ballast type in a situation in which the lighting fixture is in a first state (for example, the lamp is off and cold) whereas a second method is used to determine ballast type in a situation in which the lighting fixture is in a second state (for example, the lamp is on and hot). In a first step (step 212), the starter unit determines it needs to determine ballast type. Examples of conditions that may cause the starter unit to determine that it needs to determine ballast type include: 1) the starter unit experiences a power on reset condition due to the wall switch being turned on, 2) the starter unit experiences a power on reset condition due to a hot socket insert situation, and 3) the starter unit receives an command (for example, an incoming RF command) that instructs the starter unit to determine ballast type.
The starter unit then determines (step 213) whether the lighting fixture is in the first state (for example, the lamp is off and cold) or if the lighting fixture is in the second state (for example, the lamp is on and hot). In one example, the starter unit makes this determination by detecting the magnitude of the ZXMON zero-crossing signal at a time five milliseconds after the zero-crossing time. As indicated in FIG. 18, if the ZXMON zero-crossing signal has a voltage magnitude more than 1.5 volts (see the lower waveform 201) then it is determined that the lamp is off (the lighting fixture is in the first state), whereas if the ZXMON zero-crossing has a voltage magnitude less than 1.5 volts (see the upper waveform 200) then it is determined that the lamp is on (the lighting fixture is in the second state).
If the determination (step 213) is that the lighting fixture is in the first state, then the starter unit detects ballast type using a first method (step 214). In one example of the first method, the periodicity of the IMON signal is used to determine ballast type as indicated in FIGS. 16 and 17. Power switch 23 is turned on (step 215) at a first time (approximately five milliseconds after the zero-crossing of ZXMON). If the periodicity of the transient IMON signal is determined (step 216) to be more than a predetermined amount (for example, more than two peaks are detected in twenty milliseconds) then the ballast is determined to be a C-type ballast, whereas if the periodicity of the transient IMON signal is determined (step 216) not to be more than the predetermined amount then the ballast is determined to be an L-type ballast.
If the determination (step 213) is that the lighting fixture is in the second state, then the starter unit detects ballast type using a second method (step 217). Whereas the first method primarily uses a detected periodicity of the transient IMON signal to determine ballast type, the second method primarily uses other information about a peak or peaks (such as peak amplitude information) of the transient IMON signal to determine ballast type.
In one example of the second method, the relative difference in amplitude between the first two peaks of the transient IMON signal is used to determined ballast type as indicated in FIG. 19. The power switch is turned on (step 218) at a second time (approximately zero milliseconds after the zero-crossing of ZXMON). If the difference in amplitude between the first two peaks of the transient IMON signal is determined (step 219) to be more than a predetermined amount (for example, more than 1.0 volts) then the ballast is determined to be an L-type ballast, whereas if the difference in amplitude between the first two peaks of the transient IMON signal is determined (step 219) not to be more than the predetermined amount then the ballast is determined to he a C-type ballast. In the second method the power switch is turned on at the time of the zero-crossing rather than five milliseconds after the time of the zero-crossing because turning the power switch on five milliseconds after the time of the zero-crossing can distort the IMON peaks in unwanted ways such that the second method (involving peak amplitude detection) is rendered unreliable. Implementation of the control and decision-making method 211 depicted in FIG. 20 involves a set of processor-executable instructions stored in processor readable memory (in this case FLASH memory) in microcontroller 30 in starter unit 6. The processor of microcontroller 30 executes the set of instructions, thereby causing the various steps of the method 211 to be carried out.
FIG. 21 is a flowchart of a method 300 involving a hot socket insert situation. Initially (step 301), the lamp of the lighting fixture is on and a first replaceable starter unit is installed in the lighting fixture. Next (step 302), a user unplugs and removes the first starter unit from the lighting fixture during a time when the lamp is on. The lamp stays on even after the first starter unit has been removed. Next (step 303), a second replaceable starter unit is plugged into the lighting fixture in what is called a “hot socket insert”. The lamp continues to remain on. Due to being plugged into the lighting fixture, the second starter unit experiences a power on reset condition. As a consequence of powering up, the second starter unit determines (step 304) that it needs to determine ballast type. The second starter unit then determines (step 305) lighting fixture state (determines that whether the lamp is on or is off) by measuring the magnitude of the zero-crossing voltage signal ZXMON at a time five milliseconds after a zero-crossing. In this example, ZXMON is measured to be less than 1.5 volts and the lighting fixture is determined to be in the second state (lamp is on). The second starter unit then uses a ballast type detection method appropriate for detecting ballast type in a hot socket insert condition. Had the second starter unit determined that the lighting fixture was in the first state (lamp is off), then the second starter would have selected a ballast type detection method appropriate for detecting ballast type in a condition of the lamp being off.
Next (step 306), the second starter unit turns the power switch 23 on approximately at the time of the zero-crossing (see time T10 in FIG. 19) and the lamp is extinguished. The voltage clamp circuit of the second starter unit is, however, not enabled. The second starter unit then uses peak amplitude information of the IMON signal to determine ballast type. There are many ways the starter unit can do this. In one example, the second starter unit determines the difference in amplitude between the amplitude of the first peak of IMON and the amplitude of the second peak of IMON. If the difference is more than a predetermined amount, then the lighting fixture is determined to involve an L-type ballast otherwise the lighting fixture is determined to involve a C-type ballast. The second starter unit then turns the power switch off (step 308) without activating the voltage clamp such that the lamp is re-ignited. The ballast type determining method from steps 303 to 308 takes only a small amount of time such as approximately twenty milliseconds to complete. The lamp is only off during this small amount of time.
The determined information about ballast type is then usable by the second starter unit in the event the starter unit is later called upon to turn the lamp off. In a lamp turn off operation, as described above, the voltage clamp circuit is used. In a lamp turn off operation, if the switch is turned off at the wrong time when the lighting fixture involves a C-type ballast, so much energy may be discharged through the switch in such a short amount of time that the starter may be damaged. The determined information about ballast type is usable to select the appropriate turn off timing of either FIG. 13 or FIG. 14 so that satisfactory lamp turn off occurs without damaging the starter unit.
Although certain specific embodiments are described above for instructional purposes, the teachings of this patent document have general applicability and are not limited to the specific embodiments described above. Although system 1 for turning off a fluorescent lamp wirelessly using starter units is described as being powered by a 230-volt, fifty hertz AC mains voltage, system 1 can also be implemented in other electrical power environments. For example, starter units 6 and 7 can be used to turn off fluorescent lamps that are powered by sixty hertz alternating current. System 1 can be implemented equally well in different electrical power environments, such as those of North America and Europe. The starter unit functionality can be incorporated into other components such as ballasts and need not be provided as a replaceable unit of the form factor illustrated in FIG. 9. Accordingly, various modifications, adaptations, and combinations of various features of the described embodiments can be practiced without departing from the scope of the invention as set forth in the claims.

## Claims

1. A method comprising:
(a) making a determination whether a lighting fixture is in one of a first state and a second state;
(b) determining in (a) that the lighting fixture is in the first state, and then using a first method to detect a ballast type of a ballast in the lighting fixture; and
(c) determining in (a) that the lighting fixture is in the second state, and then using a second method to detect the ballast type of the ballast in the lighting fixture.

2. The method of claim 1, wherein the first state is a state in which a fluorescent lamp of the lighting fixture is off, and wherein the second state is a state in which the fluorescent lamp of the lighting fixture is on.

3. The method of claim 1, wherein a voltage signal is present across a fluorescent lamp of the lighting fixture, wherein the determination made in (a) involves making a determination about the voltage signal.

4. The method of claim 1, wherein a voltage signal is present across a fluorescent lamp of the lighting fixture, wherein the first method of (b) involves turning on a power switch at a time after a zero-crossing of the voltage signal, wherein the second method of (c) involves turning on the power switch at a zero-crossing of the voltage signal, wherein (a), (b) and (c) are performed by a replaceable fluorescent lamp starter unit, and wherein the power switch is a part of the replaceable fluorescent lamp starter unit.

5. The method of claim 1, wherein a voltage signal is present across a fluorescent lamp of the lighting fixture, wherein the first method of (b) involves turning on a power switch at a time after a zero-crossing of the voltage signal and then detecting a periodicity of a current flowing through the switch, and wherein second method of (c) involves turning on the power switch at a zero-crossing of the voltage signal and then detecting a difference in amplitude of peaks of a current flowing through the power switch, wherein (a), (b) and (c) are performed by a replaceable fluorescent lamp starter unit, and wherein the power switch is a part of the replaceable fluorescent lamp starter unit.

6. The method of claim 1, wherein (a), (b) and (c) are performed by a replaceable fluorescent lamp starter unit.

7. A method comprising:
(a) making a determination whether a lighting fixture is in one of a first state and a second state;
(b) determining in (a) that the lighting fixture is in the first state, and then using a first method to detect a ballast type of a ballast in the lighting fixture; and
(c) determining in (a) that the lighting fixture is in the second state, and then using a second method to detect the ballast type of the ballast in the lighting fixture, wherein the first method of (b) involves determining the ballast type based at least in part on a periodicity of a signal, and wherein the second method of (c) involves determining the ballast type substantially independent of the periodicity of the signal.

8. A method comprising:
(a) turning on a power switch of fluorescent lamp starter unit at a time of a zero-crossing of a voltage signal, wherein the voltage signal is indicative of a voltage present across a fluorescent lamp of a lighting fixture, wherein the fluorescent lamp is on immediately prior to the time of the zero-crossing;
(b) conducting a current through the power switch as a result of the turning on of the power switch in (a), wherein the current has a peak; and
(c) making a determination based at least in part on a characteristic of the peak, wherein the turning on of (a), the conducting of (b), and the making of the determination of (c) are performed by the replaceable fluorescent lamp starter unit.

9. The method of claim 8, wherein the characteristic of the peak is an amplitude of the peak.

10. The method of claim 8, wherein the determination made in (c) is a determination of a ballast type.

11. The method of claim 8, further comprising:
(d) based on the determination in (c) determining which one of a plurality of methods to use in a turning off the fluorescent lamp of the lighting fixture.

12. The method of claim 11, further comprising:
(e) turning the power switch off such that the fluorescent lamp is turned on.

13. The method of claim 12, wherein the fluorescent lamp is turned off at the time of the zero-crossing as a result of the turning on of the power switch of (a) and wherein the fluorescent lamp is turned on at another time as a result of the turning off the power switch in (e), and wherein there is less than one hundred milliseconds between the time of the zero-crossing and said another time.

14. A method comprising:
(a) turning on a power switch of fluorescent lamp starter unit at a time of a zero-crossing of a voltage signal, wherein the voltage signal is indicative of a voltage present across a fluorescent lamp of a lighting fixture, wherein the fluorescent lamp is on immediately prior to the time of the zero-crossing;
(b) conducting a current through the power switch as a result of the turning on of the power switch in (a), wherein the current has a first peak; and
(c) making a determination based at least in part on a characteristic of the first peak, wherein the turning on of (a), the conducting of (b), and the making of the determination of (c) are performed by the replaceable fluorescent lamp starter unit, wherein the current has a second peak that follows the first peak, and wherein the determination of (c) involves comparing an amplitude of the first peak to an amplitude of the second peak.

15. An apparatus adapted to be coupled to a lighting fixture, wherein the lighting fixture comprises a fluorescent lamp and a ballast, the apparatus comprising:
a first terminal;
a second terminal;
a power switch, wherein the power switch can be turned on such that a conductive path extends through the apparatus from the first terminal to the second terminal; and
means 1) for controlling the power switch, 2) for determining whether the lighting fixture is in a first state or is in a second state, and 3) in response to said determining, for selecting one of a plurality of ballast-type determining methods to use to determine a ballast type of the ballast.

16. The apparatus of claim 15, wherein the means is for controlling the power switch such that the fluorescent lamp is turned off at least in part due to the power switch being turned on.

17. The apparatus of claim 15, wherein the first state is a state of the fluorescent lamp being on, and wherein the second state is a state of the fluorescent lamp being off.

18. The apparatus of claim 15, wherein a first of the ballast-type determining methods involves determining the ballast type based at least in part on a periodicity of a current signal flowing through the power switch, and wherein a second of the ballast-type determining methods involves determining the ballast type based at least in part on an amplitude of one or more peaks of the current signal.

19. The apparatus of claim 15, wherein the power switch is a transistor, wherein the means includes a microcontroller, and wherein the microcontroller is coupled to control the transistor.

20. The apparatus of claim 15, wherein the apparatus is a replaceable fluorescent lamp starter unit, and wherein the replaceable fluorescent lamp starter unit is adapted to make physical contact with the lighting fixture via the first and second terminals.

21. An apparatus adapted to be coupled to a lighting fixture, wherein the lighting fixture comprises a fluorescent lamp and a ballast, the apparatus comprising:
a first terminal;
a second terminal;
a power switch, wherein the power switch can be turned on such that a conductive path extends through the apparatus from the first terminal to the second terminal; and
means 1) for controlling the power switch, 2) for determining whether the lighting fixture is in a first state or is in a second state, and 3) in response to said determining, for selecting one of a plurality of ballast-type determining methods to use to determine a ballast type of the ballast, wherein a first of the ballast-type determining methods involves turning on the power switch at a time after a voltage signal is at a zero crossing, wherein the voltage signal is a signal indicative of a voltage between the first and second terminals, and wherein a second of the ballast-type determining methods involves turning on the power switch at the time when the voltage signal is at the zero crossing.

22. An apparatus adapted to be coupled to a lighting fixture, wherein the lighting fixture comprises a fluorescent lamp and a ballast, the apparatus comprising:
a first terminal;
a second terminal;
a power switch, wherein the power switch can be turned on such that a conductive path extends through the apparatus from the first terminal to the second terminal; and
means 1) for controlling the power switch, and 2) for determining a ballast type of the ballast, wherein the determining of the ballast type involves turning on the power switch at a time when a voltage signal is at a zero crossing, wherein the voltage signal is a signal indicative of a voltage between the first and second terminals.

23. The apparatus of claim 22, wherein the determining of the ballast type further involves determining an amplitude of one or more peaks of a current signal, wherein the current signal is a current signal flowing through the power switch.

24. The apparatus of claim 22, wherein the apparatus is a replaceable fluorescent lamp starter unit, and wherein the replaceable fluorescent lamp starter unit is adapted to make physical contact with the lighting fixture via the first and second terminals.

25. An apparatus adapted to be coupled to a lighting fixture, wherein the lighting fixture comprises a fluorescent lamp and a ballast, the apparatus comprising:
a first terminal;
a second terminal;
a power switch, wherein the power switch can be turned on such that a conductive path extends through the apparatus from the first terminal to the second terminal; and
means 1) for controlling the power switch, and 2) for determining a ballast type of the ballast, wherein the determining of the ballast type involves turning on the power switch at a time when a voltage signal is at a zero crossing, wherein the voltage signal is a signal indicative of a voltage between the first and second terminals, wherein the determining of the ballast type further involves determining a difference in amplitude between an amplitude of a first peak of a current signal and an amplitude of a second peak of the current signal, and wherein the current signal is a current signal flowing through the power switch.

26. A fluorescent lamp starter unit adapted to be removably coupled to a lighting fixture, wherein the lighting fixture includes a lamp and a ballast, wherein the starter unit uses a first ballast type determining method to detect a ballast type of the ballast in conditions in which the lamp is off whereas the starter unit uses a second ballast type determining method to detect the ballast type of the ballast in other conditions in which the lamp is on.