摘要
本设计为单片机控制的可调光小夜灯。将MCS-51单片机输出的数字信号经D/A转换器PCF8591转换成模拟电压后,控制LED灯的亮度。灯中有两个按键S1和S2,按下按键S1可使台灯亮度增加,按下按键S2则使台灯亮度减弱至熄灭。
The design is adjustable light night light. The digital signal produced by MCS-51 MCU is converted to analog voltage by D/A converter PCF8591,and the brightness of LED lamp is controlled. There are two buttons in the light,S1 and S2. Press the button S1 to increase the brightness of the light and press the button S2,so that the brightness of the table lampt is reduced to the state of extinction.
出处
《职业技术》
2017年第9期123-124,共2页
Vocational Technology
关键词
小夜灯
D/A转换
night light
D/A conversion