A kind of controlling light illuminating apparatus of sewing machine
Technical field:
The invention belongs to sewing machine technique field, refer in particular to a kind of controlling light illuminating apparatus of sewing machine.
Background technology:
Sewing machine lamp circuit is in the past directly connected to power supply by a current-limiting resistance and LED lamp, with the on and off of a controlling switch lamp.Like this, the brightness of lamp is fixed, and the electric energy of consumption is constant, can not regulate, and can not adapt to different light environments, and can impact operator's eyesight.
Summary of the invention:
The object of this invention is to provide a kind of be applicable to varying environment, eyesight easy to use, that protected user energy-conservation again the controlling light illuminating apparatus of novel sewing machine of energy.
The present invention is achieved in that
A kind of controlling light illuminating apparatus of sewing machine, between main control chip power supply and main control chip, be electrically connected with testing circuit and the light sensor of control signal is provided, the pulse-width modulation output of main control chip is electrically connected with isolation optocoupler, and the pulse control signal control of isolation optocoupler output is with the brightness of the illuminating lamp of independent illumination power supply.
The control signal control of above-mentioned isolation optocoupler output with the brightness of the illuminating lamp of independent illumination power supply is: the main control chip positive source that the emitter of isolation optocoupler output and the emitter of the triode Q1 of peripheral hardware are electrically connected and are electrically connected after base stage, the series resistance R2 of mains lighting supply negative pole, collector electrode while and triode Q1 is electrically connected, and mains lighting supply positive pole is electrically connected with the collector electrode of triode Q1 after series resistance R1, illuminating lamp successively.
Above-mentioned testing circuit is resistance R 4 and the capacitor C 1 being connected in parallel, and after resistance R 4 and capacitor C 1 is in parallel, one end is with the negative pole of main control chip power supply and the ADI pin of main control chip is electrically connected, the other end is electrically connected with the pulse-width modulation output of main control chip.
Above-mentioned triode is NPN triode.
Above-mentioned illuminating lamp is more than one LED lamp.
The voltage of above-mentioned mains lighting supply is 5-12V.
Above-mentioned light sensor is photo resistance or phototriode or photoelectric tube.
One end of above-mentioned light sensor is electrically connected with the positive pole of main control chip power supply, the other end is electrically connected with the ADI pin of main control chip.
The advantage that the present invention gives prominence to is compared to existing technology:
1, the present invention is by the light of light sensor (photo resistance) testing environment, the illumination of environment is strong and weak different, cause photo resistance change in resistance, therefore by the variation of resistance R 4 voltages in testing circuit, main control chip just can estimate the now illumination power of environment, thereby controls the brightness of LED, and light conforms, light sensor has that measuring range is wide, easy to use, cheap, long transmission distance, be convenient to be arranged on various sewing machines, is applicable to various places.
2, the present invention regulates the brightness of LED automatically, has protected user's eyesight, has saved again energy.
Brief description of the drawings:
Fig. 1 is circuit diagram of the present invention.
Embodiment:
With specific embodiment, the invention will be further described below, referring to Fig. 1:
A kind of controlling light illuminating apparatus of sewing machine, between main control chip power supply 1 and main control chip U1, be electrically connected with testing circuit 2 and the light sensor of control signal is provided, the pulse-width modulation output PWM of main control chip U1 is electrically connected with isolation optocoupler U2, and the pulse control signal control of isolation optocoupler U2 output is with the brightness of the illuminating lamp 3 of independent illumination power supply VC.
The control signal control of above-mentioned isolation optocoupler U2 output with the brightness of the illuminating lamp 3 of independent illumination power supply VC is: the emitter 4 of isolation optocoupler U2 output and the emitter 5 of the triode Q1 of peripheral hardware be electrically connected and be electrically connected mains lighting supply negative pole, collector electrode 6 simultaneously with anodal electrical connection of main control chip power supply 1 after base stage 7, the series resistance R2 of triode Q1, mains lighting supply VC positive pole successively series resistance R1, illuminating lamp 3 is rear is electrically connected with the collector electrode 8 of triode Q1.
Resistance R 4 and the capacitor C 1 of above-mentioned testing circuit 2 for being connected in parallel, resistance R 4 with capacitor C 1 one end afterwards in parallel with the negative pole of main control chip power supply 1 and the ADI pin of main control chip U1 is electrically connected, the other end is electrically connected with the pulse-width modulation output PWM of main control chip U1.
Above-mentioned triode Q1 is NPN triode.
Above-mentioned illuminating lamp 3 is more than one LED lamp.
The voltage of above-mentioned mains lighting supply VC is 5-12V.
Above-mentioned light sensor is photo resistance R5 or phototriode or photoelectric tube.
One end of above-mentioned light sensor is electrically connected with the positive pole of main control chip power supply 1, the other end is electrically connected with the ADI pin of main control chip U1.
Operation principle of the present invention is:
In the time that surround lighting strengthens, photo resistance R5 resistance diminishes, and the voltage that now enters into master control new film UI pin ADL increases.Main control chip U1 is through computing, from the less PWM duty cycle signals of PWM pin output, (the low electricity of PWM is frequently effectively), thus reduce the output brightness of LED lamp.
The PWM pin of main control chip U1 is pulse-width modulation output, controls opening and turn-offing of triode Q1, thereby controls the brightness of sewing machine LED lamp.In the time that PWM pin output duty cycle changes, just can regulate the brightness of LED lamp.Isolation optocoupler U2 has played the effect of isolation, main control chip U1 power supply and LED lamp isolated from power, avoids interfering with each other.
Above-described embodiment is only one of preferred embodiment of the present invention, not limits practical range of the present invention with this, therefore: all equivalences of doing according to shape of the present invention, structure, principle change, within all should being covered by protection scope of the present invention.