基于51单片机的智能晾衣架系统设计

2019.11
设计与研发
37
1 概述
晾衣架是人们日常生活中常见的生活工具,但是常规的
晾衣架只能通过手摇的方式进行控制,对周围的环境数据不
具有智能感知功能,当家中没人时,不能适时的对衣服进行
晾晒和回收,给人们的生活带来了一定的困扰。为了解决上
述问题,本文以AT89C51为核心,设计了一种智能晾衣系统,
该系统能够感知环境变化,根据实时天气情况自动控制晾衣
架执行不同的晾晒动作,提高了居家舒适度和便利度。

2 自动晾衣架系统硬件设计
2.1 总体硬件框图
本设计采用AT89C51单片机作为主控器,利用直流电机正
反转,实现控制晾衣架的开关。无线遥控是由SC2262/SC2272
编码解码芯片组成的无线发送接收模块,通过SC2272接收输
出端D0、D1、D2、D3输出信号控制单片机,再利用单片机控
制继电器的吸合驱动直流电机的正反转,实现晾衣架的开合,
同时用行程开关检测晾衣架的位置,实现晾衣架的防过卷。

2.2 无线遥控电路
无线遥控主要由两部分组成:无线遥控发射电路、无线
遥控解码电路。
无线遥控发射电路采用SC2262芯片作为编码器,并采用
2V电池供电。遥控发射电路的作用是将每个按键定义的码值编

码成无线信号传输,并通过红外发光二极管将信号发送出去。
图1 系统框图

图2 无线遥控发射电路
无线解码电路由SC2272芯片作为解码器,主要作用是接
收红外无线信号,将光信号解析成电信号,并传送给单片机。

基于51单片机的智能晾衣架系统设计
史记征,梁晶
(重庆安全技术职业学院,重庆,404020)

摘要:物联网技术的飞速发展,使得智能家居的概念迅速普及。本设计以AT89C51单片机为主控芯片,以温湿度传感器
和光敏电阻作为检测模块,通过对周围环境参数的分析,利用电机控制模块驱动衣架实现自动晾晒收回的自动晾衣架系
统。本设计可满足不同地域、不同季节的晒衣需求,具有较强的稳定性和实用性。
关键词:51单片机;晾衣架;无线遥控;自动控制

Design of Intelligent Clothes Hanger System Based on 51 Single
Chip Microcomputer
Shi Jizheng, Liang Jing
(Chongqing Vocational College of Safety Technology, Chongqing,404020)

Absrtact:
With the rapid development of Internet of Things technology, the concept of smart home is

rapidly popularized. In this design, AT89C51 single chip computer is used as the main control chip,
temperature and humidity sensor and photoresistor as the detection module. Through the analysis of the
surrounding environment parameters, the motor control module is used to drive the clothes hanger to
realize the automatic drying system. The design can meet the needs of different regions and seasons,
and has strong stability and practicability.
Key words
:51 single chip computer;clothes drying rack;wireless remote control; automatic control

基金项目:2018年重庆市高等职业教育双基地建设重庆安全技术职业学院“大数据与物联网融合实训基地”项目支持。
2019.11
设计与研发

38
图3 无线遥控解码电路
2.3 光线检测电路
光线检测电路采用光敏传感器,通过光敏电阻的特性,光
线暗时电阻变大,三极管的基极电压变低,三极管截止,发射极
被10K电阻拉低,输出低电平;光线亮时电阻变小,三极管的
基极电压变高,三极管导通,发射极被电源拉高,输出高电平。

图4 光线检测电路
2.4 温湿度检测电路
温湿度检测电路采用常用的DHT11数字量传感器,它具
有极高的可靠性和卓越的长期稳定性。

图5 温湿度检测电路
2.5 电机正反转控制电路
采用两个继电器的吸合控制直流电动机的旋转方向,带
动晾衣架的开合。两个继电器均采用5V供电,通过9012三极
管驱动继电器的吸合。

图6 电机正反转控制电路

3 软件设计
本设计主要实现以下六个功能:手动控制晾衣架的升
降;具有限位开关功能;具有无限遥控功能;具有运行状态
指示功能;根据环境光线智能升降;根据环境温湿度智能升
降。系统功能的实现离不开软件,程序采用C语言编程。系统
软件流程如图7所示。

图7 系统软件流程图
4 结语
本文所设计的智能晾衣系统是以AT89C51单片机为核
心,详细介绍了系统的硬件电路、软件流程、系统功能。该系
统可以实现自动模式与手动模式的自由切换,在自动模式
下,可根据温湿度和光照条件控制晾衣架的开启与关闭;手
动模式下,可由无线遥控来实现对晾衣架的控制。该晾衣架
功能完善、操作简单、实用性较强,具有一定的经济价值。

参考文献
[1]陈朝大,韩剑.单片机原理与应用[M].武汉:华中科技大
学出版社,2014.
[2]王俊翔.智能遥控晾晒器系统设计分析[J].无线互联科
技,2017(9):60-61.
[3]寿宏晓,林利栋,毛晓捷,等.自动伸缩式防雨晾衣架的
研究[J].机械工程师,2010(7):27-29.
[4]郭天祥.新概念51单片机C语言教程———入门、提高、
开发、拓展[M].北京:电子工业出版社,2009.

[6]雷加智,王珂,成燕,等.一种蓄电池充电器的数字控制器
优化设计[J].电工电能新技术,2014,33f11.

