当前位置: 首页 > news >正文

【dz-691】基于单片机的智能台灯设计

摘要

传统台灯多依赖手动开关与固定亮度调节,存在照明按需匹配不足、节能性欠佳及操作便捷性有限等问题,难以满足现代生活中智能化、个性化的照明需求。​

基于 STM32F103C8T6 单片机的智能台灯测控系统,整合了 D203S 人体红外传感器、5516 光照检测模块、红外避障模块、DS1302 时钟模块、按键、OLED 显示屏、ECB02 蓝牙模块及执行设备(台灯光源、蜂鸣器),实现了台灯的自动化感知与智能调控。系统核心功能包括:通过 D203S 实时检测周围是否有人,作为台灯开关的基础判断依据;借助 5516 检测光照强度,当光照值大于设置最大值时台灯熄灭,光照值小于最大值且有人时台灯低亮度,光照值低于最小值且有人时台灯高亮度;利用红外避障模块检测人是否靠近,检测到靠近时台灯转为微光;通过 DS1302 获取时间,支持按键修正时间,可设置开灯计时,到达计时时间蜂鸣器提醒 2 秒;支持通过按键设置光照最大最小值、切换自动控制灯亮度模式及手动调节;通过 OLED 显示屏实时显示各项检测数据、时间及设备状态;利用蓝牙模块将数据同步至手机端,实现远程监测与亮度调节、模式切换。​

该系统有效提升了台灯使用的智能化与便捷性,实现了照明的按需调控,兼顾节能与使用舒适度,为智能照明设备的研发提供了参考,具有较高的实际应用价值。

关键词:STM32F103C8T6;智能台灯;测控系统;传感器;智能调控;蓝牙通信

ABSTRACT

Traditional table lamps mostly rely on manual switches and fixed brightness adjustment, which have problems such as insufficient on-demand matching of lighting, poor energy efficiency, and limited operational convenience, making it difficult to meet the intelligent and personalized lighting needs in modern life.​

The intelligent table lamp measurement and control system based on the STM32F103C8T6 microcontroller integrates the D203S human infrared sensor, 5516 light detection module, infrared obstacle avoidance module, DS1302 clock module, buttons, OLED display, ECB02 Bluetooth module, and executive devices (table lamp light source, buzzer), realizing automatic sensing and intelligent control of the table lamp. The core functions of the system include: real-time detection of whether there is a person around through D203S, which serves as the basic judgment basis for the table lamp switch; detection of light intensity with 5516, when the light value is greater than the set maximum value, the table lamp turns off; when the light value is less than the maximum value and there is a person, the table lamp is at low brightness; when the light value is lower than the minimum value and there is a person, the table lamp is at high brightness; using the infrared obstacle avoidance module to detect whether a person is approaching, and when a person is detected approaching, the table lamp turns to dim light; obtaining time through DS1302, supporting time correction through buttons, setting the lamp-on timing, and the buzzer will remind for 2 seconds when the timing time is reached; supporting the setting of maximum and minimum light values, switching the automatic control of lamp brightness mode and manual adjustment through buttons; real-time display of various detection data, time and equipment status through the OLED display; using the Bluetooth module to synchronize data to the mobile phone, realizing remote monitoring and equipment control (brightness adjustment, mode switching).​

This system effectively improves the intelligence and convenience of table lamp use, realizes on-demand control of lighting, takes into account energy saving and use comfort, provides a reference for the research and development of intelligent lighting equipment, and has high practical application value.

Keywords:STM32F103C8T6; intelligent table lamp; measurement and control system; sensor; intelligent control; Bluetooth communication

目录

第1章 绪论

1.1 研究的目的及意义

1.2 国内外发展情况

1.3 本文主要研究内容

第2章 设计思路与方案论证

2.1 主要元器件选择

2.1.1 主控芯片选择

2.1.2 人体红外传感器选择

2.1.3 光照检测模块选择

2.1.4 红外避障模块选择

2.1.5 时钟模块选择

2.1.6 显示模块选择

2.1.7 蓝牙模块选择

2.2整体设计方案

第 3 章 硬件设计

