[go: up one dir, main page]

CN102592403A - Microcomputer eyesight protecting voice prompter - Google Patents

Microcomputer eyesight protecting voice prompter Download PDF

Info

Publication number
CN102592403A
CN102592403A CN201210045151XA CN201210045151A CN102592403A CN 102592403 A CN102592403 A CN 102592403A CN 201210045151X A CN201210045151X A CN 201210045151XA CN 201210045151 A CN201210045151 A CN 201210045151A CN 102592403 A CN102592403 A CN 102592403A
Authority
CN
China
Prior art keywords
circuit
ultrasonic
time
button
microcomputer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210045151XA
Other languages
Chinese (zh)
Other versions
CN102592403B (en
Inventor
朱兆优
黄翔
胡文龙
邓文娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
East China Institute of Technology
Original Assignee
East China Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by East China Institute of Technology filed Critical East China Institute of Technology
Priority to CN201210045151.XA priority Critical patent/CN102592403B/en
Publication of CN102592403A publication Critical patent/CN102592403A/en
Application granted granted Critical
Publication of CN102592403B publication Critical patent/CN102592403B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Emergency Alarm Devices (AREA)

Abstract

本发明涉及一种微电脑视力保护语音提示器。它采用单片机3为核心,包括超声波发射电路4、超声波反射接收电路5和光照度检测电路6,其特征是:单片机3由具有A/D采集功能的第一I/O口控制脚P1.2与照度检测电路6连接,光照度检测电路6包括光敏传感器16和取样电路17,光敏传感器16与取样电路17构成串联电路,从光敏传感器16与取样电路17之间的连接点接入到单片机3的第一I/O口控制脚P1.2作单片机3内A/D转换器的信号输入端。本发明还包括按键输入电路7、语音输出控制电路8、电池电压采样电路9和电源及电池充放电管理电路11。本发明在看书阅读过程中能及时提醒读者视距和光照。

Figure 201210045151

The invention relates to a voice prompter for microcomputer vision protection. It adopts the single-chip microcomputer 3 as the core, including the ultrasonic transmitting circuit 4, the ultrasonic reflection receiving circuit 5 and the illuminance detection circuit 6, and is characterized in that: the single-chip microcomputer 3 is controlled by the first I/O port P1.2 with A/D acquisition function and The illuminance detection circuit 6 is connected, the illuminance detection circuit 6 comprises a photosensitive sensor 16 and a sampling circuit 17, the photosensitive sensor 16 and the sampling circuit 17 form a series circuit, and the connection point between the photosensitive sensor 16 and the sampling circuit 17 is connected to the first part of the single chip microcomputer 3 An I/O port control pin P1.2 is used as the signal input end of the A/D converter in the single chip microcomputer 3 . The present invention also includes a key input circuit 7 , a voice output control circuit 8 , a battery voltage sampling circuit 9 and a power supply and battery charge and discharge management circuit 11 . The invention can remind the readers of the sight distance and light in time during the reading process.

Figure 201210045151

Description

微电脑视力保护语音提示器 Microcomputer vision protection voice prompter

技术领域 technical field

本发明属于电子技术领域,涉及一种微电脑视力保护语音提示器。主要提示人们在看书读报时,人眼与书应保持合适的距离、灯光应调节到适当的亮度,避免人们因不慎阅读引起眼睛疲劳而引起视力下降,造成近视。 The invention belongs to the field of electronic technology, and relates to a voice prompter for microcomputer vision protection. It mainly reminds people that when reading books and newspapers, the human eyes should keep an appropriate distance from the book, and the light should be adjusted to an appropriate brightness, so as to avoid eyesight loss and myopia caused by eye fatigue caused by careless reading.

背景技术 Background technique

目前,眼睛近视有低龄化的现象,有许多青少年年纪轻轻就带上了眼镜,究其原因,主要是(1)许多青少年看书时姿势不对,经常趴在桌面上看书,使眼睛距离书本太近;(2)看书时光照度不合适,使眼睛容易疲劳,长期这样导致视力下降;(3)看书时间过长,用眼过度等。 At present, there is a phenomenon of younger age myopia, and many teenagers wear glasses at a young age. The main reasons are (1) Many teenagers read books in the wrong posture, often lying on the table when reading, so that the eyes are too far away from the book. (2) Improper light illumination when reading books makes the eyes prone to fatigue, which will lead to vision loss for a long time; (3) Reading for too long, excessive use of eyes, etc.

现有技术主要针对坐姿和读写距离进行提示,从而对视力保护能起到一定的作用,如CN01127831.5,发明名称《多功能电子视力保护装置》,适用于由传感技术测量距离来进行视力保护的多功能电子视力保护装置;又如CN200520051053.2,发明名称《微电脑多功能学生视力保护文具盒》,学生读写姿势不正确或眼睛与文具盒直线距离少于太近时,感应报警装置自动接通,通过灯光或声音提醒学生改正,以避免学生的眼睛产生疲劳,从而防止近视眼的产生。 The existing technology mainly prompts for sitting posture and reading and writing distance, so as to play a certain role in vision protection. Multifunctional electronic vision protection device for vision protection; another example is CN200520051053.2, the invention name is "Microcomputer Multifunctional Student Eyesight Protection Pencil Box", when the student's reading and writing posture is incorrect or the straight line distance between the eyes and the pencil box is less than too close, the alarm will be triggered The device is automatically switched on, and reminds students to make corrections through light or sound to avoid eye fatigue of students and prevent myopia.

但是,因光线太强,光照到白色书本上就会有很强的光线反射到眼睛里,造成眼睛疲劳,这就是常说“光污染”;或光线太暗,为了看清字迹,就要努力睁大眼睛,时间一长也会造成视疲劳。这些由于光照度不佳,而造成视疲劳,也是引起视力下降,造成近视主要原因之一。因此,为保护青少年视力,使青少年健康成长,智能化的视力保护语音提示器,以便能实时检测和提示读书环境的光线强度,提醒保持合适的看书距离,将更加有利于保护青少年视力。 However, if the light is too strong, strong light will be reflected into the eyes when the light hits the white book, causing eye fatigue. This is often referred to as "light pollution"; Big eyes can also cause visual fatigue over time. These are due to poor illumination, which causes visual fatigue, which is also one of the main reasons for vision loss and myopia. Therefore, in order to protect the eyesight of teenagers and make them grow up healthily, an intelligent vision protection voice prompter can detect and prompt the light intensity of the reading environment in real time and remind them to keep a suitable reading distance, which will be more conducive to protecting the eyesight of teenagers.

发明内容 Contents of the invention

本发明的目的在于提供一种采用了计算机技术、电子信息处理技术设计具有超声波测距、灯光照明检测、时间计时、语音报警控制和电池充放电保护装置的微电脑视力保护语音提示器。 The object of the present invention is to provide a microcomputer eyesight protection voice prompter which adopts computer technology and electronic information processing technology to design and has ultrasonic distance measurement, lighting detection, time timing, voice alarm control and battery charge and discharge protection device.

本发明技术方案: Technical scheme of the present invention:

它采用单片机3为核心,包括超声波发射电路4、超声波反射接收电路5和光照度检测电路6,单片机3 由具有A/D采集功能的第一I/O口控制脚P1.2与光照度检测电路6连接,光照度检测电路6包括光敏传感器16和取样电路17,光敏传感器16与取样电路17构成串联电路,从光敏传感器16与取样电路17之间的连接点接入到单片机3 的第一I/O口控制脚P1.2,第一I/O口控制脚P1.2作单片机3内A/D转换器的信号输入端。 It uses a single-chip microcomputer 3 as the core, including an ultrasonic transmitting circuit 4, an ultrasonic reflection receiving circuit 5, and an illumination detection circuit 6. The single-chip microcomputer 3 is controlled by the first I/O port with A/D acquisition function P1. Connect, light intensity detection circuit 6 comprises photosensitive sensor 16 and sampling circuit 17, photosensitive sensor 16 and sampling circuit 17 constitute series circuit, connect the first I/O of single-chip microcomputer 3 from the connection point between photosensitive sensor 16 and sampling circuit 17 The port control pin P1.2, the first I/O port control pin P1.2 is used as the signal input end of the A/D converter in the single-chip microcomputer 3 .

所述的微电脑视力保护语音提示器,还包括按键输入电路7、语音输出控制电路8和电池电压采样电路9。 The microcomputer eyesight protection voice prompter also includes a key input circuit 7 , a voice output control circuit 8 and a battery voltage sampling circuit 9 .

所述的单片机3的芯片内部自带A/D转换器,片内含程序存储器、数据存储器和至少11个I/O口控制脚,其中至少有2个I/O口控制脚有A/D采集功能,所述的单片机3的芯片内置有晶振。采用片内晶振做系统时钟。 The inside of the chip of the single-chip microcomputer 3 is equipped with an A/D converter, and the chip contains program memory, data memory and at least 11 I/O port control pins, wherein at least 2 I/O port control pins have A/D Acquisition function, the chip of the single-chip microcomputer 3 has a built-in crystal oscillator. The on-chip crystal oscillator is used as the system clock.

所述的光敏传感器16为LXD/GB5-A1DPH光敏传感器,取样电路17中的取样电阻取2KΩ电阻。 The photosensitive sensor 16 is an LXD/GB5-A1DPH photosensitive sensor, and the sampling resistor in the sampling circuit 17 is 2KΩ.

光照度检测方法为:光敏传感器16与取样电路17串联后,由光敏传感器16感受光线的强弱,使采样电阻上的电压信号发生变化;这个受光线变化的电压送到单片机3 的第一I/O口控制脚P1.2进行A/D转换成数字量,经过单片机3程序设计完成软件标度变换算法计算出当前的光照度值,最后与标准值进行比较判断来控制语音报警提示;通过单片机3 的第一I/O口控制脚P1.2不断实时检测灯光照明度,实现光照度不足时的实时报警提示。 The illuminance detection method is: after the photosensitive sensor 16 is connected in series with the sampling circuit 17, the photosensitive sensor 16 feels the intensity of the light, so that the voltage signal on the sampling resistor changes; The O port control pin P1.2 performs A/D conversion into digital quantities, and the software scale conversion algorithm is designed to calculate the current illuminance value through the single-chip microcomputer 3 program design, and finally compared with the standard value to control the voice alarm prompt; through the single-chip microcomputer 3 The first I/O port control pin P1.2 continuously detects the light illumination in real time, and realizes real-time alarm prompts when the illumination is insufficient.

所述的单片机3通过第二I/O口控制脚P1.0输出超声信号波,并与超声波发射电路4的输入端连接,超声波发射电路4包括驱动电路12和超声波发射传感器13,超声信号通过驱动电路12放电后送到超声波发射传感器13,由超声波发射传感器13发射超声波信号。 Described single-chip microcomputer 3 outputs ultrasonic signal wave through the second I/O port control pin P1.0, and is connected with the input terminal of ultrasonic transmitting circuit 4, and ultrasonic transmitting circuit 4 comprises driving circuit 12 and ultrasonic transmitting sensor 13, and ultrasonic signal passes through The drive circuit 12 sends the discharge to the ultrasonic transmitting sensor 13, and the ultrasonic transmitting sensor 13 transmits an ultrasonic signal.

所述的单片机3的第三I/O口控制脚P3.3作为外部中断信号输入端与超声波反射接收电路5的输出端连接;超声波反射接收电路5包括超声接收传感器14和超声波反射解调电路15,超声波反射解调电路15进行信号放电大、限幅、带通滤波、检波、积分、整形后做外部中断信号,输送给单片机3的第三I/O口控制脚P3.3。 The third I/O port control pin P3.3 of the single-chip microcomputer 3 is connected with the output end of the ultrasonic reflection receiving circuit 5 as an external interrupt signal input end; the ultrasonic reflection receiving circuit 5 includes an ultrasonic receiving sensor 14 and an ultrasonic reflection demodulation circuit 15. The ultrasonic reflection demodulation circuit 15 performs signal discharge, amplitude limiting, band-pass filtering, wave detection, integration, and shaping to make an external interrupt signal, which is sent to the third I/O port control pin P3.3 of the single-chip microcomputer 3 .

所述的单片机3的具有A/D采集功能的第四I/O口控制脚P1.1作A/D采样信号输入端与电池电压采样电路9连接,电池电压采样电路9与锂电池22连接;当锂电池22工作放电到一定的电压值后,电池电压采样电路9采集此时的电池电压值送入单片机3进行计算比较处理,当采集到的电压值小于单片机3的内置的电池放电阀值Vt时,单片机3通过第五I/O口控制脚P3.7与欠压指示灯10连接,欠压指示灯10亮闪警示1分钟后自动进入掉电保护状态。 The fourth I/O port control pin P1.1 with A/D acquisition function of the single-chip microcomputer 3 is connected to the battery voltage sampling circuit 9 as the A/D sampling signal input terminal, and the battery voltage sampling circuit 9 is connected to the lithium battery 22 ; After lithium battery 22 work discharges to certain voltage value, battery voltage sampling circuit 9 gathers the battery voltage value of this moment and sends into single-chip microcomputer 3 to carry out calculation comparison processing, when the voltage value gathered is less than the built-in battery discharge valve of single-chip microcomputer 3 When the value is V t , the single chip microcomputer 3 is connected to the undervoltage indicator light 10 through the fifth I/O port control pin P3.

所述的单片机3的第六、第七和第八I/O口控制脚P3.0、P3.1、P3.4分别与3个按键K1、K2、K3连接,3个按键K1、K2、K3与按键输入电路7连接,其中: The sixth, seventh and eighth I/O port control pins P3.0, P3.1, P3.4 of the single-chip microcomputer 3 are respectively connected with 3 buttons K1, K2, K3, and 3 buttons K1, K2, K3 is connected with key input circuit 7, wherein:

第一个按键K1是复位报警键,即按下K1键后计时报警从零开始计数,当计数到与预置时间值相等时,发出报警提示“注意休息”;如果时间报警到了后,没有按下K1键,则每5分钟计时会报警提示一次“注意休息”; The first button K1 is the reset alarm button, that is, after pressing the K1 button, the timing alarm starts counting from zero, and when the count is equal to the preset time value, an alarm prompt "take a rest"; Press the K1 key, and the timer will alarm once every 5 minutes to prompt "Pay attention to rest";

第二个按键K2是计时时间设置键,计时时间有5种选择,为环状处理按键:第1次按下K2键,计时时间预置为30分钟,第2次按下K2键,计时时间预置为45分钟,第3次按下K2键,计时时间预置为60分钟,第4次按下K2键,计时时间预置为90分钟,第5次按下K2键,计时时间预置为120分钟,第6次按下K2键,计时时间又回到预置为30分钟;依次类推,成环状处理按键功能; The second button K2 is the timing time setting button. There are 5 options for the timing time. The preset is 45 minutes, press the K2 key for the third time, the timing time is preset to 60 minutes, press the K2 key for the fourth time, the timing time is preset to 90 minutes, press the K2 key for the fifth time, the timing time is preset 120 minutes, press the K2 key for the 6th time, the timing time returns to the preset value of 30 minutes; and so on, the key functions are processed in a loop;

第三个按键K3是超声测距设置键,设有5种超声测距设置选择,为环状处理按键:第1次按下K3键,超声测距预置为20cm,第2次按下K3键,超声测距预置为25cm,第3次按下K3键,超声测距预置为30cm,第4次按下K3键,超声测距预置为35cm,第5次按下K3键,超声测距预置为40cm,第6次按下K3键,超声测距又回到预置20cm。依次类推,成环状处理按键功能。 The third button K3 is the ultrasonic distance measurement setting key, which has 5 kinds of ultrasonic distance measurement setting options, and is a circular processing button: press K3 for the first time, and the ultrasonic distance measurement preset is 20cm, and press K3 for the second time key, the ultrasonic ranging preset is 25cm, press the K3 key for the third time, the ultrasonic ranging preset is 30cm, press the K3 key for the fourth time, the ultrasonic ranging preset is 35cm, press the K3 key for the fifth time, The ultrasonic distance measurement is preset to 40cm, press the K3 key for the 6th time, and the ultrasonic distance measurement returns to the preset value of 20cm. By analogy, the button functions are processed in a ring.

所述的单片机3的第九、第十和第十一I/O口控制脚P1.5、P1.6、P1.7作为语音输出控制信号端,与语音输出控制电路8的三个输入口A0、A1、A2连接,语音输出控制电路8包括语音存储电路与控制电路18和喇叭19。 The ninth, tenth and eleventh I/O port control pins P1.5, P1.6, P1.7 of the described single-chip microcomputer 3 are used as voice output control signal ends, and three input ports of the voice output control circuit 8 A0, A1, and A2 are connected, and the voice output control circuit 8 includes a voice storage circuit, a control circuit 18 and a loudspeaker 19.

所述的微电脑视力保护语音提示器,还包括电源及电池充放电管理电路11;电源及电池充放电管理电路11包括阻容降压整流电路20、充电指示灯28、电池充电管理芯片21、锂电池22、采样电路23、工作开关24、电子开关25、稳压块26、和纹波处理电路27; The microcomputer vision protection voice prompter also includes a power supply and battery charge and discharge management circuit 11; the power supply and battery charge and discharge management circuit 11 includes a resistance-capacitance step-down rectifier circuit 20, a charging indicator light 28, a battery charge management chip 21, a lithium battery Battery 22, sampling circuit 23, working switch 24, electronic switch 25, voltage stabilizing block 26, and ripple processing circuit 27;

系统正常工作供电时,锂电池22进行供电;锂电池22正极连接工作开关24,工作开关24内部是机械触点,当开关扳到B端,系统断电停止工作;当开关扳到A端系统接通电源开始工作;电子开关25的漏极与工作开关24的A端连接,电子开关25的源极接入到稳压块26的输入端Vi,电子开关25的管栅极与采样电路23连接;稳压块26把输入的电压进行降压稳压后从Vo端输出+5V,为视力保护提示器1提供工作电压;使用一个电容通过纹波处理电路27做纹波处理,并联连接到Vo输出端; When the system works normally to supply power, the lithium battery 22 supplies power; the positive pole of the lithium battery 22 is connected to the working switch 24, and the inside of the working switch 24 is a mechanical contact. Turn on the power and start working; the drain of the electronic switch 25 is connected to the A terminal of the working switch 24, the source of the electronic switch 25 is connected to the input terminal Vi of the voltage stabilizing block 26, and the tube grid of the electronic switch 25 is connected to the sampling circuit 23 connection; the voltage stabilizing block 26 steps down the input voltage and then outputs +5V from the Vo end to provide an operating voltage for the vision protection prompter 1; a capacitor is used for ripple processing through the ripple processing circuit 27, and is connected in parallel to Vo output;

锂电池22的充电采用220V交流阻容降压整流电路20实现;阻容降压整流电路20先使用一个电阻和一个电容并联,再与一个电阻串联后,串联电阻的另一端与视力保护提示器1的电源线及插头2连接,插头2连接220V交流电压上;阻容降压后接入到一个由4个二极管组成的整流电桥;整流电桥输出端并联接入一个由1000uF的电容和12V稳压管构成的滤波稳压电路,把输入的220V交流电压降压成12V稳压输出; The charging of the lithium battery 22 is realized by a 220V AC resistance-capacity step-down rectifier circuit 20; the resistance-capacity step-down rectifier circuit 20 first uses a resistor and a capacitor in parallel, and then connects a resistor in series, the other end of the series resistor is connected to the eyesight protection prompter The power line of 1 is connected to plug 2, and plug 2 is connected to 220V AC voltage; after the RC step-down, it is connected to a rectifier bridge composed of 4 diodes; the output end of the rectifier bridge is connected in parallel to a capacitor composed of 1000uF and The filter and voltage regulator circuit composed of 12V voltage regulator tube reduces the input 220V AC voltage to 12V voltage regulator output;

阻容降压整流电路20的输出端连接到充电指示灯28和采样电路23输入端;采样电路23通过2个电阻分压后接入到电子开关25;充电指示灯28的输出端接入到工作开关24和锂电池22的输入端,同时通过电阻R1、C1分别连接电池充电管理芯片21的VDD、VSS端,电池充电管理芯片21的Cout端连接Q1的栅极,Dout端连接Q2的栅极,Q1、Q2的漏极连接在一起,Q1、Q2的源极分别连接滤波稳压输出的负极和锂电池22的负极; The output terminal of the resistance-capacitance step-down rectifier circuit 20 is connected to the charging indicator light 28 and the input terminal of the sampling circuit 23; the sampling circuit 23 is connected to the electronic switch 25 after being divided by two resistors; the output terminal of the charging indicator light 28 is connected to the The working switch 24 and the input terminal of the lithium battery 22 are respectively connected to the VDD and VSS terminals of the battery charging management chip 21 through the resistors R1 and C1, the Cout terminal of the battery charging management chip 21 is connected to the grid of Q1, and the Dout terminal is connected to the grid of Q2. pole, the drains of Q1 and Q2 are connected together, and the sources of Q1 and Q2 are respectively connected to the negative pole of the filtered and stabilized voltage output and the negative pole of the lithium battery 22;

当视力保护提示器1的电源线及插头2插入交流220V电源插座时,瞬间通过采样电路23控制电子开关25断开,使锂电池22停止放电输出,这时为锂电池22充电;锂电池22充电管理由电池充电管理芯片21负责,当正常充电时,充电指示灯28亮;若电池充满电后,充电指示灯28灭。 When the power cord and plug 2 of the eyesight protection prompter 1 were inserted into the AC 220V power outlet, the electronic switch 25 was controlled by the sampling circuit 23 to disconnect instantly, so that the lithium battery 22 stopped discharging and outputting, at this moment, the lithium battery 22 was charged; the lithium battery 22 Charging management is in charge of by the battery charging management chip 21, and when charging normally, the charging indicator light 28 is on; If after the battery is fully charged, the charging indicator light 28 is off.

本发明操作简单,适用性强,在电路设计与编程技术上实现了模块化设计,“傻瓜化”操作,使得系统在看书阅读过程中能及时提醒读者,给读者带来很多方便。 The invention is simple in operation and strong in applicability, realizes modular design in circuit design and programming technology, and "dumb" operation, so that the system can remind readers in time during the reading process, bringing a lot of convenience to readers.

本发明实现了以下功能: The present invention has realized following function:

1、超声波准确测距,测距精度达到±1cm。 1. Ultrasonic accurate distance measurement, the distance measurement accuracy reaches ±1cm.

2、临界灯光照明度检测,临界照明度为400lx。 2. Critical lighting illumination detection, the critical illumination is 400lx.

3、“保持距离”报警提示:当检测到看书距离小于某设定距离(默认为30cm)时,表明人眼距离书本太近,则控制输出语音报警提示“保持距离”。 3. "Keep distance" alarm prompt: When it is detected that the reading distance is less than a certain set distance (default is 30cm), it indicates that the human eye is too close to the book, and the control output voice alarm prompts "Keep distance".

4、“光线太暗”报警提示:按照教室采光和照明卫生国家标准(GB7793-87),课桌面上的平均照明度不低于400lx(勒克斯)。因此,当检测灯光照明度小于400lx,表明照明度太小,则控制输出语音报警提示“光线太暗”。 4. "Light is too dark" alarm prompt: According to the national standard for lighting and lighting hygiene in classrooms (GB7793-87), the average illuminance on the classroom desktop is not less than 400lx (lux). Therefore, when the illuminance of the detected light is less than 400lx, it indicates that the illuminance is too small, and then the control outputs a voice alarm prompting "the light is too dark".

5、“注意休息” 报警提示:内部设计有时钟计数器,从看书开始启动时间计时,若看书时间超过某设定时间(默认为45分钟)时,则控制输出语音提示“注意休息”,以便提醒读者休息一会,使精神放松,提高学习效率。此后每5分钟语音提示一次“注意休息”,直到按下K1键后才重新按照预置计时时间进行计时报警。 5. "Pay attention to rest" alarm prompt: the internal design has a clock counter, which starts time counting from reading. If the reading time exceeds a certain set time (default is 45 minutes), it will control the output voice prompt "pay attention to rest" for reminder Readers take a break to relax their minds and improve their learning efficiency. After that, the voice prompts "take a break" every 5 minutes, and the timing alarm will not start again according to the preset timing time until the K1 key is pressed.

6、可设定计时时间:通过K2键可设置5档计时与报警,计时时间有5种选择,第1次按下K2键,计时时间预置为30分钟,第2次按下K2键,计时时间预置为45分钟,第3次按下K2键,计时时间预置为60分钟,第4次按下K2键,计时时间预置为90分钟,第5次按下K2键,计时时间预置为120分钟,第6次按下K2键,计时时间又预置为30分钟。 6. Timing time can be set: 5 levels of timing and alarm can be set through the K2 key. There are 5 options for the timing time. Press the K2 key for the first time and the timing time is preset to 30 minutes. Press the K2 key for the second time. The timing time is preset to 45 minutes, press the K2 key for the third time, the timing time is preset to 60 minutes, press the K2 key for the fourth time, the timing time is preset to 90 minutes, press the K2 key for the fifth time, the timing time The preset time is 120 minutes, press the K2 key for the 6th time, and the timing time is preset to 30 minutes.

7、可设定超声测距报警:通过K3键可设置5档超声测距与报警,第1次按下K3键,超声测距预置为20cm,第2次按下K3键,超声测距预置为25cm,第3次按下K3键,超声测距预置为30cm,第4次按下K3键,超声测距预置为35cm,第5次按下K3键,超声测距预置为40cm,第6次按下K3键,超声测距预置为20cm。 7. Ultrasonic ranging alarm can be set: 5 levels of ultrasonic ranging and alarm can be set through the K3 key. Press the K3 key for the first time, and the ultrasonic ranging preset is 20cm. Press the K3 key for the second time, and the ultrasonic ranging The preset is 25cm, press the K3 key for the third time, the ultrasonic ranging preset is 30cm, press the K3 key for the fourth time, the ultrasonic ranging preset is 35cm, press the K3 key for the fifth time, the ultrasonic ranging preset is 40cm, press the K3 key for the 6th time, the ultrasonic distance measurement preset is 20cm.

8、电源及电池充放电管理电路:220V交流降压给电池充电,由电池供电,具有电池电量检测与保护功能,以延长电池的使用寿命。 8. Power supply and battery charge and discharge management circuit: 220V AC step-down to charge the battery, powered by the battery, with battery power detection and protection functions to prolong the service life of the battery.

本发明特别适用于少年儿童在看书学习时及时提示看书姿势不对,提示光线是否不足或者眼睛距离课桌面书本太近的问题,还可实时检测与提醒教室等读书环境的灯光亮度是否合适,能有效地保护少年儿童的视力。 The present invention is especially suitable for juveniles and children to promptly remind them that their reading posture is wrong, prompting whether the light is insufficient or the eyes are too close to the desk and books in class, and it can also detect and remind in real time whether the light brightness of the reading environment such as classrooms is appropriate, which can be effective. Protect the eyesight of young children.

1、本发明可以很好地实现看书阅读时间的报警提醒,能对看书环境光线太弱报警提示,对看书距离太近可及时警示,可防止长时间过度用眼引起的疲劳,对保护眼睛视力有很好的适用性,为读者特别是儿童读者带来福音。 1. The present invention can well realize the alarm reminder of the reading time, can give an alarm to the reading environment light is too weak, can timely warn the reading distance is too close, can prevent the fatigue caused by excessive use of the eyes for a long time, and protect the eyesight It has good applicability and brings good news to readers, especially children readers.

2、在实现方法上采用了电子技术、控制技术和计算机技术,通过单片机控制整个系统的有序工作,控制超声波测距、光线亮度检测、语音存储输出以及电池充放电保护,使系统稳定、可靠的工作。 2. Electronic technology, control technology and computer technology are used in the realization method, and the orderly work of the whole system is controlled by the single-chip microcomputer, and the ultrasonic distance measurement, light brightness detection, voice storage output and battery charge and discharge protection are controlled to make the system stable and reliable. work.

3、在电路设计与编程技术上进行了模块化设计,“傻瓜化”操作,操作简单方便,易学好用,保证系统的安全性和可靠性。 3. Modular design is carried out in circuit design and programming technology, "fool-like" operation, simple and convenient operation, easy to learn and easy to use, ensuring the safety and reliability of the system.

附图说明 Description of drawings

图1、本发明实施例1的整体结构示意图。 Fig. 1 is a schematic diagram of the overall structure of Embodiment 1 of the present invention.

图2、本发明实施例1的单片机自动检测与控制部分电路连接示意图。 Fig. 2 is a schematic diagram of the circuit connection of the automatic detection and control part of the single-chip microcomputer in Embodiment 1 of the present invention.

图3 、本发明实施例1的超声波发射电路结构示意图。 Fig. 3 is a schematic structural diagram of an ultrasonic transmitting circuit according to Embodiment 1 of the present invention.

图4、本发明实施例1的超声波反射接收电路结构示意图。 FIG. 4 is a schematic structural diagram of an ultrasonic reflection receiving circuit according to Embodiment 1 of the present invention.

图5、本发明实施例1的光照度检测电路结构示意图。 FIG. 5 is a schematic structural diagram of an illumination detection circuit according to Embodiment 1 of the present invention.

图6、本发明实施例1的语音输出控制电路结构示意图。 FIG. 6 is a schematic structural diagram of a voice output control circuit according to Embodiment 1 of the present invention.

图7、本发明实施例1的电源与电池供电电路结构示意图。 Fig. 7 is a schematic structural diagram of the power supply and battery power supply circuit in Embodiment 1 of the present invention.

具体实施方式 Detailed ways

实施例1:它包括视力保护微电脑语音提示器的自动检测与控制电路,由单片机3(U1)来实现,如图2所示:单片机3作为微控制器是整个控制系统的核心,整个控制系统内部包含单片机3、超声波发射电路4,超声波反射接收电路5,光照度检测电路6,按键输入电路7,语音输出控制电路8、电池电压采样电路9、欠压指示灯10和电源及电池充放电管理电路11等电路部分构成。 Embodiment 1: it includes the automatic detection and control circuit of the vision protection microcomputer voice prompter, which is realized by the single-chip microcomputer 3 (U1), as shown in Figure 2: the single-chip microcomputer 3 is the core of the whole control system as a microcontroller, and the whole control system The interior includes single-chip microcomputer 3, ultrasonic transmitting circuit 4, ultrasonic reflection receiving circuit 5, illuminance detection circuit 6, key input circuit 7, voice output control circuit 8, battery voltage sampling circuit 9, undervoltage indicator 10, and power supply and battery charge and discharge management The circuit part such as circuit 11 is constituted.

本实施例中,单片机(U1)采用STC宏晶公司生产的、封装形式为SOP16的STC12C5402AD芯片,该单片机芯片内部自带A/D转换器,片内含2KB程序存储器、256字节数据RAM、11个I/O口控制脚(其中6个I/O口线有A/D采集功能),使用片内12MHz晶振。单片机通过9个I/O口管理控制周围所有的芯片和电路。其中单片机(U1)的P1.0作输出口用,与超声波发射电路4连接,作为输出发射超声波信号。超声波发射电路4由驱动电路12和超声发射传感器13组成。驱动电路12使用了一个中功率达林顿管或两个复合三极管放大驱动40KHz的超声波信号,驱动超声发射传感器13向外发射超声波信号。超声发射传感器13使用了T40-16传感器元件,它能接受工作频率为40KHz的交流信号,产生共振超声波发射到空间实现远距离传播。超声波具有方向性好、能够成为射线而定向传播等特点。 In this embodiment, the single-chip microcomputer (U1) adopts STC12C5402AD chip produced by STC Hongjing Company and packaged in SOP16. 11 I/O port control pins (6 of which have A/D acquisition function), using on-chip 12MHz crystal oscillator. The single-chip microcomputer manages and controls all surrounding chips and circuits through 9 I/O ports. Among them, P1.0 of the single-chip microcomputer (U1) is used as an output port, connected with the ultrasonic transmitting circuit 4, and used as an output to transmit ultrasonic signals. The ultrasonic transmitting circuit 4 is composed of a driving circuit 12 and an ultrasonic transmitting sensor 13 . The drive circuit 12 uses a medium-power Darlington tube or two composite triodes to amplify and drive the 40KHz ultrasonic signal, and drives the ultrasonic transmitting sensor 13 to emit ultrasonic signals. The ultrasonic transmitting sensor 13 uses a T40-16 sensor element, which can receive an AC signal with a working frequency of 40KHz, generate resonant ultrasonic waves and transmit them into space to realize long-distance transmission. Ultrasound has the characteristics of good directionality, can become ray and directional propagation and so on.

单片机3的P3.3作外部中断输入口用,与超声波反射接收电路5连接,作为外部中断触发信号。超声波反射接收电路5使用了超声波接收传感器14和超声波反射解调电路15。超声波接收传感器14采用R40-16传感器元件,它内部的陶瓷振子换能器在接收到超声波后能产生机械振动信号,并将其放大变换成电能量输出,实现对发送的超声波进行检测。R40-16传感器输出的信号直接送入到超声波反射解调电路15。超声波反射解调电路15使用了CX20106A专用集成电路,它能接收频率范围在30~60KHz波形,通过调节第5脚的电阻可设置接收的中心频率。当使用200k的电阻时,接收的中心频率为40KHz。然后对R40-16传感器传过来的的信号进行放大(总放大增益达80db)、滤波处理,最后作为外部中断信号送入单片机的P3.3脚。 P3.3 of the single-chip microcomputer 3 is used as an external interrupt input port, and is connected with the ultrasonic reflection receiving circuit 5 as an external interrupt trigger signal. The ultrasonic reflection receiving circuit 5 uses an ultrasonic receiving sensor 14 and an ultrasonic reflection demodulation circuit 15 . The ultrasonic receiving sensor 14 adopts R40-16 sensor element, and the ceramic vibrator transducer inside it can generate a mechanical vibration signal after receiving the ultrasonic wave, and amplify it and transform it into electrical energy output, so as to realize the detection of the sent ultrasonic wave. The signal output by the R40-16 sensor is directly sent to the ultrasonic reflection demodulation circuit 15 . The ultrasonic reflection demodulation circuit 15 uses a CX20106A ASIC, which can receive waveforms in the frequency range of 30-60KHz, and the center frequency of reception can be set by adjusting the resistance of the fifth pin. When using a 200k resistor, the center frequency of the receiver is 40KHz. Then the signal transmitted by the R40-16 sensor is amplified (the total amplification gain is 80db), filtered, and finally sent to the P3.3 pin of the microcontroller as an external interrupt signal.

单片机3的P1.2用作片内A/D转换器的信号输入端,与光敏传感器16、取样电路17构成的串联电路连接。光敏传感器LXD/GB5-A1DPH,取样电路是2KΩ电阻,光敏传感器16与取样电路17串联后,由光敏传感器16感受光线的强弱,使采样电阻上的电压信号发生变化。这个受光线变化的电压送到P1.2进行A/D转换成数字量,经过软件标度变换算法计算出当前的光照度值,最后与标准值进行比较判断来控制语音报警提示。通过P1.2不断实时检测灯光照明度,实现光照度不足时的实时报警提示。 P1.2 of the single-chip microcomputer 3 is used as the signal input terminal of the on-chip A/D converter, and is connected with the series circuit formed by the photosensitive sensor 16 and the sampling circuit 17 . For the photosensitive sensor LXD/GB5-A1DPH, the sampling circuit is a 2KΩ resistor. After the photosensitive sensor 16 is connected in series with the sampling circuit 17, the photosensitive sensor 16 senses the intensity of light, and the voltage signal on the sampling resistor changes. The voltage changed by the light is sent to P1.2 for A/D conversion into digital quantities, and the current illuminance value is calculated through the software scale conversion algorithm, and finally compared with the standard value to control the voice alarm prompt. Continuous real-time detection of light illumination through P1.2, to realize real-time alarm prompt when the illumination is insufficient.

单片机3 的P1.1用作片内A/D转换器的信号输入端,实时检测电池电压是否欠压。P1.1直接与电池电压采样电路9连接。电池电压采样电路由2个电阻串联,再与锂电池22并联构成,P1.1直接连接到两个电阻的中间。当电池正常供电时,电池电压值会逐渐减小,使两个电阻上的压降也发生变化。这个变化的压降传送到P1.1进行A/D转换成数字量,经过软件变换算法计算出当前的锂电池电压值,最后与极限值进行比较判断来控制是否应报警提示停止工作。当A/D采集到的锂电池的电压值小于其放电阀值Vt时,单片机3控制欠压指示灯10亮闪警示,欠压指示灯10亮闪警示1分钟后自动进入掉电保护状态。单片机3中的P3.7与欠压指示灯10连接,欠压指示灯10使用一个发光二极管。 P1.1 of the single-chip microcomputer 3 is used as the signal input terminal of the on-chip A/D converter, and detects whether the battery voltage is undervoltage in real time. P1.1 is directly connected with the battery voltage sampling circuit 9 . The battery voltage sampling circuit is composed of two resistors connected in series, and then connected in parallel with the lithium battery 22, and P1.1 is directly connected to the middle of the two resistors. When the battery supplies power normally, the battery voltage value will gradually decrease, so that the voltage drop across the two resistors will also change. The changed voltage drop is sent to P1.1 for A/D conversion into digital quantity, and the current lithium battery voltage value is calculated through the software transformation algorithm, and finally compared with the limit value to control whether to alarm and stop working. When the voltage value of the lithium battery collected by the A/D is less than its discharge threshold V t , the single-chip microcomputer 3 controls the undervoltage indicator 10 to flash for warning, and the undervoltage indicator 10 will flash for warning after 1 minute and then automatically enter the power-down protection state . P3.7 in the single-chip microcomputer 3 is connected with the undervoltage indicator light 10, and the undervoltage indicator light 10 uses a light emitting diode.

单片机3通过P3.0、P3.1、P3.4三个I/O口分别做K1、K2、K3按键,形成按键输入7,用作按键输入开关信号。按键输入7使用一个机械触点的按键元件,当K1按键被按下时给P3.0输入低电平(有效按键);没有被按下是,P3.0为高电平;当K2按键被按下时给P3.1输入低电平(有效按键);没有被按下是,P3.1为高电平;当K3按键被按下时给P3.4输入低电平(有效按键);没有被按下是,P3.4为高电平(无效按键)。K1键用于复位报警,K2键用于设置计时时间,K3键用于设置超声测距报警。 The single-chip microcomputer 3 uses three I/O ports of P3.0, P3.1, and P3.4 as K1, K2, and K3 buttons respectively to form a button input 7, which is used as a button input switch signal. Key input 7 uses a mechanical contact key component. When the K1 key is pressed, it inputs a low level (effective key) to P3.0; when it is not pressed, P3.0 is high level; when the K2 key is pressed When pressed, input low level to P3.1 (effective key); if not pressed, P3.1 is high level; when K3 key is pressed, input low level to P3.4 (effective key); If it is not pressed, P3.4 is high level (invalid key). The K1 key is used to reset the alarm, the K2 key is used to set the timing time, and the K3 key is used to set the ultrasonic distance measurement alarm.

单片机3通过P1.5、P1.6、P1.7三个I/O口作语音输出控制信号,与语音输出控制电路8连接。语音输出控制电路8由语音存储与控制电路18(U3)和喇叭19组成。语音存储与控制电路18(U3)使用了TRS3BM10A语音芯片,在TRS3BM10A语音芯片内部存放了3段语音,即是“保持距离”、“光线太暗”和“注意休息”,语音芯片的发出声音受单片机3的控制。喇叭19采用8Ω的扬声器器件。语音存储与控制电路18(U3)的A0、A1、A2三个脚分别与P1.5~P1.7三个I/O口连接,语音存储与控制电路18(U3)的P、N两个脚直接与喇叭19连接。当P1.5输出高电平时,喇叭发出“保持距离”的声音,当P1.6输出高电平时,喇叭发出“光线太暗”的声音,当P1.7输出高电平时,喇叭发出“注意休息”的声音。 The single-chip microcomputer 3 makes voice output control signals through three I/O ports of P1.5, P1.6 and P1.7, and is connected with the voice output control circuit 8. Voice output control circuit 8 is composed of voice storage and control circuit 18 (U3) and speaker 19. The voice storage and control circuit 18 (U3) uses the TRS3BM10A voice chip, which stores 3 sections of voice in the TRS3BM10A voice chip, namely "keep the distance", "the light is too dark" and "take a rest". MCU 3 control. The loudspeaker 19 adopts an 8Ω loudspeaker device. The three pins A0, A1, and A2 of the voice storage and control circuit 18 (U3) are respectively connected to the three I/O ports of P1.5~P1.7, and the two pins P and N of the voice storage and control circuit 18 (U3) Pin is directly connected with loudspeaker 19. When P1.5 outputs a high level, the speaker emits the sound of "keep the distance", when P1.6 outputs a high level, the speaker emits a sound of "the light is too dark", when P1.7 outputs a high level, the speaker emits a sound of "attention rest" sound.

整个系统采用+5V供电工作。供电电源及电池充放电管理11设计的比较简洁、实用。实际在正常工作时,系统采用锂电池供电。锂电池22使用了一节可充电、放电的9V锂电池。锂电池输出9V通过稳压块26进行降压稳压输出+5V。稳压块26(U5)使用了低压差的LM2940稳压芯片。锂电池22的正极电压经过工作开关24和电子开关25,再传送到LM2940稳压芯片(U5)的Vi输入端,经过LM2940降压稳压后从Vo端输出+5V电压提供给系统作工作电压。工作开关24使用了一个2个档的拨动开关,拨到B端时切断电源输出,拨到A端时接通电源供电。电子开关25使用了型号为SE2302的MOFET管,SE2302的栅极受采样电路23的控制,采样电路23使用了一个电阻和一个9013三极管,电阻的一端与工作开关24的A连接,电阻的另一端直接与三极管的集电极连接。当三极管的集电极输出为低电平时,使SE2302截止;当三极管的集电极输出为高电平时,使SE2302导通。三极管发射极接地,三极管的基极通过电阻与阻容滤波整流20输出端连接。阻容滤波整流20使用了一个电阻和一个涤纶电容串联进行阻容降压,然后再采用4个IN4001二极管进行整流,最后采用电解电容进行滤波和12V稳压二极管进行稳压输出12V直流电压。当视力保护提示器1的电源线及插头2插入交流220V电源插座时,瞬间通过采样电路23控制电子开关25断开,切断锂电池22的电压输出,这时即可为锂电池22充电。锂电池22充电管理由电池充电管理芯片21(U4)负责,当正常充电时,充电指示灯28亮;若电池充满电后,充电指示灯28灭。当充电结束后,将视力保护提示器1的电源线及插头2拔出,把工作开关24拨到A端,即可启动工作。 The whole system works with +5V power supply. The design of power supply and battery charge and discharge management 11 is relatively simple and practical. In actual normal operation, the system is powered by a lithium battery. The lithium battery 22 has used a 9V lithium battery that can be charged and discharged. The lithium battery outputs 9V through the voltage stabilizing block 26 to step down and stabilize the voltage to output +5V. The voltage regulator block 26 (U5) uses a low-dropout LM2940 voltage regulator chip. The positive electrode voltage of the lithium battery 22 passes through the working switch 24 and the electronic switch 25, and then is transmitted to the Vi input terminal of the LM2940 voltage regulator chip (U5). . Working switch 24 has used a toggle switch with 2 gears, cuts off the power supply output when dialing to the B end, connects the power supply when dialing to the A end. The electronic switch 25 uses a MOFET tube of the model SE2302. The gate of the SE2302 is controlled by the sampling circuit 23. The sampling circuit 23 uses a resistor and a 9013 transistor. One end of the resistor is connected to A of the working switch 24, and the other end of the resistor Connect directly to the collector of the transistor. When the collector output of the triode is low level, SE2302 is cut off; when the collector output of the triode is high level, SE2302 is turned on. The emitter of the triode is grounded, and the base of the triode is connected to the output end of the resistance-capacitance filter rectifier 20 through a resistor. The RC filter and rectifier 20 uses a resistor and a polyester capacitor in series for RC step-down, then uses 4 IN4001 diodes for rectification, and finally uses electrolytic capacitors for filtering and 12V Zener diodes for voltage stabilization to output 12V DC voltage. When the power cord and plug 2 of the eyesight protection prompter 1 are inserted into the AC 220V power socket, the electronic switch 25 is controlled by the sampling circuit 23 to disconnect instantly, and the voltage output of the lithium battery 22 is cut off, and the lithium battery 22 can be charged at this moment. The charging management of the lithium battery 22 is in charge of the battery charging management chip 21 (U4). When charging normally, the charging indicator 28 is on; if the battery is fully charged, the charging indicator 28 is off. After the charging is finished, the power cord and the plug 2 of the eyesight protection prompter 1 are pulled out, and the work switch 24 is shifted to the A end, and the work can be started.

电池充电管理芯片21(U4)使用了可充电电池保护芯片R5402N,由图7所示,芯片的引脚Cout、Dout分别连接了一个MOFET管SE2302(Q1、Q2)。在给锂电池充电时,R5402N芯片检测VDD引脚上的电压。当VDD由低变高且超过了充电检测器的阀值电压时,表示芯片检测到此时过充电,Cout脚输出低电平,外部控制N沟道MOFET管Q1被关断。在锂电池放电时,R5402N芯片检测VDD引脚上的电压。当VDD由高变低且小于了放电检测器的阀值电压时,表示芯片检测到此时过放电,Dout脚输出低电平,外部控制N沟道MOFET管Q2被关断。 The battery charging management chip 21 (U4) uses a rechargeable battery protection chip R5402N. As shown in Figure 7, the pins C out and D out of the chip are respectively connected to a MOFET tube SE2302 (Q1, Q2). When charging the lithium battery, the R5402N chip detects the voltage on the V DD pin. When V DD changes from low to high and exceeds the threshold voltage of the charging detector, it means that the chip detects overcharging at this time, the C out pin outputs a low level, and the externally controlled N-channel MOSFET Q1 is turned off. When the lithium battery is discharging, the R5402N chip detects the voltage on the V DD pin. When V DD changes from high to low and is less than the threshold voltage of the discharge detector, it means that the chip detects over-discharge at this time, the D out pin outputs a low level, and the externally controlled N-channel MOSFET Q2 is turned off.

此外,系统单片机内部还设计了一个数字电子钟计时器,进行时间的计时与比较判断。当接通电源时,启动系统开始工作,单片机内部定时器/计数器也开始计时工作。当计时达到预置值(如45分钟)时,单片机控制I/O口P1.7输出高电平,使喇叭19发出“注意休息”的声音,提醒读者休息一会,使精神放松,以便提高学习效率。 In addition, a digital electronic clock timer is designed inside the system microcontroller to measure and compare the time. When the power is turned on, the startup system starts to work, and the internal timer/counter of the microcontroller also starts to count. When the timing reaches the preset value (such as 45 minutes), the single-chip microcomputer controls the I/O port P1.7 to output a high level, making the speaker 19 emit the sound of "pay attention to rest", reminding the reader to take a rest for a while, to relax the mind, so as to improve Learning efficiency.

采样这种方式可以实现很高的安全性,即在使用时完全由电池进行低压供电,如果视力保护提示器1的电源线及插头2插入市电后,设备立即切断内部电源供电,使系统停止工作,做到充电时不供电,供电时不接市电和充电,使小孩儿童在使用设备时安全可靠。 This method of sampling can achieve high safety, that is, the battery is completely powered by low voltage when in use. If the power cord and plug 2 of the vision protection reminder 1 are plugged into the mains, the device will immediately cut off the internal power supply and stop the system. Work, do not supply power when charging, and do not connect to the mains and charge when powering, so that children and children are safe and reliable when using the device.

1、本实施例各部分连接方法如下: 1. The connection method of each part of this embodiment is as follows:

本发明将单片机3(U1)、超声波发射电路4,超声波反射接收电路5,光照度检测电路6,按键输入电路7,语音输出控制电路8、电池电压采样9、欠压指示10、电源及电池充放电管理电路11设计、安装在PCB电路板上,使用外壳封装形成微电脑视力保护语音提示器1主机,外壳引出220V交流市电电源线及插头2。将电源线及插头2的插头插入电源插座,就可开始工作。 The present invention combines a single-chip microcomputer 3 (U1), an ultrasonic transmitting circuit 4, an ultrasonic reflection receiving circuit 5, an illumination detection circuit 6, a key input circuit 7, a voice output control circuit 8, a battery voltage sampling 9, an undervoltage indication 10, a power supply and a battery charging The discharge management circuit 11 is designed and installed on the PCB circuit board, and is packaged with a shell to form the host of the microcomputer vision protection voice prompter 1, and the shell leads out a 220V AC mains power line and a plug 2. Insert the power cord and the plug of plug 2 into the power socket to start working.

2、本实施例各操作步骤如下: 2. The operation steps of this embodiment are as follows:

将电源线及插头2的插头插入交流市电电源插座,设备就可开始工作。 Insert the plug of the power cord and plug 2 into the AC mains power socket, and the device can start to work.

(1)超声测距设置。通过K2键可设置5档超声测距与报警,最小测距报警为20cm,即超声测距20cm就发出报警“保持距离”。若按下K2键一次,测距报警为25cm;再按下一次K2键,测距报警设为25cm;再按下一次K2键,测距报警设为30cm;再按下一次K2键,测距报警设为35cm;再按下一次K2键,测距报警设为40cm;再按下一次K2键,测距报警又设回到20cm。 (1) Ultrasonic ranging settings. The K2 key can be used to set 5 levels of ultrasonic distance measurement and alarm. The minimum distance measurement alarm is 20cm, that is, the alarm "keep the distance" will be issued when the ultrasonic distance measurement is 20cm. If you press the K2 key once, the ranging alarm is 25cm; press the K2 key again, the ranging alarm is set to 25cm; press the K2 key again, the ranging alarm is set to 30cm; press the K2 key again, the ranging The alarm is set to 35cm; press the K2 button again, and the ranging alarm is set to 40cm; press the K2 button again, and the ranging alarm is set back to 20cm.

(2)设置计时时间。通过K3键可设置5档计时与报警,最小计时报警为30分钟,即计时到30分钟就发出报警“注意休息”。若按下K3键一次,计时报警为45分钟;再按下一次K3键,计时报警设为60分钟;再按下一次K3键,计时报警设为60分钟;再按下一次K3键,计时报警设为90分钟;再按下一次K3键,计时报警设为120分钟;再按下一次K3键,计时报警又设回到30分钟。 (2) Set the timing time. You can set 5 levels of timing and alarm through the K3 key. The minimum timing alarm is 30 minutes, that is, the alarm "take a rest" will be issued when the timing reaches 30 minutes. If you press the K3 button once, the timing alarm is 45 minutes; press the K3 button again, the timing alarm is set to 60 minutes; press the K3 button again, the timing alarm is set to 60 minutes; press the K3 button again, the timing alarm Set it to 90 minutes; press the K3 button again, and the timing alarm is set to 120 minutes; press the K3 button again, and the timing alarm is set back to 30 minutes.

(3)当L1闪动时表明检测到电池欠压,电池需要充电。 (3) When L1 flashes, it indicates that the battery undervoltage is detected and the battery needs to be charged.

(4)当检测到光照度低于500lx时,发出语音提示“光线不足”。 (4) When the illuminance is detected to be lower than 500lx, a voice prompt "insufficient light" will be issued.

(5)当检测看书距离小于设定值时,发出语音提示“保持距离”。 (5) When the reading distance is detected to be less than the set value, a voice prompt "keep the distance" will be issued.

(6)当检测计数时间达到预定值时,发出语音提示“注意休息”。 (6) When the detection and counting time reaches the predetermined value, a voice prompt "Pay attention to rest" will be issued.

Claims (10)

1.一种微电脑视力保护语音提示器,它采用单片机(3)为核心,包括超声波发射电路(4)、超声波反射接收电路(5)和光照度检测电路(6),其特征是:单片机(3) 由具有A/D采集功能的第一I/O口控制脚(P1.2)与光照度检测电路(6)连接,光照度检测电路(6)包括光敏传感器(16)和取样电路(17),光敏传感器(16)与取样电路(17)构成串联电路,从光敏传感器(16)与取样电路(17)之间的连接点接入到单片机(3) 的第一I/O口控制脚(P1.2),第一I/O口控制脚(P1.2)作单片机(3)内A/D转换器的信号输入端。 1. A voice prompter for microcomputer vision protection, which uses a single-chip microcomputer (3) as the core, including an ultrasonic transmitting circuit (4), an ultrasonic reflection receiving circuit (5) and an illumination detection circuit (6), and is characterized in that the single-chip microcomputer (3 ) is connected with the light intensity detection circuit (6) by the first I/O port control pin (P1.2) with A/D acquisition function, and the light intensity detection circuit (6) includes a photosensitive sensor (16) and a sampling circuit (17), The photosensitive sensor (16) and the sampling circuit (17) form a series circuit, and the connection point between the photosensitive sensor (16) and the sampling circuit (17) is connected to the first I/O port control pin (P1) of the microcontroller (3). .2), the first I/O port control pin (P1.2) is used as the signal input end of the A/D converter in the microcontroller (3). 2.根据权利要求1所述的微电脑视力保护语音提示器,其特征是:还包括按键输入电路(7)、语音输出控制电路(8)和电池电压采样电路(9)。 2. The microcomputer vision protection voice prompter according to claim 1, characterized in that it further comprises a key input circuit (7), a voice output control circuit (8) and a battery voltage sampling circuit (9). 3.根据权利要求1或2所述的微电脑视力保护语音提示器,其特征是:所述的单片机(3)的芯片内部自带A/D转换器,片内含程序存储器、数据存储器和至少11个I/O口控制脚,其中至少有2个I/O口控制脚有A/D采集功能,所述的单片机(3)的芯片内置有晶振。 3. The microcomputer vision protection voice prompter according to claim 1 or 2, characterized in that: the chip of the single-chip microcomputer (3) has its own A/D converter inside, and the chip contains program memory, data memory and at least 11 I/O port control pins, at least 2 I/O port control pins have A/D acquisition function, and the chip of the single-chip microcomputer (3) has a built-in crystal oscillator. 4.根据权利要求3所述的微电脑视力保护语音提示器,其特征是:所述的光敏传感器(16)为LXD/GB5-A1DPH光敏传感器,取样电路(17)中的取样电阻取2KΩ电阻。 4. The microcomputer vision protection voice prompter according to claim 3, characterized in that: the photosensitive sensor (16) is a LXD/GB5-A1DPH photosensitive sensor, and the sampling resistor in the sampling circuit (17) is 2KΩ. 5.根据权利要求1或2所述的微电脑视力保护语音提示器,其特征是:所述的单片机(3)通过第二I/O口控制脚(P1.0)输出超声信号波,并与超声波发射电路(4)的输入端连接,超声波发射电路(4)包括驱动电路(12)和超声波发射传感器(13),超声信号通过驱动电路(12)放电后送到超声波发射传感器(13),由超声波发射传感器(13)发射超声波信号。 5. The microcomputer vision protection voice prompter according to claim 1 or 2, characterized in that: the single-chip microcomputer (3) outputs ultrasonic signal waves through the second I/O port control pin (P1.0), and communicates with The input end of the ultrasonic transmitting circuit (4) is connected, the ultrasonic transmitting circuit (4) includes a drive circuit (12) and an ultrasonic transmitting sensor (13), and the ultrasonic signal is sent to the ultrasonic transmitting sensor (13) after being discharged by the driving circuit (12), Ultrasonic signals are emitted by the ultrasonic emission sensor (13). 6.根据权利要求1或2所述的微电脑视力保护语音提示器,其特征是:所述的单片机(3)的第三I/O口控制脚(P3.3)作为外部中断信号输入端与超声波反射接收电路(5)的输出端连接;超声波反射接收电路(5)包括超声接收传感器(14)和超声波反射解调电路(15),超声波反射解调电路(15)进行信号放电大、限幅、带通滤波、检波、积分、整形后做外部中断信号,输送给单片机(3)的第三I/O口控制脚(P3.3)。 6. The microcomputer vision protection voice prompter according to claim 1 or 2, characterized in that: the third I/O port control pin (P3.3) of the single-chip microcomputer (3) is used as an external interrupt signal input terminal and The output end of the ultrasonic reflection receiving circuit (5) is connected; the ultrasonic reflection receiving circuit (5) includes an ultrasonic receiving sensor (14) and an ultrasonic reflection demodulation circuit (15), and the ultrasonic reflection demodulation circuit (15) performs signal discharge large and limited Amplitude, band-pass filtering, wave detection, integration, and shaping are used as external interrupt signals and sent to the third I/O port control pin (P3.3) of the single-chip microcomputer (3). 7.根据权利要求1或2所述的微电脑视力保护语音提示器,其特征是:所述的单片机(3)的具有A/D采集功能的第四I/O口控制脚(P1.1)作A/D采样信号输入端与电池电压采样电路(9)连接,电池电压采样电路(9)与锂电池(22)连接;当锂电池(22)工作放电到一定的电压值后,电池电压采样电路(9)采集此时的电池电压值送入单片机(3)进行计算比较处理,当采集到的电压值小于单片机(3)的内置的电池放电阀值Vt时,单片机(3)通过第五I/O口控制脚(P3.7)与欠压指示灯(10)连接,欠压指示灯(10)亮闪警示1分钟后自动进入掉电保护状态。 7. The microcomputer vision protection voice prompter according to claim 1 or 2, characterized in that: the fourth I/O port control pin (P1.1) of the single-chip microcomputer (3) has A/D acquisition function The input end of the A/D sampling signal is connected to the battery voltage sampling circuit (9), and the battery voltage sampling circuit (9) is connected to the lithium battery (22); when the lithium battery (22) is discharged to a certain voltage value, the battery voltage The sampling circuit (9) collects the battery voltage value at this time and sends it to the single-chip microcomputer (3) for calculation and comparison processing. When the collected voltage value is less than the built-in battery discharge threshold V t of the single-chip microcomputer (3), the single-chip microcomputer (3) passes The fifth I/O port control pin (P3.7) is connected to the under-voltage indicator light (10), and the under-voltage indicator light (10) flashes for warning for 1 minute and then automatically enters the power-down protection state. 8.根据权利要求1或2所述的微电脑视力保护语音提示器,其特征是:单片机(3)的第六、第七和第八I/O口控制脚(P3.0、P3.1、P3.4)分别与3个按键(K1、K2、K3)连接,3个按键(K1、K2、K3)与按键输入电路(7)连接,其中: 8. The microcomputer vision protection voice prompter according to claim 1 or 2, characterized in that: the sixth, seventh and eighth I/O port control pins (P3.0, P3.1, P3.4) are respectively connected to 3 buttons (K1, K2, K3), and 3 buttons (K1, K2, K3) are connected to the button input circuit (7), among which: 第一个按键(K1)是复位报警键,即按下第一个按键(K1)后计时报警从零开始计数,当计数到与预置时间值相等时,发出报警提示“注意休息”;如果时间报警到了后,没有按下第一个按键(K1),则每5分钟计时会报警提示一次“注意休息”; The first button (K1) is the reset alarm button, that is, after the first button (K1) is pressed, the timing alarm starts counting from zero, and when the count is equal to the preset time value, an alarm prompts "take a rest"; if After the time alarm is up, if the first button (K1) is not pressed, the timer will alarm every 5 minutes and prompt "Take a break"; 第二个按键(K2)是计时时间设置键,计时时间有5种选择,为环状处理按键:第1次按下第二个按键(K2),计时时间预置为30分钟,第2次按下第二个按键(K2),计时时间预置为45分钟,第3次按下第二个按键(K2),计时时间预置为60分钟,第4次按下第二个按键(K2),计时时间预置为90分钟,第5次按下第二个按键(K2),计时时间预置为120分钟,第6次按下第二个按键(K2),计时时间又回到预置为30分钟; The second button (K2) is the timing time setting button. There are 5 options for the timing time, which is a circular processing button: press the second button (K2) for the first time, the timing time is preset to 30 minutes, Press the second button (K2), the timing time is preset to 45 minutes, press the second button (K2) for the third time, the timing time is preset to 60 minutes, press the second button (K2) for the fourth time ), the preset timing time is 90 minutes, press the second button (K2) for the 5th time, the timing time is preset as 120 minutes, press the second button (K2) for the 6th time, the timing time returns to the preset time set to 30 minutes; 第三个按键(K3)是超声测距设置键,设有5种超声测距设置选择,为环状处理按键:第1次按下第三个按键(K3),超声测距预置为20cm,第2次按下第三个按键(K3),超声测距预置为25cm,第3次按下第三个按键(K3),超声测距预置为30cm,第4次按下第三个按键(K3),超声测距预置为35cm,第5次按下第三个按键(K3),超声测距预置为40cm,第6次按下第三个按键(K3),超声测距又回到预置20cm。 The third button (K3) is the ultrasonic distance measurement setting key, with 5 options for ultrasonic distance measurement settings, which is a circular processing button: press the third button (K3) for the first time, and the ultrasonic distance measurement preset is 20cm , press the third button (K3) for the second time, the ultrasonic distance measurement preset is 25cm, press the third button (K3) for the third time, the ultrasonic distance measurement preset is 30cm, press the third time for the fourth time press the third button (K3) for the 5th time, the preset value of the ultrasonic distance measurement is 40cm, press the third button (K3) for the 6th time, the ultrasonic measurement The distance is back to the preset 20cm. 9.根据权利要求1或2所述的微电脑视力保护语音提示器,其特征是:单片机(3)的第九、第十和第十一I/O口控制脚(P1.5、P1.6、P1.7)作为语音输出控制信号端,与语音输出控制电路8的三个输入口(A0、A1、A2)连接,语音输出控制电路(8)包括语音存储电路与控制电路(18)和喇叭(19)。 9. The microcomputer vision protection voice prompter according to claim 1 or 2, characterized in that: the ninth, tenth and eleventh I/O port control pins (P1.5, P1.6) of the single-chip microcomputer (3) , P1.7) as the voice output control signal terminal, connected with the three input ports (A0, A1, A2) of the voice output control circuit 8, the voice output control circuit (8) includes voice storage circuit and control circuit (18) and Trumpet (19). 10.根据权利要求1或2所述的微电脑视力保护语音提示器,其特征是:还包括电源及电池充放电管理电路(11);电源及电池充放电管理电路(11)包括阻容降压整流电路(20)、充电指示灯(28)、电池充电管理芯片(21)、锂电池(22)、采样电路(23)、工作开关(24)、电子开关(25)、稳压块(26)、和纹波处理电路(27)。 10. The microcomputer vision protection voice prompter according to claim 1 or 2, characterized in that: it also includes a power supply and battery charge and discharge management circuit (11); the power supply and battery charge and discharge management circuit (11) includes a resistance-capacitance step-down Rectifier circuit (20), charging indicator light (28), battery charging management chip (21), lithium battery (22), sampling circuit (23), working switch (24), electronic switch (25), voltage regulator block (26 ), and ripple processing circuit (27).
CN201210045151.XA 2012-02-27 2012-02-27 Microcomputer eyesight protecting voice prompter Expired - Fee Related CN102592403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210045151.XA CN102592403B (en) 2012-02-27 2012-02-27 Microcomputer eyesight protecting voice prompter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210045151.XA CN102592403B (en) 2012-02-27 2012-02-27 Microcomputer eyesight protecting voice prompter

