CN102592403A - Microcomputer eyesight protecting voice prompter - Google Patents
Microcomputer eyesight protecting voice prompter Download PDFInfo
- 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
Links
- 230000004438 eyesight Effects 0.000 title claims abstract description 34
- 238000005070 sampling Methods 0.000 claims abstract description 44
- 238000001514 detection method Methods 0.000 claims abstract description 22
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 claims description 27
- 229910052744 lithium Inorganic materials 0.000 claims description 27
- 238000005259 measurement Methods 0.000 claims description 21
- 238000005286 illumination Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 9
- 239000013078 crystal Substances 0.000 claims description 4
- 238000001914 filtration Methods 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000010354 integration Effects 0.000 claims description 2
- 238000007493 shaping process Methods 0.000 claims description 2
- 238000000034 method Methods 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 description 9
- 238000013461 design Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 208000003464 asthenopia Diseases 0.000 description 5
- 239000003990 capacitor Substances 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 5
- 230000004379 myopia Effects 0.000 description 4
- 208000001491 myopia Diseases 0.000 description 4
- 230000000087 stabilizing effect Effects 0.000 description 4
- 201000004569 Blindness Diseases 0.000 description 2
- 238000007599 discharging Methods 0.000 description 2
- 230000004393 visual impairment Effects 0.000 description 2
- 241001417519 Priacanthidae Species 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000000919 ceramic Substances 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000023077 detection of light stimulus Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 229920000728 polyester Polymers 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000002604 ultrasonography Methods 0.000 description 1
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。本发明在看书阅读过程中能及时提醒读者视距和光照。
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.
Description
技术领域 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-
所述的微电脑视力保护语音提示器,还包括按键输入电路7、语音输出控制电路8和电池电压采样电路9。
The microcomputer eyesight protection voice prompter also includes a
所述的单片机3的芯片内部自带A/D转换器,片内含程序存储器、数据存储器和至少11个I/O口控制脚,其中至少有2个I/O口控制脚有A/D采集功能,所述的单片机3的芯片内置有晶振。采用片内晶振做系统时钟。
The inside of the chip of the single-
所述的光敏传感器16为LXD/GB5-A1DPH光敏传感器,取样电路17中的取样电阻取2KΩ电阻。
The
光照度检测方法为:光敏传感器16与取样电路17串联后,由光敏传感器16感受光线的强弱,使采样电阻上的电压信号发生变化;这个受光线变化的电压送到单片机3 的第一I/O口控制脚P1.2进行A/D转换成数字量,经过单片机3程序设计完成软件标度变换算法计算出当前的光照度值,最后与标准值进行比较判断来控制语音报警提示;通过单片机3 的第一I/O口控制脚P1.2不断实时检测灯光照明度,实现光照度不足时的实时报警提示。
The illuminance detection method is: after the
所述的单片机3通过第二I/O口控制脚P1.0输出超声信号波,并与超声波发射电路4的输入端连接,超声波发射电路4包括驱动电路12和超声波发射传感器13,超声信号通过驱动电路12放电后送到超声波发射传感器13,由超声波发射传感器13发射超声波信号。
Described single-
所述的单片机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-
所述的单片机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-
所述的单片机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-
第一个按键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-
所述的微电脑视力保护语音提示器,还包括电源及电池充放电管理电路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
系统正常工作供电时,锂电池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
锂电池22的充电采用220V交流阻容降压整流电路20实现;阻容降压整流电路20先使用一个电阻和一个电容并联,再与一个电阻串联后,串联电阻的另一端与视力保护提示器1的电源线及插头2连接,插头2连接220V交流电压上;阻容降压后接入到一个由4个二极管组成的整流电桥;整流电桥输出端并联接入一个由1000uF的电容和12V稳压管构成的滤波稳压电路,把输入的220V交流电压降压成12V稳压输出;
The charging of the
阻容降压整流电路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-
当视力保护提示器1的电源线及插头2插入交流220V电源插座时,瞬间通过采样电路23控制电子开关25断开,使锂电池22停止放电输出,这时为锂电池22充电;锂电池22充电管理由电池充电管理芯片21负责,当正常充电时,充电指示灯28亮;若电池充满电后,充电指示灯28灭。
When the power cord and
本发明操作简单,适用性强,在电路设计与编程技术上实现了模块化设计,“傻瓜化”操作,使得系统在看书阅读过程中能及时提醒读者,给读者带来很多方便。 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-
本实施例中,单片机(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
单片机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-
单片机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-
单片机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-
单片机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-
单片机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-
整个系统采用+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
电池充电管理芯片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
采样这种方式可以实现很高的安全性,即在使用时完全由电池进行低压供电,如果视力保护提示器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
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)
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)
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)
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 |
-
2012
- 2012-02-27 CN CN201210045151.XA patent/CN102592403B/en not_active Expired - Fee Related
Patent Citations (6)
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)
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 |