3.1 主控电路模块

3.2 人体红外传感器电路

3.3 光照检测模块电路

3.4 红外避障传感器电路

3.5 时钟模块电路

3.6 显示模块电路

3.7 蓝牙模块电路

3.8 按键模块电路

3.9 执行设备驱动电路

第4章 系统程序设计

4.1 编程软件介绍

4.2 系统主流程设计

4.3 独立按键

4.4 OLED显示流程设计

4.5 LED灯亮度调节子流程设计

4.6 时钟模块子流程设计

4.7 蓝牙模块子流程

第 5 章 实物测试

5.1 整体实物测试

5.2 人体红外传感器功能测试

5.3 光照检测与亮度调节功能测试

5.4 红外避障与靠近感应功能测试

5.5 时钟与定时提醒功能测试

5.6 蓝牙模块功能测试

5.7 按键设置与显示功能测试

5.8 综合模式运行测试

第6章 总结与展望

致谢

参考文献

附录

附录一:原理图

附录二:PCB

附录三:主程序

http://www.jsqmd.com/news/332316/

相关文章:

  • 2026高职大数据专业数据分析学习必要性
  • 100k Star,他们给Clawdbot升级了超级记忆 moltbot
  • 2026年国内评分高的PE燃气管源头厂家TOP排名解析!看这里就对了!
  • SMP581是一款高精度、低功耗的绝对气压传感器
  • 基于Java的旅行攻略与搭子系统源码剖析
  • 基于微信小程序的体育资讯平台【源码+文档+调试】
  • 2026年 MBR膜厂家推荐排行榜,中空纤维MBR膜/超滤膜/柱式膜/绳型生物填料/RO膜,专业水处理膜技术实力品牌深度解析
  • 微服务调用组件深度解析:Feign与Dubbo实战指南
  • Java搭建:旅行攻略搭子系统源码大揭秘
  • 2026年安庆全屋整装公司选择:数据驱动下的避坑指南与安庆服务商深度解析
  • 碳晶板加工厂哪家专业,新晨源技术先进定制灵活多元
  • 金豺GJO优化CNN-LSTM用于多变量负荷预测(Matlab代码示例)
  • 华创基本信息大揭秘,天津企业选购其服务划算吗
  • 高性价比之选:当前热门的投影机出租厂家,投影仪出租/50000流明投影机/2万流明投影机出租,投影机出租供应厂家推荐
  • 2026年美国雇主担保移民费用情况,哪个移民中介口碑好
  • AI扩大攻击面,大国博弈引发安全新挑战
  • 2026年印刷机厂家实力推荐榜:丝网/线路板/全自动/CCD视觉/亚克力/大尺寸/玻璃/盖板印刷机,精准高效与稳定耐用之选
  • 2026北京有停车位、网络覆盖的园区写字楼出租,靠谱品牌推荐
  • AutoPentestX:面向 Linux 系统的自动化渗透测试工具包
  • 卧式加工中心哪家好?聚焦科技前沿的综合实力榜单 葵发机电深度解析
  • 聊聊佛山口碑好的橱柜台面工厂,排名如何
  • 【ACM出版 | EI检索】第七届计算机信息和大数据应用国际学术会议(CIBDA 2026)
  • 电动车托运不拆电池?哪家物流便宜又好,怎么寄划算?一篇全讲明白!
  • 超声波清洗机哪个牌子好?十大知名品牌与口碑推荐全解析
  • 【小程序毕设全套源码+文档】基于微信小程序的私家车位共享系统设计与实现(丰富项目+远程调试+讲解+定制)
  • 超越基础文本处理:深入spaCy NLP API的工业级应用与架构实践
  • 精准高效迈向市场:IACheck的AI审核如何保障蓝牙设备认证报告质量
  • 【小程序毕设全套源码+文档】基于微信小程序的社区养老保障系统设计与实现(丰富项目+远程调试+讲解+定制)
  • 从“工具响应”到“智能体驱动”:营销自动化迈入“一句话交代”新时代
  • 深度解析:fixed 定位导致滚动条遮挡问题及 right: 15px 的巧妙解决方案