基于STC12C5A60S2单片机的LED光立方设计 下载本文

内容发布更新时间 : 2024/5/25 4:14:32星期一 下面是文章的全部内容请认真阅读。

1

【摘要】 本次设计使用512个LED灯制作8*8*8的LED立方体,命名为光立方。采用

STC12C5A60S2芯片作为主控,8个74HC573锁存器和一个ULN2803芯片扩展I/O口,作为外围控制。通过编程控制I/O口,点亮指定的LED灯,使得显示不同的画面。8*8*8光立方因点亮LED灯将会形成各种图形,如爱心、数字、雨滴、正方体等十几种画面。整个立体呈现不同的造型和图案,动画衔接完美,使其变得美轮美奂、绚丽多彩,立体感十足。此外,我们还可以外接音频输入,通过AD采样,快速傅里叶变换FFT,可以让光立方显示音频频谱。经过系统测试,最终达到设计要求。

【关键词】

光立方2

STC12C5A60S2 74HC573 ULN2803

Based on STC12C5A60S2 of the Light Cube Design

【Abstract】:The 8*8*8 LED cube is made of 512 LED lights,named Light Cube which

used STC12C5A60S2 as main control chip,it has 8 74HC573 latches extended I/O ports,and a ULN2803 chip as out control. Through programming control I/O port, the LED light. 8 * 8 * 8 cubic light for light leds will form a variety of graphics, such as love heart,numbers,rain,cube and so on. animation, cohesion is perfect, stereo sense is dye-in-the-wood. In addition, we also can external audio input, through the AD sampling, fast Fourier transform FFT, can let light cube display audio spectrum. After the system test, finally to meet the design requirements.

【Keywords】: The Light Cube STC12C5A60S2 74HC573 ULN2803

目 录

【摘要】 ....................................................................................................................................................... 2 【Abstract】 ................................................................................................................................................. 3 目 录 ............................................................................................................................................................... 3 第一章 引言 ................................................................................................................................................... 1

1.1光立方的研究意义 ............................................................................................................................ 1 1.2发展历程和现状................................................................................................................................ 1 1.3 光立方的功能和特点 ....................................................................................................................... 1 1.4 光立体的优越性以及主要应用 ...................................................................................................... 2 第二章 控制模块设计.................................................................................................................................... 3

2.1 系统总框图 ...................................................................................................................................... 3 2.2 总体方案的选择............................................................................................................................... 3

2.2.1主控芯片................................................................................................................................. 3 2.2 总体方案的选择............................................................................................................................... 3

3