Multifunctional eyesight protection system based on single chip microcomputer
By integrating light intensity detection and ultrasonic ranging functions into the vision protection system, the problem of inaccurate distance measurement in the existing technology is solved, and the precise distance measurement and eye habit reminder functions of the multifunctional vision protection system are realized.
Patent Information
- Application Number
- CN202323035083.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-10
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2033-11-10
AI Technical Summary
Existing vision protectors based on microcontrollers cannot accurately measure the distance between the user's head and the desktop, and their functions are too single.
A multifunctional vision protection system based on a single-chip microcomputer is designed. It combines a light intensity detection circuit and an ultrasonic sensor, detects light changes through a photoresistor and a photosensitive chip, uses an ultrasonic sensor to measure distance, and records the sound wave propagation time through the timing function of the single-chip computer, and calculates Get the exact distance.
It achieves precise measurement of the distance between the user's head and the desktop, and reminds the user through a buzzer whether the user complies with eye usage regulations, which enhances the functional diversity and accuracy of the vision protection system.
Smart Images

Figure CN221841206U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of vision protection, in particular to a multifunctional vision protection system based on a single chip microcomputer. Background Art
[0002] Schools, teachers and society have always been concerned about the issue of vision protection for teenagers. There are many products and devices related to vision protection on the market, and a considerable number of these devices have begun to be used in people's lives.
[0003] For example, the Chinese patent publication number CN205068730U discloses a vision protector based on a single-chip microcomputer, including a single-chip microcomputer main control module, a distance measurement module, a photosensitive module, an alarm module and a power supply module for power supply. The single-chip microcomputer main control module adopts an STC89C52 single-chip microcomputer, and the distance measurement module, the photosensitive module and the alarm module are respectively connected to the single-chip microcomputer main control module.
[0004] The applicant found that although the vision protector disclosed in the above-mentioned comparative document measures the distance between the user and the desktop by combining the characteristics of the ultrasonic distance measurement principle, the applicant found that the above-mentioned distance measurement is relatively rough and cannot accurately measure the distance between the user and the desktop. Utility Model Content
[0005] In view of this, the purpose of the utility model is to propose a multifunctional vision protection system based on a single chip microcomputer to solve the problem that the existing vision protection circuit has too single function and cannot accurately measure the distance between the user's head and the desktop.
[0006] Based on the above purpose, the utility model provides a multifunctional vision protection system based on a single-chip microcomputer, including a single-chip microcomputer, and the single-chip microcomputer has a timing function, and also includes a light intensity detection circuit and an ultrasonic sensor, wherein the output ends of the light intensity detection circuit and the ultrasonic sensor are electrically connected to the input end of the single-chip microcomputer;
[0007] The light intensity detection circuit includes a photoresistor and a photosensitive chip, wherein the photoresistor is used to detect changes in light in the environment, and the photosensitive chip processes the light changes and transmits the processing results to the single-chip microcomputer for processing;
[0008] The ultrasonic sensor has a transmitting end and a receiving end. The transmitting end of the ultrasonic sensor emits ultrasonic waves, wherein the receiving end is used to receive the returned sound waves, and the timing function in the single chip microcomputer can record the time required for the ultrasonic sensor to emit and receive the sound waves.
[0009] Preferably, the single chip microcomputer is a STC89C52 single chip microcomputer, and the single chip microcomputer can complete the timing function through program writing.
[0010] Preferably, it also includes a battery for providing electrical energy to the protection circuit, and the battery is a 5V power supply, and the photosensitive chip is an ADC0832 chip.
[0011] Preferably, the ultrasonic sensor is a HC-SR04 ultrasonic sensor, and the HC-SR04 ultrasonic sensor has two piezoelectric chips and a conical resonance plate inside, and is a piezoelectric ultrasonic sensor made using the piezoelectric effect.
[0012] Preferably, a buzzer for buzzing prompts is also included, and the output end of the single-chip microcomputer is electrically connected to the input end of the buzzer.
[0013] Preferably, a display screen is further included, and the output end of the single chip microcomputer is electrically connected to the input end of the buzzer.
[0014] Beneficial effects of the utility model: the multifunctional vision protection system based on the single-chip microcomputer provided by the utility model can measure the light intensity through photoresistors and photosensitive chips. Since the single-chip microcomputer has a timing function, and the timing function in the single-chip microcomputer can record the time required for the ultrasonic sensor to emit sound waves and receive sound waves, the propagation speed of sound waves in the air is 340m / s, and the ranging distance formula is: ranging distance = (high level duration * 340m / s) / 2, so that the distance between the user's head and the desktop can be accurately measured, and the beeping of the buzzer is used to remind students whether their eye habits comply with regulations. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 It is a principle diagram of an embodiment of the utility model;
[0017] Figure 2 This is a circuit diagram of an ultrasonic sensor transmitting end transmitting ultrasonic waves according to an embodiment of the utility model;
[0018] Figure 3 A circuit diagram of an ultrasonic receiving end receiving ultrasonic waves according to an embodiment of the utility model;
[0019] Figure 4 This is a light intensity detection circuit diagram of an embodiment of the utility model.
[0020] In the figure: 1. single chip microcomputer; 2. light intensity detection circuit; 21. photoresistor; 22. photosensitive chip; 3. ultrasonic sensor; 4. battery; 5. buzzer; 6. display screen. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
[0022] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0023] like Figure 1 , Figure 2 , Figure 3 , Figure 4 As shown, a multifunctional vision protection system based on a single chip microcomputer includes a single chip microcomputer 1, and the single chip microcomputer 1 has a timing function, and also includes a light intensity detection circuit 2 and an ultrasonic sensor 3, wherein the output ends of the light intensity detection circuit 2 and the ultrasonic sensor 3 are electrically connected to the input end of the single chip microcomputer 1;
[0024] The light intensity detection circuit 2 includes a photoresistor 21 and a photosensitive chip 22. The photoresistor 21 is used to detect changes in light in the environment, and the photosensitive chip 22 processes the light changes and transmits the processing results to the single chip computer 1 for processing;
[0025] The resistance of the photoresistor 21 will be very large in a lightless environment, and the current flowing through it will be very small. However, once photons are irradiated on its surface, its internal structure will make it very easy to conduct, and the resistance value shown to the outside will decrease, thereby increasing the current flowing through it.
[0026] When the single-chip microcomputer 1 receives a voltage signal, the photosensitive chip 22 can convert the signal through the CHO pin, converting the incoming voltage into a digital signal. Then the chip receives the digital signal and transmits the pulse signal through the single-chip microcomputer 1. The CLK port of the clock signal of the single-chip microcomputer 1 receives the pulse signal through the P1.5 pin. After the signal reaches the chip, it is converted into a digital signal and transmitted to the single-chip microcomputer through D0 or D1. The two ports D0 and D1 cannot work together under the condition of communication, so they need to be used in parallel. The voltage signals under various light intensities are collected by the AD module to find voltage values that are harmless to eyesight.
[0027] The ultrasonic sensor 3 has a transmitting end and a receiving end. The transmitting end of the ultrasonic sensor 3 emits ultrasonic waves, wherein the receiving end is used to receive the returned sound waves, and the timing function in the single chip microcomputer 1 can record the time required for the ultrasonic sensor 3 to transmit and receive the sound waves.
[0028] The light intensity can be measured by the photoresistor 21 and the photosensitive chip 22. Since the single-chip microcomputer 1 has a timing function, and the timing function in the single-chip microcomputer 1 can record the time required for the ultrasonic sensor 3 to emit and receive sound waves, the propagation speed of sound waves in the air is 340m / s, and the ranging distance formula is: ranging distance = (high level duration * 340m / s) / 2, so that the distance between the user's head and the desktop can be accurately recorded.
[0029] In a preferred embodiment of the present invention, the single-chip microcomputer 1 is an STC89C52 single-chip microcomputer, and the single-chip microcomputer 1 can complete the timing function by programming. The programming of the program in the single-chip microcomputer 1 can complete the timing function. The time timing function depends on the timing subroutine. The following steps will be used in programming the timing subroutine: TOMD selects the working mode of the timer. This design adopts working mode 0, so TOMD=Ox01; sets the initial values of the counting registers TH0 and TL0; turns on the timer TO, and the timer starts timing, TR0=0; according to the overflow flag TF0 of the timing control register, it is determined whether the timer overflows. The timing of the timer is realized by calculating the number of pulses, and the number of pulses is generated by the oscillation frequency of the crystal oscillator.
[0030] In another preferred embodiment of the utility model, it also includes a battery 4 for providing electric energy to the protection circuit, and the battery 4 is a 5V power supply, and the photosensitive chip 22 is an ADC0832 chip.
[0031] In another preferred embodiment of the present invention, the ultrasonic sensor 3 is a HC-SR04 ultrasonic sensor, and the HC-SR04 ultrasonic sensor has two piezoelectric chips and a conical resonance plate inside, and is a piezoelectric ultrasonic sensor made using the piezoelectric effect.
[0032] like Figure 2 The piezoelectric chip can receive the vibration frequency of an ultrasonic signal of a certain frequency. The piezoelectric chip vibrates at the vibration frequency of its signal to generate ultrasonic waves. The commonly used driving methods of ultrasonic transmitters include: transistor emission drive circuit, time base circuit 555 emission drive circuit and CMOS gate circuit emission drive circuit.
[0033] The transistor has the characteristic of self-excited oscillation, and the transmitting port of HC-SR04 uses this characteristic to generate ultrasonic waves. TRI G triggers P1.0 of STC11 with a high level, and the timing pulse required for work is provided through the crystal oscillator circuit of STC11 itself. The transistor is used as a switch, and the base is controlled through the STC11 P5.3 port to control the MAX232 chip. MAX232 is connected to the transducer module through the level conversion module. When the former generates a high level, the latter's transmission power is increased, thereby emitting ultrasonic waves.
[0034] like Figure 3 When an ultrasonic signal is received, the sound signal is converted into voltage through the corresponding conversion circuit, and then the electrical signal is converted into a digital signal through the A / D module and amplified and handed over to the microcontroller for processing and calculation.
[0035] The process of ultrasonic sensor 3 measuring distance is as follows: the STC89C52 microcontroller I / O port inputs a high level of at least 10μs to the trigger end of the HC-SR04 ultrasonic sensor. The HC-SR04 ultrasonic sensor automatically sends 8 40KHz square waves and detects whether there is a signal returned. If there is a signal returned, the feedback end of the HC-SR04 ultrasonic sensor outputs a high level to the STC89C52 microcontroller. At this time, the timer is turned on until the microcontroller reads a low level. The value of the timer is the time of this distance measurement. The speed of sound wave propagation in the air is 340m / s. The distance measurement formula is: distance measurement = (high level duration * 340m / s) / 2.
[0036] It should be noted that a buzzer 5 for buzzing prompts is also included, and the output end of the single chip computer 1 is electrically connected to the input end of the buzzer 5 .
[0037] It should be noted that a display screen 6 is also included, and the output end of the single chip computer 1 is electrically connected to the input end of the buzzer 5 .
[0038] Information such as light intensity and distance will be displayed on the display screen 6, and the detected signal will be compared with the original set value to check whether the signal meets the requirements. If it does not meet the requirements, an alarm should be issued, and the user should be reminded to pay attention to eye hygiene when using it.
[0039] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.
[0040] The embodiments of the present invention are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A multifunctional vision protection system based on a single chip microcomputer, comprising a single chip microcomputer (1), wherein the single chip microcomputer (1) has a timing function, It is characterized in that It also includes a light intensity detection circuit (2) and an ultrasonic sensor (3), wherein the output ends of the light intensity detection circuit (2) and the ultrasonic sensor (3) are electrically connected to the input end of the single chip computer (1); The light intensity detection circuit (2) comprises a photoresistor (21) and a photosensitive chip (22), wherein the photoresistor (21) is used to detect changes in light in the environment, and the photosensitive chip (22) processes the light changes and transmits the processing results to the single-chip computer (1); The ultrasonic sensor (3) has a transmitting end and a receiving end. The transmitting end of the ultrasonic sensor (3) emits ultrasonic waves, wherein the receiving end is used to receive the returned sound waves, and the timing function in the single chip microcomputer (1) can record the time required for the ultrasonic sensor (3) to emit the sound waves and receive the sound waves.
2. The multifunctional vision protection system based on single chip microcomputer according to claim 1, It is characterized in that The single chip microcomputer (1) is a STC89C52 single chip microcomputer, and the single chip microcomputer (1) can complete the timing function by programming.
3. The multifunctional vision protection system based on single chip microcomputer according to claim 1, It is characterized in that It also includes a storage battery (4) for providing electric energy to the protection circuit, and the storage battery (4) is a 5V power supply, and the photosensitive chip (22) is an ADC0832 chip.
4. The multifunctional vision protection system based on single chip microcomputer according to claim 1, It is characterized in that The ultrasonic sensor (3) is a HC-SR04 ultrasonic sensor, and the HC-SR04 ultrasonic sensor has two piezoelectric chips and a conical resonance plate inside, and is a piezoelectric ultrasonic sensor made using the piezoelectric effect.
5. The multifunctional vision protection system based on single chip microcomputer according to claim 1, It is characterized in that It also includes a buzzer (5) for buzzing prompts, and the output end of the single-chip computer (1) is electrically connected to the input end of the buzzer (5).
6. The multifunctional vision protection system based on single chip microcomputer according to claim 5, It is characterized in that It also includes a display screen (6), and the output end of the single chip computer (1) is electrically connected to the input end of the buzzer (5).