作者简介
黄培元(1996--),男,河南西平县人,汉族,苏州经贸职业技
术学院应用电子专业学生,主要研究方向:SMT32的

开发和设计。
俞梁英(1978--),女,汉族,江苏苏州人,讲师,硕士,主要研究
方向:电子与通讯、功率电源设计。
朱雪建(1999--),男,江苏淮安人,汉族,苏州经贸职业技术
学院应用电子专业学生,主要研究方向:电路设计。

(上接第49页)

合集下载

基于单片机的智能晾衣架控制系统的设计

基于单片机的智能晾衣架控制系统的设计

基于单片机的智能晾衣架控制系统的设计摘要对于现在城市里的大多数人们每天忙于工作,白天几乎都不在家中,当天气变化时不能及时将衣物收回。

关于这个问题,本文对智能晾衣架系统进行研究,运用DHT11温湿度传感器,光敏电阻采集到的信号传输给系统处理核心单片机AT89S52,根据当时的温湿度和光线的强弱判断晾衣架是否要收回。

当空气中的相对湿度超过设定值或光线变暗到一定值时,系统会发出报警提示主人收衣服并延时,无人应答后系统会自动发出脉冲信号给电机,从而控制机械部分自动收回晾衣架。

关键词:智能 AT89S52 DHT11MCU based intelligent clotheshorse control system designAbstractWith the constant development and social progress, intelligent products in the continuous influx of our family life, to the people's daily life more convenient, but airing tool or in a primitive level almost no change, gradually and our life away. For now the city where most people are busy with their work every day, hardly ever at home, when weather changes will be unable to recover. About this question, the intelligent clothes hanger system is studied, using the DHT11 temperature and humidity sensor, 5547 photosensitive resistance signals transmitted to the system processing core chip AT89S52, according to the time of the temperature and humidity and light intensity to judge whether to take back the clothes hanger. When the air relative humidity exceeds a set value ( think it's going to rain or rain ) or the dark to a certain value ( that had been dark ), the system will send out alarm host received clothes and delay, no response after the system will automatically send a pulse signal to a stepping motor, so as to control the mechanical parts automatically retract the clothes hanger.Key words: Intelligent AT89S52 DHT11目录前言 (3)第1章绪论 (4)第1.1节选题背景 (4)第1.2节研究目的与研究方法 (4)第1.3节研究意义 (5)第2章系统总体设计 (6)第2.1节总系统设计框图 (6)第2.2节系统组成概述 (6)第2.3节系统硬件电路选择 (7)第2.4节系统软件结构设计 (7)第2.5节机械结构设计 (8)第3章控制系统硬件设计 (10)第3.1节单片机的介绍及其工作系统设计 (10)第3.2节温湿度传感器电路 (16)第3.3节光敏检测电路 (20)第3.4节直流电机驱动电路 (21)第4章控制系统软件设计 (28)参考文献 (37)前言现在人们的生活追求个性化、自动化,家装要求的档次越来越高,生活家居人性化、智能化的要求使智能控制技术在智能家居电子产品中得到了广泛的应用,它不仅优化了人们的生活方式和居住环境,而且方便了人们有效的安排时间和节约各种能源。

基于单片机的智能晾衣架控制系统设计

基于单片机的智能晾衣架控制系统设计

基于单片机的智能晾衣架控制系统设计【摘要】智能化时代下,人们的生活模式发生了翻天覆地的变化:智能窗帘、智能扫地机器人、智能家电、智能晾衣架等产品相继被推出,并以较高的性价比越来越贴近用户的内心。

传统的晾衣架在搬动移动晾晒衣物时,都需要用户手动进行操作,并且其庞大沉重的特点,在操作时往往极不方便。

而电动升降晾衣架的出现,通过电力制动的方式,用户只需要轻按遥控装置,即可轻松实现晾衣架产品的移动升降等功。

传统晾衣架在阴天梅雨季节衣物不容易晒干,给用户带来了极大的困扰。

而智能晾衣架自带烘干和杀菌功能,轻松解决这一问题。

从而为家庭生活带来了更多的方便。

智能晾衣架操作方便,功能齐全,外观美观,是最能体现人们需求的产品,未来必将成为趋势。

【关键词】单片机;无线传感器;智能控制:电机控制1引言智能化家居是家具的未来,谁都想过上智能的生活。

传统的晾衣架产品具有功能单一使用不方便等不足之处,而电动升降晾衣架还具有附带了很多实用功能的特点。

电动升降晾衣架能够在夜间照明亮度不足时为用户提供照明功能,在衣物晾晒期间提供消毒灭菌功能还有受家庭主妇欢迎的衣物烘干功能等等。

电动升降晾衣架除了更多的实用和方便的功能外,升降晾衣架的外观也极为重要,在生产过程中更多的考虑了其和家居环境的配合度,通过超前的设计理念和新颖的制造工艺,打造出了有别传统晾衣架产品的美观大方的外形特征。

品质好的升降晾衣架的出现让传统的晾衣架产品走上了末路,并且终将会在人们的生活中完全消失,取代而至更加方便实用和智能化的电动升降晾衣架产品。

2硬件系统结构智能晾衣架设计采用STC89C52RC为主控芯片,利用光敏电阻检测光照强度,利用温湿度传感器检测环境的湿度,超过阈值则晾衣架的电机进行动作实现晾衣架的智能化,湿度的测量值可通过两位一体共阴极数码管进行显示,直观方便,同时,通过遥控器按键也可控制晾衣架动作。

