目 录
摘 要 I
Abstract II
引 言 1
1 系统方案设计 3
1.1 总设计方案选择 3
1.2 主控制模块选择 3
1.3 系统的总体设计 4
2 硬件电路设计 6
2.1 总电源电路设计 6
2.2 单片机控制模块 6
2.2.1 单片机的引脚说明 6
2.2.2 单片机最小系统 7
2.3 照明驱动模块 8
2.3.1 照明模块的选择 8
2.3.2 LED驱动模块设计 9
2.4 指示灯模块 9
2.5 按键模块 10
2.6 模数转换模块 10
2.7 遥控模块 11
2.7.1 遥控模块选择 11
2.7.2 红外遥控设计 12
2.8 人体感应模块 13
3 系统软件设计 15
3.1 软件开发环境及流程 15
3.2 坐姿警报程序介绍 15
3.3 自动模式程序介绍 16
3.4 手动模式红外遥控程序介绍 16
4 焊接与调试 18
4.1 电路焊接 18
4.2 系统调试 18
4.2.1 软件调试 19
4.2.2 硬件测试 19
4.3 实物测试 19
结 论 20
参考文献 21
附录1 原理图 23
附录2 源程序代码 24
致 谢 31
摘 要
学习桌属于一款面向3-12岁儿童的辅助学习工具。随着生活水平进步,超过6成的家长都会选择为自家的小孩购买一款适合的学习桌,用于辅助学习。普通的学习桌,具有桌椅高度可升降,桌面角度可以调节等特点。
本控制系统为了完善学习桌的功能性,增加了坐姿警报功能,用于调整使用者的不良坐姿,可调节的照明功能,用于提供最适合的照明环境,人体感应功能,用于自动模式下在无人使用的情况下自动关闭本控制系统。本设计具有三种工作模式,分别是手动、自动和呼吸灯模式。具体是利用STC89C51作为主要的控制核心;利用三级管SS8550驱动16个工作电压为5V的LED灯,作为照明模块;利用E18-D50NK红外避障传感器在感应范围内检查到目标物体输出低电平的特性,外接到单片机的IO口,配合着蜂鸣器组成坐姿警报部分;利用ADC0809模拟数字转换芯片和光敏电阻,通过将经过光敏电阻的电流值的变化,转换为数值反应到单片机中,输出相应的PWM占空比改变LED灯的亮度;利用红外遥控器和红外一体遥控接收装置,作为遥控模块,实现远程的操控;利用HC-SR501人体感应器在自动模式下,感应周围是否有使用者,使设计更加环保,并且人性化。
结果表明,本套智能学习桌控制系统,在本体幼小衔接机构的测试中,受到了小朋友的欢迎。在将功能向老师和家长的展示过程中,也得到了他们的肯定。对于小朋友的坐姿调整,和视力的保护,起到了很大的作用。
关键词:智能学习桌; STC89C51; A/D转换; 人体感应器; 红外遥控
Abstract
The learning desk is a learning aid for children aged 3 to 12. With the improvement of living standards, more than 60 percent of parents will choose to buy a suitable study desk for their children to help them learn. The common study desk, has the height of the desk and chair can rise and fall, the desktop Angle can adjust and so on the characteristic.
This control system, in order to improve the function of the learning desk, adds the sitting posture alarm function, which is used to adjust the user’s bad sitting posture, the adjustable lighting function, which is used to provide the most suitable lighting environment, and the human body sensing function, which is used to automatically shut down the control system in the automatic mode when no one is using it. This design has three working modes: manual, automatic and breathing lamp. Specifically, STC89C51 is used as the main control core. The three-stage tube SS8550 is used to drive 16 LED lights with working voltage of 5V as the lighting module. The infrared obstacle avoidance sensor e18-d50nk is used to check the low-level output characteristics of the target object within the induction range, and the IO port of the single-chip microcomputer is connected to the outside, which forms the posture alarm part with the buzzer. ADC0809 analog digital conversion chip and photosensitive resistor are used to convert the current value through the photosensitive resistor into a numerical value and react to the single-chip microcomputer, and output the corresponding PWM value to change the brightness of LED lamp. The infrared light emitting diode and infrared integrated remote control receiver are used as remote control module to realize remote control. The hc-sr501 human body sensor senses whether there are users around in the automatic mode to make the design more environmentally friendly and humanized.
The results show that the intelligent learning table control system is welcomed by the children in the testing of the young connecting mechanism. In the process of showing the function to teachers and parents, we also got their affirmation. For children’s sitting posture adjustment, and visual protection, played a big role.
Keywords: Intelligent learning desk; STC89C51;A/D converter; Human body sensor;Infrared remote control
引 言
经过长时间幼小衔接机构的实习生活,进行了深度的观察和学习研究。发现小朋友的成长教育,是当下每个家庭很重要的一部分。为了不让自家孩子输在起跑线上,都会选择在课余时间上一些培养兴趣的课程。经过调查发现,我国小朋友从4岁半开始,每天会花费超过四分之一的时间用于学习和培养兴趣上。因为身材矮小等原因,成人的写字台并不适合于小朋友。因此,基本上每一位家长,都会为自家小孩选择一款健康、安全的学习桌。
本设计的意义在于,传统的多功能学习桌,仅仅可以调整桌椅过高或者座椅偏低的基础问题,无法起到督促提醒的作用[1],而不良的学习坐姿会导致孩子的骨骼发育出现问题,也会大概率的导致近视眼的问题。
经过多方面的资料收集,就目前在基于人体工程学和人机工程学的国内儿童学习桌产品,其市场占有率不高普及率也比较低,关注的重点大多在桌子能否具备升降的功能,桌子的桌面是否可以进行倾斜,方便孩子平时绘画等需要,桌体是否使用健康、安全和高强度的材料,还有就是产品的颜色。孩子的家长通过了解后,大多会选择一款价格合适并且孩子喜欢的款式。
在国外,智能学习桌基于人体工程学的概念最先研究的是英国,由美国学者进行了深入的发展。而人体工程学包含的范围和学科又是特别的广泛,在美国多称之为人类工程学、工程心理和人类因素学;在欧洲叫工效学;日本叫做人间工学。例如,c·D·威肯斯在《人体工程学导论》中,提到长时间的坐着工作和办公用具之间的联系,对于如何使用人体工程学的知识,降低身体部分因疲劳带来的伤痛进行了初步的介绍;在Robert Bridger的《Introduction to Ergonomics》和Sam Maloof的《The furniture of Sam Maloof》中,也分析了练好的坐姿和习惯对于健康的关联性。具体到教育场所和个人的方面,占有率和普遍率最高的是德国,其拥有这非常严谨的标准和流程,为孩子购买适合的学习桌已经是日常的一部分了。
通过以上可以发现,其实无论是国内还是国外,传统的智能学习桌的普及率还是很高的,按照正常来说,儿童的健康应该不会出现太大的问题,但是经过调查发现,我果还是有超过30%的人已经出现了不同程度的视力问题,而视力的问题又大多出现在晶状体还未发育成熟的幼儿时期。因为我国的人口基数问题,所以我国视力存在问题的孩子是世界上最多的,所以研究一款智能学习桌系统已经是迫在眉睫的一个事情。
本系统由于受众人群的特殊性,要求包含安全卫生、功能全面、色彩多样、益智趣味等因素。具体是以STC89C51为控制核心,以ADC0809模数转换装置作为将光敏电阻反应出的电流大小转换为输出的数值,反应到单片机中。本篇