[utility model content]
First purpose of the present utility model will overcome above-mentioned deficiency exactly, and a kind of mouse illuminating circuit that can arbitrarily be changed glow color and illumination mode by the user is provided.
Another purpose of the present utility model is to provide the mouse of using described illuminating circuit.
First purpose of the present utility model is achieved by the following technical solution:
The utility model mouse illuminating circuit comprises luminous tube, key switch, microcontroller and oscillating circuit:
Luminous tube is used to produce combined light;
Key switch provides triggering level to described microcontroller;
Microcontroller is controlled the dutycycle that exports luminous tube to respectively with the odd even number of times of triggering level generation and is switched between fixing or variation two states;
Oscillating circuit is for microcontroller provides work schedule.
Described luminous tube is the three-colour light-emitting pipe, comprises three light emitting diodes, is used for producing respectively three primary colors.
Electrically connect between the male or female of described luminous tube and the microcontroller and be provided with current-limiting resistance.
Preferably, at least two luminous tubes are arranged in parallel, and all electrically connect between each luminous tube and the microcontroller and are provided with on-off circuit, are used to accept the break-make of the signal controlling luminous tube of microcontroller.
Preferably, described on-off circuit is a transistor switching circuit.Be electrically connected with current-limiting resistance between the anode of described luminous tube and the microcontroller, perhaps, described current-limiting resistance can be arranged between the negative electrode and transistor switching circuit of luminous tube.
According to the content that first embodiment is disclosed, the anode of light emitting diode is connected with first pin of microcontroller by current-limiting resistance jointly in the described three-colour light-emitting pipe, and negative electrode then is connected with other pin of microcontroller one by one; Described key switch one end ground connection, the other end then are connected with the pin of the microcontroller in aforementioned not; Described oscillating circuit one end ground connection, second end is connected with the pin of the microcontroller in aforementioned not, and the other end then is connected with described first pin.
According to the content that second embodiment is disclosed, the anode of light emitting diode directly is connected with first pin of microcontroller in the described three-colour light-emitting pipe, and negative electrode then is connected with other pin of microcontroller by current-limiting resistance one by one; Described key switch one end ground connection, the other end then are connected with the pin of the microcontroller in aforementioned not; Described oscillating circuit one end ground connection, second end is connected with the pin of the microcontroller in aforementioned not, and the other end then is connected with described first pin.
The content that is disclosed according to the 3rd embodiment, homochromy light emitting diode in a plurality of three-colour light-emitting pipes is arranged in parallel, its anode is connected with first pin of microcontroller by current-limiting resistance jointly, and negative electrode then is connected with other pin of microcontroller by transistor switching circuit one by one; Described key switch one end ground connection, the other end then are connected with the pin of the microcontroller in aforementioned not; Described oscillating circuit one end ground connection, second end is connected with the pin of the microcontroller in aforementioned not, and the other end then is connected with described first pin.
The content that is disclosed according to the 4th embodiment, homochromy light emitting diode in a plurality of three-colour light-emitting pipes is arranged in parallel, its anode directly is connected with first pin of microcontroller, and each negative electrode then is connected with other each pin of microcontroller with transistor switching circuit by current-limiting resistance respectively successively; Described key switch one end ground connection, the other end then are connected with the pin of the microcontroller in aforementioned not; Described oscillating circuit one end ground connection, second end is connected with the pin of the microcontroller in aforementioned not, and the other end then is connected with described first pin.
Another purpose of the present utility model is achieved by the following technical solution:
Mouse of the present utility model has comprised the described mouse illuminating circuit of above-mentioned first purpose.The described key switch of this mouse illuminating circuit is arranged on the non-hand grasp area of mouse.
Compared with prior art, the utility model possesses following advantage: the dutycycle of level that is exported to the pin of each luminous tube by the operation push-button switch by microprocessor control, make the light that produces different colours and intensity between each luminous tube, thereby present multi colour effect, further, by described key switch is provided, provide a kind of function of personal settings for the user.
[specific embodiment]
Below in conjunction with drawings and Examples the utility model is further described:
See also Fig. 1, it has disclosed first embodiment of the illuminating circuit of the utility model mouse.Among this embodiment, described illuminating circuit comprises the current-limiting resistance R1 to R6 that each light emitting diode of two groups of three-colour light-emitting pipe LED1 and LED2, a microcontroller U1, key switch SW1, corresponding luminous tube LED1 and LED2 is provided with, and the oscillating circuit of being made up of capacitor C 1 and resistance R 7.
Wherein, (be denoted as R, G B) forms by the light emitting diode of Red Green Blue for every group of luminous tube LED1 and LED2, can be by the control intensity and the brightness of three kinds of each colors of dutycycle control of level of each luminous two pipe of flowing through, thus be combined into the light of different color.Each light emitting diode all has a pin, and microcontroller U1 is by the 2nd, 3,4,16,17,18 pins link to each other with the pin of each negative electrode of light emitting diode, and are connected with the anode pin of each light emitting diode by the 5th pin, by controlling the 2nd, 3,4,16,17, the dutycycle of 18 pins output just can be controlled the light on and off and the bright degree of each light emitting diode, reaches the purpose that is combined into different color.Wherein the 2nd is identical with 16 pin wave modes, and the 3rd is identical with 17 pin wave modes, and the 4th is identical with 18 pin wave modes, and the color of such two groups of luminous tubes could be harmonious.After microcontroller U1 starts working, the 2nd and 16 pins of microcontroller U1, the 3rd and 17 pins, the 4th and 18 pins are the wave mode that gradually changes in time of output duty cycle at random, like this, dutycycle is in variable condition, and luminous tube LED1 and LED2 will produce color and lightness and not stop the colour that changes.
In conjunction with Fig. 1 and Fig. 5, key switch SW1 one end ground connection, the 15th pin of the other end and microcontroller U1 electrically connects, after this key switch SW1 is pressed, for microcontroller U1 provides a triggering level, after the level that microcontroller U1 detects the 15th pin changes and adds their confirmation, its the 2nd and 16 pin, the 3rd and 17 pins, the 4th and 18 pin output duty cycles rest on current state, with the current fixing wave mode of output duty cycle output, like this, just to rest on stationary state constant for luminous tube LED1 and LED2.Wait until with key switch SW1 to produce once more in the triggering level always, the 15th pin of coupled microcontroller U1 has detected level once more change and be identified after, microcontroller U1 converts the state that aforementioned dutycycle is in variation again to.Like this, the parity of the number of times that is pressed with key switch SW1 is a distinguishing characteristics, and when number of times was odd number time, microcontroller U1 exported described two groups of luminous tubes to the fixing level of dutycycle; When number of times is even number time, the then level output that constantly changes with dutycycle.So, just, realized the function that luminous tube LED1 and LED2 switch between constant color and changes colour.
Each light emitting diode R of above-mentioned two groups of luminous tube LED1 and LED2, G between B and the microcontroller U1, can respectively be provided with a current-limiting resistance R1 to R6 and realize metering function.The 13rd pin of microcontroller U1 and reset resistor R8 one end electrically connect, and the other end of reset resistor R8 also inserts the 5th pin of microcontroller U1.The oscillating circuit of forming by capacitor C 1 and resistance R 7, capacitor C 1 one end ground connection, 7th pin of other end while with resistance R 7 and microcontroller U1 electrically connects, the other end of resistance R 7 then electrically connects with the 5th pin of microcontroller U1, so, oscillation circuit can be used to microcontroller U1 that work schedule is provided.Simultaneously, the 14th pin of microcontroller U1 also needs ground connection.
Please consult Fig. 2 again, it has disclosed second embodiment of the present utility model, it is a kind of distortion of first embodiment, electrical structure is basic identical with first embodiment, difference is among second embodiment R1 with sending and receiving light pipe LED1 among first embodiment and each negative electrode of LED2, R2, R3, R4, R5, R6 (referring to Fig. 1) removes, and luminous tube LED1 directly is connected with the 2nd, 3,4,16,17,18 pins of microcontroller respectively with the LED2 negative electrode, and the anode of luminous tube LED1 and LED2 then electrically connects by the 5th pin of shunt resistance R1 and microcontroller U1.
The function of present embodiment is identical with first embodiment, just optimize in global design, so same section is not given unnecessary details for this reason.
Fig. 3 has further disclosed the 3rd embodiment of the present utility model.The difference of the present embodiment and first embodiment is: the light-emitting diodes tube cathode of each color among luminous tube LED1 and the LED2 is connected in parallel in groups, again by current-limiting resistance R1, R2, R3 receives transistor switching circuit Q1, Q2, the colelctor electrode of Q3, the emitter stage of each triode is ground connection all, and transistor base is by resistance R 4, R5, R6 respectively with the 2nd of microcontroller U1,3,4 pins electrically connect, and microcontroller U1 is by resistance R 4, R5, R6 control triode Q1, Q2, the conducting of Q3 and ending, thereby the light on and off and the bright degree of light emitting diode are respectively organized in control, and this connection is the method that is adopted when the not enough pin that drives a luminous tube or microcontroller U1 of pin absorption electric current of microcontroller U1 meets a plurality of luminous tube LED1 and LED2 inadequately.
In like manner, other function of present embodiment is the same with first embodiment, does not give unnecessary details for this reason.
Please consult Fig. 4 again, it is the 4th embodiment of the present utility model, retrofits based on above-mentioned the 3rd embodiment.The luminous tube LED1 as shown in Figure 3 and the current-limiting resistance R1 of each negative electrode of LED2, R2, R3, R4, R5, R6 is removed in the present embodiment, luminous tube LED1 and LED2 negative electrode are directly and the Q1 of transistor switching circuit, Q2, the colelctor electrode of Q3 electrically connects, and anode then electrically connects by the 5th pin of current-limiting resistance R1 and microcontroller U1.
Because function and the 3rd embodiment of present embodiment are identical, so also not all right giving unnecessary details.
According to spirit of the present utility model, the quantity of described luminous tube and microcontroller model are unrestricted, can be a luminous tube, also can adopt a plurality of luminous tubes and deposit.When having a plurality of luminous tubes and depositing, adopt as the identical or similar mode of the various embodiments described above its access microcontroller is got final product.
When the utility model illuminating circuit is applied in the mouse, just fixed light is provided or has changed two kinds of selection modes of light for the mouse user, the user can be switched between this dual mode by the described key switch SW1 of flicking.For the design that makes mouse is tending towards rationally, should especially key switch SW1 be placed the non-hand grasp area of mouse case.
The utility model makes its applied product more meet user's requirement for the function that the user provides personal settings mouse illuminating circuit.
To sum up, the utility model is described in narrative mode all the time, and wherein employed term is intended to describe and unrestricted.According to above description, can make many further modifications to the utility model, also can do many variations according to actual needs.Therefore, in additional claim scope, the utility model can adopt various implementation to specifically described embodiment.