The utility model provides a dimming system based on MCU AD sampling and PWM, including the potentiometer, AD sampling module, MCU, power module, voltage regulator circuit, reset circuit, driver module, display module, keyboard module, buzzer module, crystal oscillator circuit and a downloading module; a power module is connected with the MCU, and drive module by potentiometer the voltage regulator circuit, potentiometer connected with the singlechip by AD sampling module, MCU to connect the drive module, reset circuit, display module, keyboard module, buzzer module, crystal oscillator circuit and download module, driving module for driving LED. The utility model through the microcontroller on the spiral potentiometer AD sampling, the continuous change of voltage signal into a digital signal, digital signal directly control the PWM wave output, in order to change the duty ratio of PWM wave and then adjust the LED light intensity, the circuit has simple structure, low cost, flexible and convenient operation, can be widely used in home lighting.
【技术实现步骤摘要】
本技术属于电子
,具体涉及一种基于单片机AD采样和PWM的调光系统。
技术介绍
随着社会的发展,节约能源已经是当今热议的话题。国家建设部对光照节能控制器的设计要求是在不降低照明质量条件下充分利用其它能源。对于能源的损耗最理想的环境是做到零损耗,所以就需要提出一种能够根据环境和气氛的不同自动调节亮度的装置。传统的对一些连续的变化量(比如调光,调速等)的控制,为用户按键式控制,用户操作起来会造成诸多不便。并且存在着使用寿命短,噪音较大,极易受干扰且操作繁琐同时不灵活。
技术实现思路
本技术目的之一在于为克服现有技术的缺陷,提供了一种结构简单、成本较低、操作灵活方便的基于单片机AD采样和脉冲宽度调制(PulseWidthModulation,简称PWM)的调光系统。本技术提供的一种基于单片机AD采样和PWM的调光系统,包括电位器、AD采样模块、单片机、电源模块、稳压电路、驱动模块、复位电路、显示模块、按键模块、蜂鸣器模块、晶振电路及下载模块;所述电源模块通过所述稳压电路连接所述单片机、电位器及驱动模块,所述电位器通过AD采样模块连接所述单片机,所述单片机连接所述驱动模块、复位电路、显示模块、按键模块、蜂鸣器模块、晶振电路及下载模块,所述驱动模块用于驱动LED。进一步的,所述单片机采用型号为STC12C5A60S2的单片机。本技术的有益效果在于,本技术通过单片机对螺旋电位器进行AD采样,把连续变化电压信号转 ...
【技术保护点】
一种基于单片机AD采样和PWM的调光系统,其特征在于,包括电位器、AD采样模块、单片机、电源模块、稳压电路、驱动模块、复位电路、显示模块、按键模块、蜂鸣器模块、晶振电路及下载模块;所述电源模块通过所述稳压电路连接所述单片机、电位器及驱动模块,所述电位器通过AD采样模块连接所述单片机,所述单片机连接所述驱动模块、复位电路、显示模块、按键模块、蜂鸣器模块、晶振电路及下载模块,所述驱动模块用于驱动LED。
【技术特征摘要】
1.一种基于单片机AD采样和PWM的调光系统,其特征在于,包括电位器、AD采样
模块、单片机、电源模块、稳压电路、驱动模块、复位电路、显示模块、按键模块、蜂鸣器
模块、晶振电路及下载模块;
所述电源模块通过所述稳压电路连接所述单片机、电位器及驱动模块,所述电位器通过
AD采样...
【专利技术属性】
技术研发人员:于惠钧,袁宇君,柳云山,
申请(专利权)人:湖南工业大学,
类型:新型
国别省市:湖南;43
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。