STC89C52单片机工业中LED亮度的精确检测设计
时间:2024-11-07 21:53 来源:98417 作者:毕业论文 点击:次
摘要:在过去的几十年里电子产业的发展日新月异,各类电子产品大量上市。作为指示用的LED灯在各类电子产品中都是常见的。对于一个企业来说,企业往往非常重视公司自身的产品品质。对于产品中含有LED的公司来说,LED灯珠亮度是否达标也是其产品品质是否合格的一项不可忽略的指标。 本课题是基于STC89C52的LED亮度检测,通过数字光强度传感器进行数据采集,使用单片机进行数据处理,实现LED亮度的精确检测。系统以单片机为核心,GY30为输入,依据BH1750FVI的芯片特点,使用单片机对采集到的数据进行二次处理,将处理完成后的数据通过串口上传至上位机。用LCD1602作为显示输出,可以直观的看到LED亮度的变化及数值。 最后通过测试得出的数据对比,本设计达到了预想的要求,能够精确的检测出LED灯的亮度并检测出亮度值的细小变化。 关键词:单片机;STC89C52;LED亮度;BH1750FVI Abstract:In recent years, the electronics industry developed rapidly, there is a lot of electronics in the market.LED lights used as indicators are common in all kinds of electronic products. For an enterprise, companies tend to attach great importance to the quality of their products. For those companies that have LED in their products, it is also an important indicator that the quality of the LED lamp is qualified. This subject is based on STC89C52 LED brightness detection, using the digital light intensity sensor to collect data, and using single chip microcomputer to process data, to achieve accurately detect LED brightness. System using the single chip processor as the core, GY30 as input. According to the chip characteristics of BH1750FVI, This subject using single chip microcomputer to the secondary process collected data, upload the processed data to the upper computer through the serial port. This subject use LCD1602 as the output, through the LCD1602 to show the value of the LED brightness. Finally, Proved by the test data this design reached the requirement, it can accurately detect the brightness of LED, and detect small changes in brightness values. Keywords: single chip Microcomputer ; STC89C52 ; LED brightness ;BH1750FVI 目录 第一章绪论 1 1.1课题的背景、研究意义 1 1.2研究现状 1 1.3存在问题 2 第二章系统方案设计 3 2.1常用设计方案 3 2.1.1CAMERA方案 3 2.1.2光谱分析仪方案 3 2.1.3传感器方案 4 2.2设计方案比较 4 第三章系统硬件电路设计 5 3.1系统总体设计 5 3.1.1系统总体设计框图 5 3.2.2单片机的选择及其简介 5 3.2.3其他芯片介绍 6 3.3电源转换设计 7 3.3.1LM2576开关降压稳压器介绍 7 3.3.2实际电路设计 8 3.4显示电路设计 9 3.5复位电路的设计 9 第四章主程序及驱动设计 11 4.1EEPROM驱动程序设计 (责任编辑:qin) |