用红黄蓝三种颜色 LED小灯指示晾衣架的工作状态,红灯用于工作模式选择指示,红灯灭时,表示手动遥控模式,通过遥控按键控制晾衣架的伸缩功能;红灯亮时,表示自动模式,当湿度大于80%RH 或者光敏电阻检测到是夜晚时,黄灯亮,电机反转,执行晾衣架收回功能,当蓝灯亮时,说明湿度小于80%RH 并且光敏电阻检测到是白天,电机正转执行晾衣架伸出功能。

基于89C51实现智能晾衣架控制系统设计

基于89C51实现智能晾衣架控制系统设计

杨 友 平 :基 于 8 C 1实现 智 能 晾 衣 架控 制 系统 设 计 95
・ 2 ・ l 7
合 时 ,8 C 1的 P . 95 2 4口发 出停 止指 令 ( 2 4口为 低 P. 电平 ) ,继 电器 J 2线 圈 断 电 ,智 能 晾衣 架停 止 收缩 , 同时 P . 2 6口为低 电平 ,发光 二极管 D 4灭 。
收 稿 日期 ;2 1— 52 ;修 回 日期 :2 1— 6 2 0 1 0— 5 0 10 —O
图 1 控 制 系 统 原 理 框 图
作者简介:杨友平( 9 5) 男 , 1 6一 , 湖北仙桃人 , 高级工程师 , 硕士, 主要研究方向 ; 号检测与控制。 信
21 年 第 6 01 期 2 2 硬 件 电 路 设 计 .
8 C 1 目前较 为实用 的 8位单 片 机 ,具 有 编程 95 是 简单 、外 围电路 简单 、可 靠 性高 且 价 格便 宜 等优 点 。
利用 8 C 1单 片 机 作 为 智 能 晾 衣 架 的 核 心控 制 器 , 95 其组成 的控制ቤተ መጻሕፍቲ ባይዱ系统 原理框 图如 图 1 所示 。
第 6期 ( 第 1 9 ) 总 6期
21 0 1年 l 月 2
机 械 工 程 与 自 动 化
M ECHANI AL ENGI C NEERI NG & AUT0M AT1 0N
N0 .6 De . c
文 章 编 号 :62 6 1 (0 10— 160 1 7 —4 3 2 1 ) 60 2— 3
到限位 开关动作 信号后 ,分 别 向左 、右两 侧 电动 机发 出停 止命令 , 电动 机停 止 运 行 。 当雨滴 传 感 器感 知 使 到“ 有雨 ” , 过 雨 滴 变送 通 道 处 理 后 , 人 8 C 1 时 经 送 9 5 单 片机 ,9 5 8 C 1向左 、 两侧 电动 机 发 出驱 动指 令 , 右 使 电动机 反转 , 晾衣 架 收 缩 , 当运 动 机 构 运 动 到 极 限位 时 , 限位开关 动作 , 9 5 接 收到 限位 开关 动作 信号 其 8C 1 后, 分别 向左 、 右两侧 电动 机发 出停 止命 令 , 动 机停 电 止运行 。当光 照传感 器 感 知 到光 的 强 度后 , 过 光 照 经

自动晾衣架控制系统设计

自动晾衣架控制系统设计

自动晾衣架控制系统设计摘要智能自动晾衣架能够实现晾衣架的自动升降,衣服超重的自动检测及系统故障保护等功能。

与传统的手动晾衣架相比,自动晾衣架具有升降更省力,升降速度更快等优势,随着技术的日臻完善,自动晾衣架将成为市场的主导产品。

本设计采用单片机AT89C51作为自动晾衣架的检测及控制核心,采用电阻应变片实现超重检测,通过手动按键控制晾衣架的升降,通过发光二极管显示晾衣架的工作状态,同时具有超重声光报警作用,该系统还增加了直流电机的的过流保护功能以及电气隔离功能。

软件部分采用模块化设计思想,编制了各个模块的流程图,实现了对晾衣架升降控制,状态显示等功能。

本设计具有灵活方便、适用范围广的特点,基本能够满足实践需求。

