Disclosure of Invention
The invention aims to provide a wake-up phototherapy device capable of lighting up in sections, so as to solve the problem that discomfort symptoms such as dizziness and fainting are easily caused in a whole day due to sudden alarm sound wake-up in the use process of the existing alarm clock in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: wake up phototherapy machine that segmentation is lighted, including control system, control system output PWM signal is three to the BOOST circuit, and PWM signal is pulse width adjustment signal promptly, wherein the duty cycle of PWM signal is three evenly increases, the BOOST circuit according to the time ratio of three high-low levels of PWM signal, stable output voltage signal is to the matrix luminescence unit, makes all luminous members in the matrix luminescence unit evenly slowly light in half an hour, and wherein the luminous luminance of matrix luminescence unit divides into ten grades.
Preferably, the control system starts to output the PWM signal half an hour before the preset time, the duty ratio of the PWM signal three output by the control system gradually increases, and the duty ratio of the PWM signal three-thirds level is gradually increased along with the time by matching with the matrix light emitting unit.
Preferably, the main control chip of the control system adopts a single chip microcomputer, the single chip microcomputer is further connected with an external crystal oscillator circuit, and the external crystal oscillator circuit is used as an external clock reference when the single chip microcomputer operates.
Preferably, the single chip microcomputer is powered through a BAT charging circuit, an external power supply is connected to the BAT charging circuit to supply power to the whole circuit, the BAT charging circuit further comprises a BAT battery, and the BAT battery is used for supplying power to the external crystal oscillator circuit through the single chip microcomputer to form a single chip microcomputer minimum system.
Preferably, the single chip microcomputer is further connected with a liquid crystal display unit for providing function options and displaying an operation state, and the hardware corresponding to the liquid crystal display unit is a dot matrix liquid crystal display screen.
Preferably, the dot matrix liquid crystal display screen is an LCD12864 liquid crystal display screen.
Preferably, the single chip microcomputer is further connected with a key control unit, the implementation circuit corresponding to the key control unit is a key control circuit, each key is predefined, and corresponding operation is implemented by pressing the key.
Preferably, the single chip microcomputer further outputs a second PWM signal to control the ringing circuit, and when the preset time is reached, the ringing sounds.
Preferably, the matrix light-emitting unit uses LED lamps as light-emitting members.
Preferably, the LED lamps are arranged in a 4 × 7 matrix to make the brightness of the matrix light emitting unit uniform.
Compared with the prior art, the invention has the beneficial effects that:
adjust luminance to the matrix luminescence unit through output PWM signal, make the LED lamp can be even slow bright, the light that uses a plurality of LED lamps realizes simulation sunshine, divide into ten grades with matrix luminescence unit whole luminance, make its inside all LED lamps become bright gradually in half an hour, consequently the user is after setting for the time of getting up, the LED lamp can light before half an hour, and divide into ten grades, evenly distributed is at the slow bright of this half an hour, the effect of appearing on the sun is simulated so, prevent that the user from waking up suddenly, lead to uncomfortable symptoms such as dizziness.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-10, the present invention provides a technical solution: the control system outputs PWM signals three to a BOOST circuit, the PWM signals are pulse width adjusting signals, the duty ratio of the PWM signals one is uniformly increased, the BOOST circuit stably outputs voltage signals to a matrix light-emitting unit according to the time ratio of three high and low levels of the PWM signals, the matrix light-emitting unit is enabled to uniformly and slowly light within half an hour, and the light-emitting brightness of the matrix light-emitting unit is divided into ten grades.
In the embodiment, the brightness of the matrix light-emitting unit is regulated and controlled by the single chip microcomputer outputting the PWM signals, so that the brightness of the matrix light-emitting unit is gradually increased within half an hour, the effect of simulating sunrise in early morning is achieved, a user is awakened, and uncomfortable symptoms such as dizziness caused by sudden awakening of an alarm clock are avoided.
PWM is Pulse Width Modulation.
Pulse width modulation basic principle: the control mode is to control the on-off of the switch device of the inverter circuit, so that a series of pulses with equal amplitude but inconsistent width are obtained at the output end, and the pulses are used for replacing sine waves or required waveforms. That is, a plurality of pulses are generated in a half cycle of an output waveform, and the equivalent voltage of each pulse is a sine waveform, so that the obtained output is smooth and has few low-order harmonics.
Specifically, the control system starts to output the PWM signal half an hour before the preset time, the duty ratio of the PWM signal three output by the control system gradually increases, and the duty ratio of the PWM signal three-thirds level is gradually increased along with the time by matching with the matrix light-emitting unit.
In the embodiment, the user presets the wake-up time, and half an hour before the preset time, the single chip microcomputer starts to output the PWM signal from the sleep state, so that the whole circuit operates.
The BOOST circuit is a switching power supply which maintains stable output by utilizing the on-off time ratio of a switching tube, is widely applied to electronic equipment in various industries to find the BOOST circuit with the characteristics of small size, light weight and high efficiency, and is an indispensable power supply framework.
The BOOST circuit also BOOSTs the voltage of the output PWM signal three to drive the matrix light emitting unit.
The duty ratio of the PWM signal with thirty grades is gradually increased along with time, namely, the brightness is improved by one grade every three minutes, and further the BOOST circuit synchronously improves the voltage by one grade every three minutes, so that the brightness of the matrix light-emitting unit is improved.
Specifically, a main control chip of the control system adopts a single chip microcomputer, the single chip microcomputer is further connected with an external crystal oscillator circuit, and the external crystal oscillator circuit is used as an external clock reference when the single chip microcomputer operates.
In this embodiment, the type of the single chip microcomputer is HT66F3195, and the single chip microcomputer is connected to an external crystal oscillator circuit, and the external crystal oscillator circuit is used as an external clock reference when the single chip microcomputer operates, so as to prevent the clock from stopping operating when the circuit does not supply power from the outside, which may cause an error in display time of the phototherapy unit when the circuit is restarted.
Specifically, the single chip microcomputer is powered through the BAT charging circuit, the external power supply is connected to the BAT charging circuit to supply power to the whole circuit, the BAT charging circuit further comprises a BAT battery, and the BAT battery is used for supplying power to the external crystal oscillator circuit through the single chip microcomputer to form a minimum system of the single chip microcomputer.
In this embodiment, external power source inserts BAT charging circuit, supplies power to the singlechip through BAT charging circuit, further maintains the operation of the minimum system of singlechip through the BAT battery, and in addition at the off-duty time of singlechip, when not exporting PWM signal promptly and control external circuit, singlechip dormancy maintains the oscillation of external crystal oscillator circuit through the BAT battery, keeps the external clock, reduces the consumption.
The external crystal oscillator circuit can also select an active crystal oscillator and adjust the active crystal oscillator into a corresponding circuit to be connected to the singlechip as external clock reference.
Specifically, the single chip microcomputer is further connected with a liquid crystal display unit for providing function options and displaying an operation state, and the hardware corresponding to the liquid crystal display unit is a dot matrix liquid crystal display screen.
In this embodiment, the user realizes interactive operation through dot matrix liquid crystal display and button control unit, if set up the wake-up time, closes operations such as alarm clock.
Specifically, the dot matrix liquid crystal display screen is an LCD12864 liquid crystal display screen.
In this embodiment, the LCD12864 refers to a 128 × 64 dot matrix liquid crystal module, and may adopt TN, HTN, FSTN, FFSTN, and VA types of liquid crystal panels according to the use environment or pricing.
Specifically, the single chip microcomputer is further connected with a key control unit, the implementation circuit corresponding to the key control unit is a key control circuit, each key is predefined, and corresponding operation is achieved by pressing the key.
In this embodiment, a plurality of keys are provided to control the single chip microcomputer, and corresponding operations are displayed through the liquid crystal display unit, so that operations such as alarm clock setting and alarm clock turning-off are realized.
Specifically, the singlechip further outputs a second PWM signal to control the ringing circuit, and when the preset time is reached, the ringing sounds.
In this embodiment, the ring in the ring circuit rings at a time preset by the user, and after the matrix light-emitting unit is completely lit, the user does not wake up to turn off the alarm clock ring, and then the ring rings to wake up the user.
Specifically, the matrix light-emitting unit adopts an LED lamp as a light-emitting piece.
In this embodiment, the LED lamp is selected as the light emitting element of the matrix light emitting unit, and the corresponding LED matrix circuit is used to illuminate.
In consideration of the brightness of the LED, the device structure corresponding to the outside of the circuit can be 10cm by 10cm in order to simulate the sunlight to light.
The singlechip is also connected with a burning port and used for burning the program in the singlechip.
Specifically, the LED lamps are arranged in a 4 × 7 matrix to make the brightness of the matrix light emitting unit uniform.
In this embodiment, the maximum voltage supplied to the matrix light-emitting unit by the BOOST circuit is 12V, the matrix light-emitting unit is an LED matrix circuit, and since the voltage for completely lighting the LED lamps is 1.5V, 4 LED lamps are connected in series to form one path, and then seven paths are connected in parallel, so that the brightness of the matrix light-emitting unit is uniform.
The working principle and the using process of the invention are as follows: the single chip microcomputer is powered by the BAT charging circuit, an external power supply is connected into the BAT charging circuit to supply power to the whole circuit, the BAT charging circuit further comprises a BAT battery, the BAT battery is used for supplying power to the external crystal oscillator circuit through the single chip microcomputer to form a minimum system of the single chip microcomputer, an external clock is maintained through the external crystal oscillator circuit, the single chip microcomputer stops sleeping half an hour before preset time, the type of the single chip microcomputer is HT66F3195, a PWM signal is started to be output, the duty ratio of the output PWM signal III is gradually increased, the duty ratio of the PWM signal is gradually increased along with time in cooperation with the duty ratio of a matrix light-emitting unit, the duty ratio of the PWM signal III is increased gradually, the PWM signal III output by the single chip microcomputer reaches the BOOST boosting circuit, the BOOST boosting circuit synchronously raises the voltage by one level every three minutes, the brightness of the matrix light-emitting unit is improved, all light-emitting elements in the matrix light-emitting unit are uniformly and slowly lightened within half an hour, the LED lamp array is characterized in that a plurality of keys are arranged to control a single chip microcomputer, corresponding operations are displayed through a liquid crystal display unit, so that operations such as alarm clock setting, alarm clock closing and the like are achieved, the maximum voltage supplied by a BOOST booster circuit to a matrix light-emitting unit is 12V, the matrix light-emitting unit is an LED matrix circuit, and because the voltage for completely lighting the LED lamps is 1.5V, 4 LED lamps are connected in series to form one path, seven paths are connected in parallel, and the brightness of the matrix light-emitting unit is uniform.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.