A microcontroller based electronic switch, comprising:
- a controllable switching circuitry, electrically connected between an LED load including a plurality of LEDs and a power source for controlling and delivering a DC power to said LED load;
- at least one detection device, for detecting at least one external control signal and convert said at least one external control signal into at least one message carrying sensing signal with at least one signal format;
- and
- a microcontroller designed to receive and interpret said at least one message sensing signal generated by said at least one detection device;
- wherein said at least one detection device is electrically coupled with said microcontroller;
- wherein said controllable switching circuitry is electrically coupled with said microcontroller, wherein said microcontroller outputs a control signal to control a conduction state or a cutoff state of said controllable switching circuitry according to said at least one message carrying sensing signal generated by said at least one detection device;
- wherein when said controllable switching circuitry is in said conduction state, said microcontroller further controls an electric power transmission level from said power source to said LED load according to said at least one signal format of said at least one message carrying sensing signal received from said at least one detection device;
- wherein said at least one signal format of said at least one message carrying sensing signal is a short voltage signal, a long voltage signal, a constant voltage signal, a plurality of said short voltage signals, a plurality of said long voltage signals or a combination of said short voltage signal and said long voltage signal;
- wherein said short voltage signal and said long voltage signal are defined by a signal time length of a voltage signal generated by said detection device;
- wherein when said signal time length of said voltage signal is equal to or shorter than a preset time interval, said voltage signal is said short voltage signal, wherein when said signal time length of said voltage signal is longer than said preset time interval, said voltage signal is said long voltage signal, or by said signal time length of a series of pulse signals consecutively generated;
- wherein when said microcontroller receives said at least one message carrying sensing signal, said microcontroller operates to activate a corresponding process according to said at least one signal format of said at least one message carrying sensing signal to perform at least one of illumination performance control modes including at least an on/off switch control mode, a dimming control mode, an illumination level switching control mode and a delay shutoff control mode;
- wherein said LED load connected to said microcontroller based electronic switch is confined to a configuration that said plurality of LEDs of said LED load are managed with an adequate in series and/or in parallel connections such that when incorporated with an adequate level setting of said DC power, an electric current passing through each LED of said LED load remains at a safety level such that a voltage V across each LED complies with an operating constraint of Vth<V <Vmax featuring electrical characteristics of each LED, wherein Vth is a minimum threshold voltage required to trigger each LED to start emitting light and Vmax is a maximum operating voltage across each LED to avoid a thermal damage or burning out of LED construction;
- wherein when said LED load is configured with a plurality of N number LEDs or N sets of parallel connected LEDs electrically connected in series, a working voltage VN across said LED load is confined in a domain between a minimum voltage equal to the sum of said threshold voltages of all LEDs or sets of parallel connected LEDs electrically connected in series and a maximum voltage equal to the sum of said maximum operating voltages of all LEDs or sets of parallel connected LEDs electrically connected in series, identically expressed as N×Vth<VN<N×Vmax.;
- and
- wherein said microcontroller is a programmable integrated circuit device or an application specific integrated circuit for generating said control signal.