Patent ID: 7417378

Claim:
An apparatus for controlling a lighting lamp, which is included a security function, the lighting lamp controlling system comprising: a power circuit block (1) for driving the lighting lamp controlling system, an input power detection block (2) for supplying AC input power, a triac (TRC) driving block (3) for switching the lighting lamp, said lighting lamp adapted to be automatically turned on for a specific time period when the security function is set, a control block (4) consisting of a security switch (SW 2 ) for selecting a security mode from a regular lighting mode; a light emitting diode (LED) for indicating a status of the security mode according to manipulation of the security switch; an illuminance sensor set (CDS) to a predetermined illuminance threshold and adapted to detect a varying time period according to the predetermined illuminance threshold and to output an illuminance detection signal; a microcontroller (U 1 ) adapted to receive the illuminance detection signal from the illuminance sensor if the security mode is selected to control the lighting lamp; a timer adapted to measure time to identify when the specific time period has elapsed; and a peripheral circuit block, wherein, said microcontroller (U 1 ) detects the varying time period by determining when the illuminance detector detects a transition of an illuminance value from below the predetermined illuminance threshold to above the predetermined illuminance threshold and determining when the illuminance detector detects a transition of an illuminance value from above the predetermined illuminance threshold to below the predetermined illuminance threshold, sets an intermediate time between the two determined transitions to 12:00 PM on a virtual timepiece as a reference time, performs the security function by controlling the lamp to be automatically turned on for a specific time period at dusk, a specific time period at midnight and a specific time period at dawn, the specific time periods preset by the virtual timepiece according to the security mode selected by the user, and updates a turn on time of the lamp by automatically applying a varying value of the virtual timepiece which corresponds to a variation of a time between sunset and sunrise.