Publications (2)

Publication Number Publication Date
CN102592403A true CN102592403A (en) 2012-07-18
CN102592403B CN102592403B (en) 2014-04-02

Family

ID=46480979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210045151.XA Expired - Fee Related CN102592403B (en) 2012-02-27 2012-02-27 Microcomputer eyesight protecting voice prompter

Country Status (1)

Country Link
CN (1) CN102592403B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942928A (en) * 2014-03-28 2014-07-23 华南师范大学 Instrument and method for preventing nearsightedness
CN104103160A (en) * 2014-06-25 2014-10-15 张熙杰 Multifunctional eyesight protector
CN106355845A (en) * 2016-10-17 2017-01-25 陈畅 Intelligent myopia preventer
CN107053194A (en) * 2017-02-27 2017-08-18 合肥慧动智能科技有限公司 A kind of automatic page turning machine people
CN110148287A (en) * 2019-06-14 2019-08-20 长治医学院 Multifunctional eyesight protecting apparatus and its application method
CN113189924A (en) * 2021-06-04 2021-07-30 邝利霞 Control circuit of vision protection device for ophthalmologic patient

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2142787Y (en) * 1992-12-17 1993-09-29 厦门市同安县舫兴电子厂 Vision-protecting file
WO1997029589A1 (en) * 1996-02-09 1997-08-14 Matsushita Electric Industrial Co., Ltd. Television receiver
WO2005001784A2 (en) * 2003-05-30 2005-01-06 Wasson Coley Ann D Viewing distance safety system
CN2868183Y (en) * 2006-01-19 2007-02-14 杨宏军 Intelligent eyesight protector
CN102081834A (en) * 2009-11-27 2011-06-01 鸿富锦精密工业(深圳)有限公司 Eyesight protection device and method
CN202472880U (en) * 2012-02-27 2012-10-03 东华理工大学 Microcomputer voice prompter for eyesight protection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2142787Y (en) * 1992-12-17 1993-09-29 厦门市同安县舫兴电子厂 Vision-protecting file
WO1997029589A1 (en) * 1996-02-09 1997-08-14 Matsushita Electric Industrial Co., Ltd. Television receiver
WO2005001784A2 (en) * 2003-05-30 2005-01-06 Wasson Coley Ann D Viewing distance safety system
CN2868183Y (en) * 2006-01-19 2007-02-14 杨宏军 Intelligent eyesight protector
CN102081834A (en) * 2009-11-27 2011-06-01 鸿富锦精密工业(深圳)有限公司 Eyesight protection device and method
CN202472880U (en) * 2012-02-27 2012-10-03 东华理工大学 Microcomputer voice prompter for eyesight protection

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942928A (en) * 2014-03-28 2014-07-23 华南师范大学 Instrument and method for preventing nearsightedness
CN103942928B (en) * 2014-03-28 2016-06-29 华南师范大学 A kind of pre-myopic-preventing instrument and method
CN104103160A (en) * 2014-06-25 2014-10-15 张熙杰 Multifunctional eyesight protector
CN106355845A (en) * 2016-10-17 2017-01-25 陈畅 Intelligent myopia preventer
CN107053194A (en) * 2017-02-27 2017-08-18 合肥慧动智能科技有限公司 A kind of automatic page turning machine people
CN110148287A (en) * 2019-06-14 2019-08-20 长治医学院 Multifunctional eyesight protecting apparatus and its application method
CN113189924A (en) * 2021-06-04 2021-07-30 邝利霞 Control circuit of vision protection device for ophthalmologic patient