AUTOMATIC CLOTHES HANGER CONTROLSYSTEM DESIGNABSTRACTIntelligent automatic clothes hanger which is able to realize automatic lift the clothes hanger, automatic detection clothes are overweight or not, system's fault protection function of the clothes hanger. Compared with the traditional manual clothes hanger, it has lifting more easily and more faster. As technology is being perfected, automatic air clothes tree will be the market leading products.This design use the single-chip microcomputer AT89C51 as automatic clothes hanger detection and control core .using resistance strain gauge realize overweight detection, through manual buttons to control clothes hanger up or down. through the leds to display the clothes hanger working condition.At the same time,it has the overweight sound-light alarm circuit. this system also increased dc motor of the over-current protection function.software part adopts modular design thought, compiled the flowchart of each module. realized to dc motor positive & reverse control and state display functions.This design is agile and convenient, widely use .Basicly can satisfy the practice demands.KEY WORDS clothes hanger single-chip microcomputer lift control alarm目录中文摘要 (I)英文摘要 .............................................................................................................................................. I I 1 绪论. (1)1.1 自动晾衣架介绍 (1)1.2 晾衣架的历史及现状 (1)1.3 晾衣架行业的发展及未来 (2)2 整体电路设计 (4)2.1 自动晾衣架整体框图 (4)2.2 系统的主要部件方案论证与比较 (4)2.2.1 处理器的选择与论证 (5)2.2.2 驱动电机的选择与论证 (5)2.2.3 直流电机驱动电路的选择与论证 (5)2.2.4 稳压电源方案选择与论证 (6)2.3 系统各模块的最终方案 (6)3 基本元器件介绍及各部分电路设计 (8)3.1 直流电机的运行原理 (8)3.1.1 直流电机的结构 (8)3.1.2 直流电机的基本工作原理 (8)3.1.3 直流电机的额定值 (10)3.2 单片机原理 (11)3.2.1 单片机原理概述 (11)3.2.2 单片机的应用系统 (11)3.2.3 AT89C51简介 (13)3.3 其它主要器件介绍 (17)3.3.1 NE555介绍 (17)3.3.2 集成运放LM358介绍 (19)3.3.3 继电器的介绍 (20)3.3.4 光耦介绍 (22)3.3.5 串行下载口介绍 (23)3.4 各部分电路设计 (25)3.4.1 电源电路 (25)3.4.2 时钟电路 (27)3.4.3 复位电路 (28)3.4.4 按键电路 (29)3.4.5 超重检测电路 (29)3.4.6 状态指示电路 (30)3.4.7 声光报警电路 (31)3.4.8 过流保护电路 (32)3.4.9 控制电机正反转电路 (33)3.4.10 串口电路 (34)4 系统的软件各部分设计与实现 (36)4.1 超重检测部分 (36)4.2 上升部分 (36)4.3 下降部分 (37)4.4 过流中断部分 (38)5 设计总结 (39)致谢 (40)参考文献 (41)附录 (42)1 绪论1.1 自动晾衣架介绍目前晾衣架分手动、自动两种。

自动晾衣架控制系统设计

自动晾衣架控制系统设计

自动晾衣架控制系统设计摘要智能自动晾衣架能够实现晾衣架的自动升降,衣服超重的自动检测及系统故障保护等功能。

与传统的手动晾衣架相比,自动晾衣架具有升降更省力,升降速度更快等优势,随着技术的日臻完善,自动晾衣架将成为市场的主导产品。

本设计采用单片机AT89C51作为自动晾衣架的检测及控制核心,采用电阻应变片实现超重检测,通过手动按键控制晾衣架的升降,通过发光二极管显示晾衣架的工作状态,同时具有超重声光报警作用,该系统还增加了直流电机的的过流保护功能以及电气隔离功能。

软件部分采用模块化设计思想,编制了各个模块的流程图,实现了对晾衣架升降控制,状态显示等功能。

本设计具有灵活方便、适用范围广的特点,基本能够满足实践需求。

AUTOMATIC CLOTHES HANGER CONTROLSYSTEM DESIGNABSTRACTIntelligent automatic clothes hanger which is able to realize automatic lift the clothes hanger, automatic detection clothes are overweight or not, system's fault protection function of the clothes hanger. Compared with the traditional manual clothes hanger, it has lifting more easily and more faster. As technology is being perfected, automatic air clothes tree will be the market leading products.This design use the single-chip microcomputer AT89C51 as automatic clothes hanger detection and control core .using resistance strain gauge realize overweight detection, through manual buttons to control clothes hanger up or down. through the leds to display the clothes hanger working condition.At the same time,it has the overweight sound-light alarm circuit. this system also increased dc motor of the over-current protection function.software part adopts modular design thought, compiled the flowchart of each module. realized to dc motor positive & reverse control and state display functions.This design is agile and convenient, widely use .Basicly can satisfy the practice demands.KEY WORDS clothes hanger single-chip microcomputer lift control alarm目录中文摘要 (I)英文摘要 .............................................................................................................................................. I I 1 绪论. (1)1.1 自动晾衣架介绍 (1)1.2 晾衣架的历史及现状 (1)1.3 晾衣架行业的发展及未来 (2)2 整体电路设计 (4)2.1 自动晾衣架整体框图 (4)2.2 系统的主要部件方案论证与比较 (4)2.2.1 处理器的选择与论证 (5)2.2.2 驱动电机的选择与论证 (5)2.2.3 直流电机驱动电路的选择与论证 (5)2.2.4 稳压电源方案选择与论证 (6)2.3 系统各模块的最终方案 (6)3 基本元器件介绍及各部分电路设计 (8)3.1 直流电机的运行原理 (8)3.1.1 直流电机的结构 (8)3.1.2 直流电机的基本工作原理 (8)3.1.3 直流电机的额定值 (10)3.2 单片机原理 (11)3.2.1 单片机原理概述 (11)3.2.2 单片机的应用系统 (11)3.2.3 AT89C51简介 (13)3.3 其它主要器件介绍 (17)3.3.1 NE555介绍 (17)3.3.2 集成运放LM358介绍 (19)3.3.3 继电器的介绍 (20)3.3.4 光耦介绍 (22)3.3.5 串行下载口介绍 (23)3.4 各部分电路设计 (25)3.4.1 电源电路 (25)3.4.2 时钟电路 (27)3.4.3 复位电路 (28)3.4.4 按键电路 (29)3.4.5 超重检测电路 (29)3.4.6 状态指示电路 (30)3.4.7 声光报警电路 (31)3.4.8 过流保护电路 (32)3.4.9 控制电机正反转电路 (33)3.4.10 串口电路 (34)4 系统的软件各部分设计与实现 (36)4.1 超重检测部分 (36)4.2 上升部分 (36)4.3 下降部分 (37)4.4 过流中断部分 (38)5 设计总结 (39)致谢 (40)参考文献 (41)附录 (42)1 绪论1.1 自动晾衣架介绍目前晾衣架分手动、自动两种。

