RM新时代网站-首页

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

制作一個(gè)8X8X8光立方的詳細(xì)資料和程序概述

Wildesbeast ? 來(lái)源:未知 ? 2019-08-31 09:51 ? 次閱讀

這一陣剛休息閑著無(wú)聊制作8X8X8光立方,應(yīng)為是初學(xué)者有什么問題請(qǐng)見諒??!~~~

一、光立方的基本原理

利用人眼的暫留效應(yīng),利用單片機(jī)控制LED燈泡快速的閃爍,顯示出一個(gè)完整的圖案!

二、使用工具和材料

(一)、使用工具:1、焊槍(不用這么好的,隨便哪種便宜的也行)2、剝線鉗3、鋸子(要是相信自己的手工能力,就挑戰(zhàn)手鋸吧,手鋸便宜啊?。?、鋼尺5、電鉆6、電流表(主要用來(lái)測(cè)是否焊錯(cuò)的)7、鑷子8、熱熔膠槍(可有可無(wú))

(二)使用材料:1、單片機(jī)X1個(gè)2、最小系統(tǒng)X1個(gè)(帶寫入功能的,我這個(gè)是不帶的,應(yīng)為我有實(shí)驗(yàn)板)3、74hc136X9個(gè)4、74hc573X1個(gè)5、LED燈X516個(gè)(顏色無(wú)所謂)6、排插、排針多個(gè)(排插至少要兩排,做底盤需要64個(gè)點(diǎn))7、實(shí)驗(yàn)板(看大小購(gòu)買,夠用就行)8、熱縮管(不用太多,夠用就好)9、電線(這個(gè)要不少,看著來(lái)吧)10、20針插座1個(gè)、16針插座9個(gè)

(三)原件原理

1、74hc138:作用是用三位二進(jìn)制數(shù),來(lái)輸出只有一位為零的八位二進(jìn)制數(shù)

2、74hc573:鎖存器,在這次中沒用的什么功能,主要用來(lái)電流放大的,

OE、GNG直接地線,Vcc、LE直接接電源就行了。

三、--》電路圖

應(yīng)為是一個(gè)8X8X8的立體結(jié)構(gòu),用三軸坐標(biāo)系就可以分別控制單一一盞燈

74hc573(Y)控制Y軸

74hc138(Z)控制Z軸

74hc138(X1~X8)控制X軸

四、制作流程

現(xiàn)在開始正式制作了,前面全是準(zhǔn)備。

1、 彎LED燈的針腳,注意正負(fù)極不要搞錯(cuò)了,一共彎512個(gè),多彎上幾個(gè),作為備用的。

2、 制作定位板,井字形的間隔為20mm,8行8列共計(jì)64個(gè)點(diǎn),可以用紙張劃線代替。(我這個(gè)其實(shí)只有7*8個(gè)實(shí)在是沒大板子了!~~)

3、 用定位板焊接單一一排8個(gè),正極正極項(xiàng)鏈焊接,中間間隔20mm,一共焊64條。

4、 64個(gè)單條焊好后,用8個(gè)單條組成一個(gè)面,這時(shí)是負(fù)極與負(fù)極相連,每條之間的間距是20mm,焊接時(shí)順便調(diào)整陣腳,不要短路了。一共8面。

5、 焊好8面以后,就是測(cè)試環(huán)節(jié)了,負(fù)極串聯(lián)起來(lái),給每一行的正極單獨(dú)供一次電觀察有沒有短路、沒亮、亮度暗等問題的,及時(shí)更換,修理。

6、 制作插座,將排插剪開只留下中間的銅質(zhì)圓柱插座,直接焊接在實(shí)驗(yàn)板上,橫豎各8排,其中間隔20mm,共計(jì)64個(gè)點(diǎn)。焊好后背面每個(gè)點(diǎn)連出一條線,用以連接74hc138(X1~X8)。線路簡(jiǎn)單的梳理一下用東西暫時(shí)固定一下。然后在線的另一端用剪開的排針焊上一個(gè)插頭,以備后面連接使用,焊好后套上熱縮管(這些圖片都不是當(dāng)時(shí)照的,這是已經(jīng)鋸掉一半了,另一半和這一半一樣)

7、 將8個(gè)面插到低上,將橫向相鄰的正極彎好后直接焊道一起,注意之間的間隔是20mm,使每一層所有燈的正極是串聯(lián)在一起的,然后每一層單獨(dú)引出一條線(圖中的紅線),分別插在74Hc573(Y)的O0~O7口上。

8、 焊好后就可以放到一邊了,接下來(lái)就是焊控制電路了。

我們不用將芯片直接焊在實(shí)驗(yàn)板上,先焊插座,讓后將芯片插進(jìn)去,這樣就不會(huì)出現(xiàn)燒壞芯片的情況了。

74hc138(X1~X8)焊接在一塊將這8塊芯片的Vcc、E3全部串聯(lián)到一起用來(lái)輸入電壓,GND,E2串聯(lián)到一起直接接地,然后是A、B、C、分別串聯(lián)一塊,分別連接單片機(jī)的P1.0口、P1.1口、P1.2口,Y0~Y7分別單獨(dú)的向正面引出排插每一個(gè)口單獨(dú)焊接不是串聯(lián),用來(lái)連接底座上的64個(gè)點(diǎn),E1向正面單獨(dú)引出一個(gè)排針,用來(lái)連接74Hc138(Z)的(Y0~Y7)。焊接完成后用萬(wàn)用電流表檢查是否有虛焊,焊錯(cuò)的。

74hc138(Z)和74HC573(Y)的焊接方法都是每個(gè)針單獨(dú)連接一個(gè)排針。

9、74hc138(X1~X8)焊接在一塊將這8塊芯片的Vcc、E3全部串聯(lián)到一起用來(lái)輸入電壓,GND,E2串聯(lián)到一起直接接地,然后是A、B、C、分別串聯(lián)一塊,分別連接單片機(jī)的P1.0口、P1.1口、P1.2口,Y0~Y7分別單獨(dú)的向正面引出排插每一個(gè)口單獨(dú)焊接不是串聯(lián),用來(lái)連接底座上的64個(gè)點(diǎn),E1向正面單獨(dú)引出一個(gè)排針,用來(lái)連接74Hc138(Z)的(Y0~Y7)

74hc138(Z)A、B、C口分別連接單片機(jī)的P1.3口、P1.4口、P1.2口

74hc73(Y)D0~D7八個(gè)口連接單片機(jī)的P0的八個(gè)口,OE、GNG直接地線,Vcc、LE直接接電源就行了。剩下的O0~O7口分別連接Y軸的每一層。

直接算是徹底的安裝好了。

裝飾用的自選項(xiàng):

1、 剪裁出180mmX180mm正方形,在背面畫井字形方格,間距20mm,然后再交錯(cuò)點(diǎn)處打孔。

2、 將底板鋸開,接頭一一對(duì)應(yīng)的插入鉆好的孔,用膠水固定,全部粘好后,梳理線路用熱熔膠將線路粘牢,再將每一列的八條線用熱縮管捆到一起。

這就算是徹底的完成了!~~~

五、程序

#include《reg52.h》

#define uint unsigned int

#define uchar unsigned char

uchar a,b,c;

uchar code TAB[]={

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x7F,0x41,0x7F,0x3E,0x00,

0x00,0x00,0x3E,0x7F,0x41,0x7F,0x3E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x7F,0x7F,0x40,0x00,0x00,

0x00,0x00,0x42,0x7F,0x7F,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x62,0x73,0x59,0x4F,0x46,0x00,

0x00,0x00,0x62,0x73,0x59,0x4F,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x6B,0x49,0x7F,0x36,0x00,

0x00,0x00,0x22,0x6B,0x49,0x7F,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x3E,0x7F,0x7F,0x20,0x00,

0x00,0x00,0x38,0x3E,0x7F,0x7F,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4F,0x4F,0x49,0x79,0x31,0x00,

0x00,0x00,0x4F,0x4F,0x49,0x79,0x31,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x7F,0x49,0x7B,0x32,0x00,

0x00,0x00,0x3E,0x7F,0x49,0x7B,0x32,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x73,0x79,0x0F,0x07,0x00,

0x00,0x00,0x03,0x73,0x79,0x0F,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x36,0x7F,0x49,0x7F,0x36,0x00,

0x00,0x00,0x36,0x7F,0x49,0x7F,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26,0x6F,0x49,0x7F,0x3E,0x00,0x00,

0x00,0x26,0x6F,0x49,0x7F,0x3E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x7F,0x11,0x7F,0x7E,0x00,0x00,

0x00,0x7E,0x7F,0x11,0x7F,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x49,0x7F,0x36,0x00,0x00,

0x00,0x7F,0x7F,0x49,0x7F,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x7F,0x41,0x63,0x22,0x00,0x00,

0x00,0x3E,0x7F,0x41,0x63,0x22,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x41,0x7F,0x3E,0x00,0x00,

0x00,0x7F,0x7F,0x41,0x7F,0x3E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x49,0x49,0x41,0x00,0x00,

0x00,0x7F,0x7F,0x49,0x49,0x41,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x09,0x09,0x01,0x00,0x00,

0x00,0x7F,0x7F,0x09,0x09,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x7F,0x49,0x7B,0x3A,0x00,0x00,

0x00,0x3E,0x7F,0x49,0x7B,0x3A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x08,0x7F,0x7F,0x00,0x00,

0x00,0x7F,0x7F,0x08,0x7F,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x7F,0x7F,0x41,0x00,0x00,0x00,

0x00,0x41,0x7F,0x7F,0x41,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x70,0x40,0x7F,0x3F,0x00,0x00,

0x00,0x30,0x70,0x40,0x7F,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x1C,0x77,0x63,0x00,0x00,

0x00,0x7F,0x7F,0x1C,0x77,0x63,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x40,0x40,0x40,0x00,0x00,

0x00,0x7F,0x7F,0x40,0x40,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x06,0x7F,0x7F,0x00,0x00,

0x00,0x7F,0x7F,0x06,0x7F,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x1E,0x7F,0x7F,0x00,0x00,

0x00,0x7F,0x7F,0x1E,0x7F,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x41,0x7F,0x7F,0x00,0x00,

0x00,0x7F,0x7F,0x41,0x7F,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x09,0x0F,0x06,0x00,0x00,

0x00,0x7F,0x7F,0x09,0x0F,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x7F,0x71,0x7F,0x7E,0x00,0x00,

0x00,0x3E,0x7F,0x71,0x7F,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x39,0x6F,0x46,0x00,0x00,

0x00,0x7F,0x7F,0x39,0x6F,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26,0x6F,0x49,0x7B,0x32,0x00,0x00,

0x00,0x26,0x6F,0x49,0x7B,0x32,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x7F,0x7F,0x01,0x01,0x00,0x00,

0x00,0x01,0x7F,0x7F,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x7F,0x40,0x7F,0x3F,0x00,0x00,

0x00,0x3F,0x7F,0x40,0x7F,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x7F,0x70,0x7F,0x0F,0x00,0x00,

0x00,0x0F,0x7F,0x70,0x7F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x30,0x7F,0x7F,0x00,0x00,

0x00,0x7F,0x7F,0x30,0x7F,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x7F,0x1C,0x7F,0x63,0x00,0x00,

0x00,0x63,0x7F,0x1C,0x7F,0x63,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x07,0x7C,0x7C,0x07,0x03,0x00,0x00,

0x03,0x07,0x7C,0x7C,0x07,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0x79,0x5D,0x4F,0x43,0x00,0x00,

0x00,0x61,0x79,0x5D,0x4F,0x43,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

void delay(uint z) //延時(shí)程序

{

uint x,y;

for(x=z;x》0;x--)

for(y=10;y》0;y--);

}

void xianshi1(uchar d) //顯示程序

{

for(a=0;a《64;a++)

{

P0=TAB[64*d+a];

P1=a;

delay(1);

}

}

void init() //定時(shí)器初始化程序

{

TMOD=0x01;

TH0=(65536-50000)/256;

TL0=(65536-50000)%6;

EA=1;

ET0=1;

TR0=1;

a=b=c=0;

P1=0;

P0=0;

}

void main()

{

init();

while(1)

{

if(c》=50)

{

c=0;

b++;

}

xianshi1(b);

if(b》=36)

b=0;

}

}

void timer0() interrupt 1

{

TH0=(65536-50000)/256;

TL0=(65536-50000)%6;

c++;

}

程序用來(lái)顯示的圖案應(yīng)為暫時(shí)沒有時(shí)間去編了,只能靠大家來(lái)整了!~~

圖案的編輯規(guī)則是:應(yīng)為是每一次給Y軸一個(gè)8位的圖案,所以只要64次就可以循環(huán)過來(lái)了,如圖示,第一面顯示完成后第二面開始顯示,來(lái)回八次,直到第八面顯示完成,再次轉(zhuǎn)到第一面,再次循環(huán)以上步奏,因?yàn)樗俣扰秹蚩?,就可形成完整的圖案安了。

所以如果要形成一個(gè)完整的圖案就要有64個(gè)數(shù)據(jù)。

這就算是徹底的制作完成了!~~

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • led
    led
    +關(guān)注

    關(guān)注

    242

    文章

    23252

    瀏覽量

    660551
  • 單片機(jī)
    +關(guān)注

    關(guān)注

    6035

    文章

    44554

    瀏覽量

    634614
  • 光立方
    +關(guān)注

    關(guān)注

    23

    文章

    164

    瀏覽量

    60554
收藏 人收藏

    評(píng)論

    相關(guān)推薦

    8x8x8立方間距多大比較好

    8x8x8立方間距多大比較好?
    發(fā)表于 05-12 22:58

    【六歲孩子實(shí)驗(yàn)屋(上)】8x8x8 LED 立方

    大家好, 我是張柏巒, 我今年 6 歲了, 在今天的電子實(shí)驗(yàn)中, 我們使用 512 個(gè)綠色發(fā)光二極管, 組成個(gè)8x8x8 的燈光立方體,
    發(fā)表于 02-24 18:39

    【六歲神奇孩子】電子實(shí)驗(yàn)屋8x8x8 LED 立方(中集)效果演示篇

    `我是張柏巒, 我今年 6 歲了, 今天,我們準(zhǔn)備用 512 個(gè)綠色發(fā)光二極管, 組成個(gè)8x8x8 LED
    發(fā)表于 02-26 20:08

    8x8x8立方原理圖下載

    8X8X8立方,有用的拿去原理圖.pdf
    發(fā)表于 07-13 03:47

    8x8x8立方原理圖和PCB下載

    立方原理圖和PCB 希望對(duì)大家都有幫助8X8X8原理圖和PCB.rar 2015-5-10 21:34 上傳 點(diǎn)擊文件名下載附件 349.51 KB, 下載次數(shù): 62
    發(fā)表于 07-19 05:26

    基于STC89C52單片機(jī)8x8x8的LED立方設(shè)計(jì)資料分享

    1.簡(jiǎn)介本設(shè)計(jì)是以STC89C52單片機(jī)的8x8x8的LED立方。本設(shè)計(jì)將LED立方分成8
    發(fā)表于 11-18 07:27

    3D立方的設(shè)計(jì)與制作

    本篇文章介紹了8x8x8立方制作的整個(gè)過程以及設(shè)計(jì)
    發(fā)表于 02-24 16:00 ?9次下載

    8X8X8立方原理圖

    8X8X8立方原理圖,感興趣的小伙伴們可以看看。
    發(fā)表于 07-26 14:09 ?7次下載

    如何設(shè)計(jì)個(gè)立方8x8x8立方的完整原理圖及PCB資料

    很早以前,就有相關(guān)的視頻資料,在國(guó)內(nèi)各大視頻網(wǎng)站出現(xiàn),樣式絢麗,也直有很多玩家想放置,對(duì)于這個(gè)東西來(lái)說,本身技術(shù)不是很復(fù)雜,也不是很簡(jiǎn)單,更多 的是需要耐心下面我就來(lái)詳解如何打造個(gè)
    發(fā)表于 06-05 08:00 ?0次下載
    如何設(shè)計(jì)<b class='flag-5'>一</b><b class='flag-5'>個(gè)</b><b class='flag-5'>光</b><b class='flag-5'>立方</b>和<b class='flag-5'>8x8x8</b><b class='flag-5'>光</b><b class='flag-5'>立方</b>的完整原理圖及PCB<b class='flag-5'>資料</b>

    立方制作教程之3D8立方詳細(xì)制作資料免費(fèi)下載

    本文檔的主要內(nèi)容詳細(xì)介紹的是立方制作教程之3D8立方
    發(fā)表于 08-29 15:23 ?228次下載
    <b class='flag-5'>光</b><b class='flag-5'>立方</b><b class='flag-5'>制作</b>教程之3D<b class='flag-5'>8</b><b class='flag-5'>光</b><b class='flag-5'>立方</b><b class='flag-5'>詳細(xì)</b><b class='flag-5'>制作</b><b class='flag-5'>資料</b>免費(fèi)下載

    如何使用STC單片機(jī)進(jìn)行8X8X8的LED立方系統(tǒng)設(shè)計(jì)

    為解決二維 LED顯示屏顯示單調(diào)和立體性差的問題,以STC系列單片機(jī)為核心,采用鎖存器74HC573和ULN2803芯片實(shí)現(xiàn)大功率LED的驅(qū)動(dòng),提出了軟硬件系統(tǒng)設(shè)計(jì)方案,并完成了8X8X8的LED
    發(fā)表于 07-31 16:40 ?24次下載
    如何使用STC單片機(jī)進(jìn)行<b class='flag-5'>8X8X8</b>的LED<b class='flag-5'>光</b><b class='flag-5'>立方</b>系統(tǒng)設(shè)計(jì)

    8x8x8立方的C語(yǔ)言程序和工程文件免費(fèi)下載

    本文檔的主要內(nèi)容詳細(xì)介紹的是8x8x8立方的C語(yǔ)言程序和工程文件免費(fèi)下載
    發(fā)表于 12-20 08:00 ?102次下載
    <b class='flag-5'>8x8x8</b><b class='flag-5'>光</b><b class='flag-5'>立方</b>的C語(yǔ)言<b class='flag-5'>程序</b>和工程文件免費(fèi)下載

    制作4X4X4立方詳細(xì)資料說明

    本文檔的主要內(nèi)容詳細(xì)介紹的是制作4X4X4立方詳細(xì)資料說明包括了:圖文教程,原理圖,源代碼
    發(fā)表于 12-23 15:24 ?21次下載
    <b class='flag-5'>制作</b>4<b class='flag-5'>X4X</b>4<b class='flag-5'>立方</b><b class='flag-5'>光</b>的<b class='flag-5'>詳細(xì)資料</b>說明

    8x8x8 RGB LED立方體開源分享

    電子發(fā)燒友網(wǎng)站提供《8x8x8 RGB LED立方體開源分享.zip》資料免費(fèi)下載
    發(fā)表于 10-19 14:53 ?4次下載
    <b class='flag-5'>8x8x8</b> RGB LED<b class='flag-5'>立方</b>體開源分享

    8x8x8 LED立方體的制作

    今天,我們就來(lái)介紹如何做一個(gè)我們自己的8x8x8 LED立方體,希望入門級(jí)愛好者能夠順利完成它。
    的頭像 發(fā)表于 11-25 17:00 ?8418次閱讀
    RM新时代网站-首页