设计简介:
项目名:浴室防雾镜
项目编号:mcuclub-dz-153
单片机:STM32F103C8T6
功能简介:
1、通过DS18B20检测环境温度,通过另一个DS18B20检测镜子温度,当开启防雾模式时,自动加热或制冷浴室镜
2、通过DHT11检测湿度值,当湿度大于设置最大值,进行通风除湿
3、通过MQ-135检测空气质量,当空气质量值大于大于设置最大值,进行通风换气
4、通过音乐播放器可播放音乐
5、通过光敏电阻检测光照值
6、通过D203S人体热释电检测是否有人,如果有人,且光照低于设置最小值,则自动打开照明灯
7、通过按键设置各阈值、手动开关照明灯、切换防雾模式、播放音乐
8、通过显示屏显示各测量数据
9、通过蓝牙模块连接手机端,手机端可获取各测量数据,并可控制开关照明灯、切换防雾模式、播放音乐
10、通过语音识别模块可以控制开关照明灯、切换防雾模式、播放音乐
总字数:11327
实物链接:点击跳转
设计说明书链接:点击跳转
开题报告链接:点击跳转
答辩PPT链接:点击跳转
摘 要
随着人民生活水平的提高及室内装饰的兴起,各种功能的装饰已悄然进入家庭,但是浴室里卫浴的问题,一直未得到解决。
此次采用STM32单片机进行设计,该设计通过对通过DS18B20检测环境温度,通过另一个DS18B20检测卫浴温度,当开启防雾模式时,自动加热或制冷浴室,通过DHT11检测湿度值,当湿度大于设置最大值,进行通风除湿,通过MQ-135检测空气质量,当空气质量值大于大于设置最大值,进行通风换气,通过音乐播放器可播放音乐,通过光敏电阻检测光照值,通过D203S人体热释电检测是否有人,如果有人,且光照低于设置最小值,则自动打开照明灯,通过按键设置各阈值、手动开关照明灯、切换防雾模式、播放音乐,通过显示屏显示各测量数据,通过蓝牙模块连接手机端,手机端可获取各测量数据,并可控制开关照明灯、切换防雾模式、播放音乐,通过语音识别模块可以控制开关照明灯、切换防雾模式、播放音乐。
经过实物测试,此次设计的智能卫浴可以达到除味、温湿度处于用户设置适宜的范围之内,保持浴室环境处于干净卫生,用户使用简单便捷的,因此此次设计具有一定的研究背景和研究意义。
关键词:STM32F103;卫浴;测控;智能检测
Abstract
With the improvement of people’s living standards and the rise of interior decoration, various functional decoration has quietly entered the family, but the problem of bathroom bathroom has not been solved. This time, STM32 single chip computer is used for design. The design detects the ambient temperature through DS18B20, and the bathroom temperature through another DS18B20. When the anti-fog mode is turned on, the bathroom is automatically heated or cooled, and the humidity value is detected through DHT11. When the humidity is greater than the set maximum value, ventilation and dehumidification are carried out, and the air quality is detected through MQ-135. When the air quality value is greater than the set maximum value, ventilation is carried out, Music can be played through the music player, the light value can be detected through the photosensitive resistor, and whether there is a person can be detected through the D203S human pyroelectric detector. If there is a person, and the light is lower than the set minimum value, the lighting lamp will be automatically turned on, the threshold value can be set by pressing the key, the lighting lamp can be manually switched on, the anti-fog mode can be switched on, the music can be played, the measurement data can be displayed through the display screen, and the mobile terminal can be connected through the Bluetooth module, and the measurement data can be obtained from the mobile terminal, It can also control the lighting switch, switch the anti-fog mode, and play music. The voice recognition module can control the lighting switch, switch the anti-fog mode, and play music. After physical test, the intelligent bathroom designed in this design can achieve demisting, temperature and humidity within the appropriate range of user settings, keep the bathroom environment clean and sanitary, and users can use it easily and conveniently. Therefore, this design has certain research background and research significance.
Key words:STM32F103; bathroom; Measurement and control; Intelligent detection
目 录
1 绪论 1
2 系统方案设计 4
3 硬件电路设计 7
4 系统程序设计 13
5 实物调试 20
总结与展望 26
致 谢 27
参考文献 28
附录 29