基于单片机的智能晾衣架设计

基于单片机的智能晾衣架设计
收 稿 日 期 :2012-05-14; 修 回 日 期 :2012-07-14 作者简介:张谦 (1989-),男,湖南株洲人,在读本科生。
2012 年 第 6 期 张 谦 ,等 :基 于 单 片 机 的 智 能 晾 衣 架 设 计
· 153 ·
核心 控 制 器 利 用 价 格 低 廉 的 STC89C52 单 片 机, 具有编程 简 单、外 围 电 路 简 单、可 靠 性 高 等 特 点 , [5,6] 其控制系统组成原理框图如图3所示。
图 4 光 敏 传 感 器 电 路 原 理 图
2.3 温 湿 度 传 感 器 电 路 设 计 为了更精准地实 现 衣 架 自 动 收 放 功 能,需 要 精 确
的温湿度数据,本系 统 采 用 已 校 准 熟 悉 信 号 输 出 的 温
(1.湖南工业大学 机械工程学院,湖南 株洲 412007;2.湖南工业大学 电气与信息工程学院,湖南 株洲 412007)
摘要:设计了一种基于单片机、运用传感器和步进电机的智能衣架,该衣架能自动 根 据 晴 雨 天 收 放、 根 据 光 线旋转。通过对系统有效的软、硬件设计,达到了预期的目的,实际运用中各项性能指标稳定、可靠。 关键词:智能;晾衣架;单片机 中 图 分 类 号 :TP368.2∶TM925 文 献 标 识 码 :A
第 6 期 (总 第 175 期 )动化 MECHANICAL ENGINEERING & AUTOMATION
文 章 编 号 :1672-6413(2012)06-0152-02
No.6 Dec.
基于单片机的智能晾衣架设计
张 谦1, 孙 晓1, 周 浩2, 卢 祥 江1, 周 叶 青1, 谭 利 江1, 肖 观 生1
按钮拨到手动后,菱 形 推 动 架 电 机 会 根 据 手 动 发 出的信号来进行伸出和收回。 2.2 光 敏 传 感 器 设 计

基于自动控制技术的智能晾衣架设计与制造毕业成果

基于自动控制技术的智能晾衣架设计与制造毕业成果一、引言晾衣架是我们家居生活中必不可少的家具之一,但传统的晾衣架存在着晾衣效率低下、占用空间大等问题。

为了解决这些问题,本文基于自动控制技术,设计并制造了一款智能晾衣架。

二、设计思路1. 自动控制系统本设计采用了单片机作为控制核心,通过传感器对温度、湿度等环境参数进行监测,并根据监测结果自动调节晾衣架的高度和角度。

同时,还可以通过手机APP远程控制晾衣架的开关和调节。

2. 结构设计为了减小占用空间,本设计采用折叠式结构。

晾衣杆采用铝合金材料,轻便耐用。

同时,在晾衣杆上设置可伸缩装置,可以根据不同的衣物大小进行调整。

3. 电机驱动系统本设计采用直流电机驱动晾衣架运行。

在电机上设置限位开关,保证晾衣架在运行过程中不会超出安全范围。

三、制造过程1. 制作框架:首先按照设计图纸制作晾衣架的框架,采用铝合金材料焊接而成。

2. 安装电机:将电机安装在框架上,并连接好限位开关和传感器。

3. 制作晾衣杆:根据设计要求,将铝合金材料切割成晾衣杆,并在上面设置可伸缩装置。

4. 安装传感器和控制系统:将温度、湿度等传感器安装在晾衣架上,并将单片机等控制系统安装好。

5. 调试测试:完成以上步骤后,进行调试测试,确保晾衣架能够正常运行并满足设计要求。

四、结论本文基于自动控制技术,设计并制造了一款智能晾衣架。

通过对温度、湿度等环境参数的监测和自动调节,实现了高效的晾衣效果。

同时,折叠式结构设计也使得该晾衣架占用空间更小。

该产品具有较高的实用价值和市场前景。

基于单片机的智能晾衣架控制系统的设计与实现外文文献原稿和译文