Also Published As

Publication number Publication date
CN102592403B (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN102592403A (en) Microcomputer eyesight protecting voice prompter
CN205490915U (en) Power saving intelligence cat eye
CN203912278U (en) LED desk lamp intelligent controller
TW201301714A (en) Electronic device capable of indicating charge state
CN104504869A (en) Myopia prevention reminder
CN108158725A (en) A kind of paper diaper immersion intelligent monitoring circuit
CN207179293U (en) Multifunctional table lamp control device and multi-function desk lamp
CN205912209U (en) Wireless recording microphone with low alarm device is crossed to electric quantity
CN207603955U (en) New cell LED road lamp controller
CN204501715U (en) Intelligent baby bottle cover and control circuit
CN202472880U (en) Microcomputer voice prompter for eyesight protection
CN204360532U (en) Myopia prevention alarm
CN203015173U (en) Smart eye-protective LED table lamp
CN110301793B (en) Intelligent wine glass for healthy drinking management and implementation method thereof
CN205681659U (en) Multifunctional intelligent desk lamp
CN206272287U (en) A battery for use in emergency equipment or equipment with replaceable batteries
CN204350275U (en) A kind of hardware interface circuit for audio port two-way communication
CN209116982U (en) SCM Based wireless ultrasonic rangefinder
CN105701991B (en) A kind of bluetooth headset formula myopia-proof intelligent instrument
CN108403389A (en) A kind of intelligent blind-guiding cap
CN209343340U (en) Intelligent real-time detection circuit for judging whether the public key is in the correct position
CN204649355U (en) A kind of portable CO gas leakage alarm
CN214428323U (en) Intelligent voice remote controller
CN205279906U (en) Smart tape measure and smart tape measure circuit
CN104167805A (en) Charger for the blind

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140402

Termination date: 20150227

EXPY Termination of patent right or utility model