外文文献原稿和译文原稿The Description of AT89S511 General DescriptionThe AT89S51 is a low-power, high-performance CMOS 8-bit microcontroller with 4K bytes of In-System Programmable Flash memory. The device is manufactured using Atmel’s high-density nonvolatile memory technology and is compatible with the industry-standard 80C51 instruction set and pinout. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. By combining a versatile 8-bit CPU with In-System Programmable Flash on a monolithic chip, the Atmel AT89S51 is a powerful microcontroller which provides a highly-flexible and cost-effective solution to many embedded control applications.The AT89S51 provides the following standard features: 4K bytes of Flash, 128 bytes of RAM, 32 I/O lines, Watchdog timer, two data pointers, two 16-bit timer/counters, a five-vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator, and clock circuitry. In addition, the AT89S51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes.The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port, and interrupt system to continue functioning. The Power-down mode saves the RAM contents but freezes the oscillator, disabling all other chip functions until the next external interrupt or hardware reset.2 PortsPort 0 is an 8-bit open drain bi-directional I/O port. As an output port, each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as high-impedance inputs. Port 0 can also be configured to be the multiplexed low-order address/data bus during accesses to external program and data memory. In this mode, P0 has internal pull-ups. Port 0 also receives the code bytes during Flashprogramming and outputs the code bytes during program verification. External pull-ups are required during program verification.Port 1 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 1 output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins, they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will source current (I IL) because of the internal pull-ups.Port 1 also receives the low-order address bytes during Flash programming and verification.Port 2 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 2 output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins, they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 2 pins that are externally being pulled low will source current (I IL) because of the internal pull-ups.Port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses (MOVX @ DPTR). In this application, Port 2 uses strong internal pull-ups when emitting 1s. During accesses to external data memory that use 8-bit addresses (MOVX @ RI), Port 2 emits the contents of the P2 Special Function Register. Port 2 also receives the high-order address bits and some control signals during Flash programming and verification.Port 3 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 3 output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins, they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will source current (I IL) because of the pull-ups. Port 3 receives some control signals for Flash programming and verification. Port 3 also serves the functions of various special features of the AT89S51, as shown in thefollowing table.3 Special Function RegistersA map of the on-chip memory area called the Special Function Register (SFR) space is shown in Table 3-1.0F0H 0F7H0E8H 0EFH0E0H 0E7H0D8H 0DFH0D0H 0D7H0C8H 0CFH 0C0H 0C7H 0B8H 0BFH 0B0H 0B7H 0A8H 0AFH0A0H0A7H98H 9FH 90H 97H 88H 8FH80H87HNote that not all of the addresses are occupied, and unoccupied addresses may not be implemented on the chip. Read accesses to these addresses will in general return random data, and write accesses will have an indeterminate effect.User software should not write 1s to these unlisted locations, since they may be used in future products to invoke new features. In that case, the reset or inactive values of the new bits will always be 0.Interrupt Registers: The individual interrupt enable bits are in the IE register. Two priorities can be set for each of the five interrupt sources in the IP register.Table 3-2. AUXR:Auxiliary RegisterAUXR Address=8EH Reset Value=XXX00XX0bBitReserved for future expansionDISALE Disable/Enable ALEDISALEOperating Mode0 ALE is emitted at a constant rate of 1/6 the oscillator frequency1 ALE is active only during a MOVX or MOVC instruction DISRTO Disable/Enable Reset-outDISRTO0 Reset pin is driven High after WDT times out1 Reset pin is input onlyWDIDLE Disable/Enable WDT in IDLE modeWDIDLE0 WDT continues to count in IDLE mode1 WDT halts counting in IDLE modeDual Data Pointer Registers: To facilitate accessing both internal and external data memory, two banks of 16-bit Data Pointer Registers are provided: DP0 at SFR address locations 82H-83H and DP1 at 84H-85H. Bit DPS = 0 in SFR AUXR1 selects DP0 and DPS = 1 selects DP1. The user should always initialize the DPS bit to the appropriate value before accessing the respective Data Pointer Register.Power Off Flag: The Power Off Flag (POF) is located at bit 4 (PCON.4) in the PCON SFR. POF is set to “1” during power up. It can be set and rest under software control and is not affected by reset.4 Memory OrganizationMCS-51 devices have a separate address space for Program and Data Memory. Up to 64K bytes each of external Program and Data Memory can be addressed.4.1 Program MemoryIf the EA pin is connected to GND, all program fetches are directed to external memory. On the AT89S51, if EA is connected to V CC, program fetches to addresses 0000H through FFFH are directed to internal memory and fetches to addresses 1000H through FFFFH are directed to external memory.4.2 Data MemoryThe AT89S51 implements 128 bytes of on-chip RAM. The 128 bytes are accessible via direct and indirect addressing modes. Stack operations are examples of indirect addressing, so the 128 bytes of data RAM are available as stack space.5 Watchdog Timer (One-time Enabled with Reset-out)The WDT is intended as a recovery method in situations where the CPU may be subjected to software upsets. The WDT consists of a 14-bit counter and the Watchdog Timer Reset (WDTRST) SFR. The WDT is defaulted to disable from exiting reset. Toenable the WDT, a user must write 01EH and 0E1H in sequence to the WDTRST register (SFR location 0A6H). When the WDT is enabled, it will increment every machine cycle while the oscillator is running. The WDT timeout period is dependent on the external clock frequency. There is no way to disable the WDT except through reset (either hardware reset or WDT overflow reset). When WDT overflows, it will drive an output RESET HIGH pulse at the RST pin.5.1 Using the WDTTo enable the WDT, a user must write 01EH and 0E1H in sequence to the WDTRST register (SFR location 0A6H). When the WDT is enabled, the user needs to service it by writing 01EH and 0E1H to WDTRST to avoid a WDT overflow. The 14-bit counter overflows when it reaches 16383 (3FFFH), and this will reset the device. When the WDT is enabled, it will increment every machine cycle while the oscillator is running. This means the user must reset the WDT at least every 16383 machine cycles. To reset the WDT the user must write 01EH and 0E1H to WDTRST. WDTRST is a write-only register. The WDT counter cannot be read or written. When WDT overflows, it will generate an output RESET pulse at the RST pin. The RESET pulse duration is 98xTOSC, where TOSC = 1/FOSC. To make the best use of the WDT, it should be serviced in those sections of code that will periodically be executed within the time required to prevent a WDT reset.5.2 WDT DURING Power-down and IdleIn Power-down mode the oscillator stops, which means the WDT also stops. While in Power-down mode, the user does not need to service the WDT. There are two methods of exiting Power-down mode: by a hardware reset or via a level-activated external interrupt, which is enabled prior to entering Power-down mode. When Power-down is exited with hardware reset, servicing the WDT should occur as it normally does whenever the AT89S51 is reset. Exiting Power-down with an interrupt is significantly different. The interrupt is held low long enough for the oscillator to stabilize. When the interrupt is brought high, the interrupt is serviced. To prevent the WDT from resetting the device while the interrupt pin is held low, the WDT is not started until the interrupt is pulled high. It is suggested that the WDT be reset during the interrupt service for the interrupt used to exit Power-down mode. To ensure that the WDT does not overflow within a few states of exiting Power-down, itis best to reset the WDT just before entering Power-down mode. Before going into the IDLE mode, the WDIDLE bit in SFR AUXR is used to determine whether the WDT continues to count if enabled. The WDT keeps counting during IDLE (WDIDLE bit = 0) as the default state. To prevent the WDT from resetting the AT89S51 while in IDLE mode, the user should always set up a timer that will periodically exit IDLE, service the WDT, and reenter IDLE mode.With WDIDLE bit enabled, the WDT will stop to count in IDLE mode and resumes the count upon exit from IDLE.6.InterruptsThe AT89S51 has a total of five interrupt vectors: two external interrupts (INT0 and INT1), two timer interrupts (Timers 0 and 1), and the serial port interrupt. These interrupts are all shown in Figure 6-1. Each of these interrupt sources can be individually enabled or disabled by setting or clearing a bit in Special Function Register IE. IE also contains a global disable bit, EA, which disables all interrupts at once.Note that Table 6-1 shows that bit positions IE.6 and IE.5 are unimplemented. User software should not write 1s to these bit positions, since they may be used in future AT89 products. The Timer 0 and Timer 1 flags, TF0 and TF1, are set at S5P2 of the cycle in which the timers overflow. The values are then polled by the circuitry in the next cycle.Figure 6-1 Interrupt Sources7 Oscillator CharacteristicsXTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier that can be configured for use as an on-chip oscillator, as shown in Figure 7-1. Either a quartz crystal or ceramic resonator may be used. To drive the device from an external clock source, XTAL2 should be left unconnected while XTAL1 is driven, as shown in Figure 7-2. There are no requirements on the duty cycle of the external clock signal, since the input to the internal clocking circuitry is through a divide-by-two flip-flop, but minimum and maximum voltage high and low time specifications must be observed.Figure 7-1 Oscillator ConnectionsNote: pF,1±=for Crystals2pF30CC10=for Ceramic Resonators40±pFpF10Figure 7-2 External Clock Drive Configuration8 Idle ModeIn idle mode, the CPU puts itself to sleep while all the on-chip peripherals remain active. The mode is invoked by software. The content of the on-chip RAM and all the special function registers remain unchanged during this mode. The idle mode can be terminated by any enabled interrupt or by a hardware reset.Note that when idle mode is terminated by a hardware reset, the device normally resumes pro-gram execution from where it left off, up to two machine cycles before the internal reset algorithm takes control. On-chip hardware inhibits access to internal RAM in this event, but access to the port pins is not inhibited. To eliminate the possibility of an unexpected write to a port pin when idle mode is terminated by a reset, the instruction following the one that invokes idle mode should not write to a port pin or to external memory.9 Power-down ModeIn the Power-down mode, the oscillator is stopped, and the instruction that invokes Power-down is the last instruction executed. The on-chip RAM and Special Function Registers retain their values until the Power-down mode is terminated. Exit from Power-down mode can be initiated either by a hardware reset or by activation of an enabled external interrupt (INT0 or INT1). Reset redefines the SFRs but does not change the on-chip RAM. The reset should not be activated before VCC is restored to its normal operating level and must be held active long enough to allow the oscillator to restart and stabilize.译文AT89S51概述1 一般概述该AT89S51是一个低功耗,高性能CMOS 8位微控制器,可在4K字节的系统内编程的闪存存储器。

基于单片机控制的智能晾晒衣柜开发与应用研究

基于单片机控制的智能晾晒衣柜开发与应用研究目录1. 内容综述 (3)1.1 研究背景 (4)1.2 研究意义 (5)1.3 国内外研究现状 (5)1.4 研究内容与方法 (7)2. 智能晾晒衣柜的需求分析 (8)2.1 用户需求分析 (9)2.2 功能需求分析 (10)2.3 系统性能要求 (11)3. 智能晾晒衣柜的技术实现 (12)3.1 硬件设计 (15)3.1.1 单片机选择与说明 (16)3.1.2 传感器的选择与应用 (18)3.1.3 执行部件的选择与控制 (19)3.2 软件设计 (21)3.2.1 操作系统选型 (23)3.2.2 系统控制流程设计 (23)3.2.3 用户界面设计 (25)3.2.4 通信协议设计 (27)4. 智能晾晒衣柜的开发流程 (28)4.1 项目计划与组织 (30)4.2 系统原型设计 (30)4.3 硬件开发 (32)4.4 软件开发 (33)4.5 系统集成与调试 (34)5. 智能晾晒衣柜的应用场景 (35)5.1 家用场景 (36)5.2 商用场景 (37)5.3 军用或特殊应用场景 (38)6. 智能晾晒衣柜的安全性与节能性分析 (40)6.1 系统安全措施 (41)6.2 能耗分析 (42)6.3 环境影响评估 (43)7. 智能晾晒衣柜的用户体验与反馈 (44)7.1 用户使用反馈收集 (45)7.2 用户满意度分析 (46)7.3 用户体验提升策略 (47)8. 智能晾晒衣柜的未来发展与展望 (48)8.1 技术领域的发展趋势 (49)8.2 市场需求分析 (51)8.3 未来的创新点 (52)1. 内容综述随着社会的发展和人们生活水平的提高,家居智能化已经逐渐成为现代家庭的重要组成部分。

在众多的智能家居系统中,晾晒衣物作为日常生活中不可或缺的一部分,其智能化控制尤为关键。

传统的晾晒方式往往依赖于自然晾晒或简单的人工操作,不仅效率低下,而且受天气影响较大。

基于单片机的自动晴雨晾衣架的设计

基于单片机的自动晴雨晾衣架的设计AbstractThe automatic clothes drying rack designed in this study uses a microcontroller as the core control module to automatically detect the weather conditions and adjust the height of the clothes drying rack. The system also includes a humidity and temperature sensor, a motor, and a display screen. The system can automatically detect whether it is raining or not, and the clothes drying rack willautomatically rise to prevent the clothes from getting wet. When the weather is fine, the clothes drying rack will automatically lower to the appropriate height for clothes drying. The humidity and temperature sensor is used to adjust the drying time according to the ambient temperature and humidity. The display screen displays the real-time weather information to the user. The system is simple in structure, reliable in performance and high in practicality.IntroductionClothes drying is an everyday household activity thatcan be affected by weather conditions. On rainy or humid days, clothes take a long time to dry, leading to inconvenience and even moldy smells. At the same time, the traditional manual clothes drying method is time-consuming and laborious, and does not have intelligent control of the drying process. Therefore, the design of an automatic clothes drying rackwith intelligent control is becoming more and more necessary.This study uses a microcontroller as the core control module to automatically detect the weather conditions andadjust the height of the clothes drying rack. The system also includes a humidity and temperature sensor, a motor, and a display screen. The system can automatically detect whetherit is raining or not, and the clothes drying rack will automatically rise to prevent the clothes from getting wet. When the weather is fine, the clothes drying rack will automatically lower to the appropriate height for clothes drying. The humidity and temperature sensor is used to adjust the drying time according to the ambient temperature and humidity. The display screen displays the real-time weather information to the user.Materials and Methods1. Hardware DesignThe hardware of the system mainly includes a microcontroller, a humidity and temperature sensor, a motor, and a display screen.1.1 MicrocontrollerThe microcontroller used in this system is STM32F103C8T6, with high processing speed and large storage capacity. It can process data quickly and realize precise control of the system.1.2 Humidity and Temperature SensorThe humidity and temperature sensor used in this system is DHT11. It has the advantages of high accuracy, stable performance, and low power consumption, which can improve the accuracy of temperature and humidity measurement.1.3 MotorThe motor used in this system is a DC motor that is light in weight, easy to control, and has a reversible function. The motor can drive the clothes drying rack to move up and down.1.4 Display ScreenThe display screen used in this system is the LCD12864 module. The screen displays the current temperature and humidity and the current state of the clothes drying rack.2. Software DesignThe software of the system is mainly implemented by the C programming language. The program is divided into several modules: temperature and humidity detection module, rain detection module, motor control module, display module, and main control module.2.1 Temperature and Humidity Detection ModuleThe temperature and humidity detection module is responsible for reading the temperature and humidity of the ambient environment through the DHT11 sensor, and sending the data to the main control module for further processing.2.2 Rain Detection ModuleThe rain detection module is responsible for detecting therain status of the ambient environment. When it rains, the module sends a signal to the main control module to controlthe motor to raise the clothes drying rack.2.3 Motor Control ModuleThe motor control module is responsible for controlling the start and stop of the motor and adjusting the direction ofthe motor. The motor control module receives commands fromthe main control module to control the movement of theclothes drying rack.2.4 Display ModuleThe display module is responsible for displaying the temperature and humidity of the ambient environment, thestate of the clothes drying rack, and other information onthe LCD screen.2.5 Main Control ModuleThe main control module is the core module of the system. It receives data from the temperature and humidity detection module and the rain detection module, and controls the motorto adjust the height of the clothes drying rack. The main control module also displays real-time data on the LCD screen.Results and DiscussionThe experimental results show that the automatic clothes drying rack designed in this study can effectively adjust the height of the clothes drying rack based on the weather conditions. When it rains, the rack rises to prevent clothes from getting wet. When the weather is fine, the rack lowersto the appropriate height for drying clothes. The humidityand temperature sensor can adjust the drying time accordingto the ambient temperature and humidity, which improves the drying efficiency. The display screen displays real-time data, which is convenient for users to monitor the drying status.ConclusionBased on a microcontroller, a humidity and temperature sensor, a motor, and a display screen, an automatic clothes drying rack with intelligent control was designed. The system can automatically detect the weather conditions and adjustthe height of the clothes drying rack. The humidity and temperature sensor can adjust the drying time according tothe ambient temperature and humidity. The display screen displays the real-time weather information to the user. The system is simple in structure, reliable in performance andhigh in practicality, which has great practical application value.。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档