_SKU_DFR0499_64x64_RGB_LED_Matrix_ _3mm_pitch - jimaobian/DFRobotWikiCn GitHub Wiki
简介
大街小巷, 是不是常看到路边播放动画或短片的广告牌呢?有没有想过要搬回家呢?想想是不是很炫酷呢?不用着急,64 x 64 方形 RGB 全彩LED 屏幕来啦。我们把它从工厂带来了这里。 该面板由4096个RGB led按照64X64网格组成。背后,有两个IDC 连接器,一个输入,一个输出,可多个屏幕级联控制;12个16位锁存可以让你以1/16扫描速率驱动显示屏。面板需要用到13个IO 引脚(6个数据位,7个控制位),一个5V,输出高达4A以上的电源。 该LED 面板,不能用常规的Uno来驱动,因为它太大了!mega,树莓派或者其他的设备都可以用来驱动这块RGB面板,因为有足够的RAM. 它还是一款全彩、高亮度、寿命长、色彩纯正、无污染LED显示模组,室内室外均可使用,安全稳定,模块之间不会相互挤压变形,恶劣环境下也可以正常使用。
注意:注意:显示屏电流较大,需要外接电源驱动,不能用主控板直接驱动,否则会出现显示不全、出错等问题。 |
技术规格
- 驱动电压:DC 5V
- 平均功耗:小于500W/㎡
- 最大功耗:小于1000w/㎡
- 分辨率: 64*64= 4096 DOTS
- 可视角度水平:≧160°
- 控制方式:同步控制
- 驱动方式:1/16扫描速率
- 换幁频率:≧60Hz
- 白平衡亮度:≧1200cd/㎡
- 刷新频率:≧300Hz
- 像素间距:3mm
- 信号接口:HUB_75E
- 产品尺寸:190 * 190 * 14.5 mm
引脚说明
|
标号 | 名称 | 功能描述 |
1 | R1 | 高位R数据 |
2 | G1 | 高位G数据 |
3 | B1 | 高位B数据 |
4 | GND | 地 |
5 | R2 | 低位R数据 |
6 | G2 | 低位G数据 |
7 | B2 | 低位B数据 |
8 | E | E行选择 |
9 | A | A行选择 |
10 | B | B行选择 |
11 | C | C行选择 |
12 | D/GND | D行选择 |
13 | CLK | 时钟 |
14 | LAT | 锁存 |
15 | OE | 输出启用 |
16 | GND | 地 |
引脚名称
注:标号12的D/GND必须接D行选择信号,不能接地
标号 | 名称 | 功能描述 |
1 | VCC | 5V电源 |
2 | VCC | 5V电源 |
3 | GND | 地 |
4 | GND | 地 |
POWER
|}
使用教程
下列示例代码中分别显示了英文,汉字。如果想显示其它的汉字或DIY图形,可以使用取模软件进行。本次使用了CharacterMatrix取模软件(来自百度软件中心)
准备
- 硬件
- 1 x DFRduino Mega2560 V3.0控制器
- 1 x MEGA传感器扩展板 V2.4
- 1 x 直流电源
- 若干 杜邦线
- 软件
- Arduino IDE 点击下载Arduino IDE
接线图
/***************控制信号引脚与MEGA2560连接************************/ R1->24 G1->25 B1->26 R2->27 G2->28 B2->29 HA->A0 HB->A1 HC->A2 HD->A3 HE->A4 OE->9 LAT->10 CLK->11 GND->GND /***************电源接口**************************/ +5V->+5V直流电源正极 +5V->+5V直流电源正极 GND->直流电源负极 GND->直流电源负极
16P排线接口对应图
样例代码
点击下载DFRobot_RGBMatrix库文件。 如何安装库?
|
/*!
@file DFR0499.ino
@brief 64x64 RGB LED Matrix - 3mm pitch
@n [Get the module here]()
@n This example is to show different sizes of colorful characters and Chinese characters.
@n [Connection and Diagram](http://wiki.dfrobot.com.cn/index.php?title=(SKU:DFR0499)64x64_RGB_LED_Matrix_-_3mm_pitch#.E6.A0.B7.E4.BE.8B.E4.BB.A3.E7.A0.81)
@copyright [DFRobot](http://www.dfrobot.com), 2017
@copyright GNU Lesser General Public License
@author [lijun]([email protected])
@version V1.0
@date 2017-05-16
*/
#include <DFRobot_RGBMatrix.h> // Hardware-specific library
#define OE 9
#define LAT 10
#define CLK 11
#define A A0
#define B A1
#define C A2
#define D A3
#define E A4
#define WIDTH 64
#define HIGH 64
DFRobot_RGBMatrix matrix(A, B, C, D, E, CLK, LAT, OE, false, WIDTH, HIGH);
const uint8_t ZH1_1[] = {
0x04, 0x40, 0x0E, 0x50, 0x78, 0x48, 0x08, 0x48, 0x08, 0x40, 0xFF, 0xFE, 0x08, 0x40, 0x08, 0x44,
0x0A, 0x44, 0x0C, 0x48, 0x18, 0x30, 0x68, 0x22, 0x08, 0x52, 0x08, 0x8A, 0x2B, 0x06, 0x10, 0x02
};/*"我",0*/
const uint8_t ZH1_2[] = {
0x09, 0x00, 0x08, 0x80, 0x08, 0xBC, 0x12, 0x04, 0x12, 0x04, 0x32, 0x04, 0x32, 0x04, 0x52, 0x04,
0x92, 0x04, 0x12, 0x04, 0x12, 0x04, 0x12, 0x04, 0x12, 0x04, 0x12, 0x04, 0x12, 0x14, 0x12, 0x08
};/*"们",1*/
const uint8_t ZH1_3[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFE,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};/*"一",2*/
const uint8_t ZH1_4[] = {
0x08, 0x00, 0x08, 0x00, 0x08, 0xF8, 0x7E, 0x08, 0x08, 0x08, 0x08, 0x08, 0xFE, 0xF8, 0x08, 0x88,
0x28, 0x80, 0x28, 0x80, 0x2E, 0x84, 0x28, 0x84, 0x28, 0x7C, 0x58, 0x00, 0x4F, 0xFE, 0x80, 0x00
};/*"起",3*/
const uint8_t ZH1_5[] = {
0x08, 0x04, 0x08, 0x04, 0x14, 0x04, 0x12, 0x24, 0x21, 0x24, 0x40, 0xA4, 0xBE, 0x24, 0x22, 0x24,
0x22, 0x24, 0x22, 0x24, 0x2A, 0x24, 0x24, 0x24, 0x20, 0x84, 0x20, 0x84, 0x1F, 0x94, 0x00, 0x08
};/*"创",4*/
const uint8_t ZH1_6[] = {
0x00, 0x40, 0x22, 0x40, 0x13, 0xF8, 0x14, 0x40, 0x00, 0x40, 0x07, 0xFC, 0xF0, 0x00, 0x10, 0x00,
0x13, 0xF8, 0x12, 0x08, 0x12, 0x08, 0x13, 0xF8, 0x12, 0x08, 0x28, 0x00, 0x47, 0xFE, 0x00, 0x00
};/*"造",5*/
const uint8_t ZH1_7[] = {
0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x3F, 0xF8, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0xFF, 0xFE,
0x03, 0x80, 0x05, 0x40, 0x09, 0x20, 0x11, 0x10, 0x21, 0x08, 0xC1, 0x06, 0x01, 0x00, 0x01, 0x00
};/*"未",6*/
const uint8_t ZH1_8[] = {
0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x7F, 0xFC, 0x01, 0x00, 0x11, 0x10, 0x09, 0x10, 0x09, 0x20,
0xFF, 0xFE, 0x03, 0x80, 0x05, 0x40, 0x09, 0x20, 0x31, 0x18, 0xC1, 0x06, 0x01, 0x00, 0x01, 0x00
};/*"来",7*/
const uint8_t ZH2_1[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0x80, 0x00,
0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00,
0x07, 0xFF, 0xFF, 0xC0, 0x06, 0x03, 0x00, 0xC0, 0x06, 0x03, 0x00, 0xC0, 0x06, 0x03, 0x00, 0xC0,
0x06, 0x03, 0x00, 0xC0, 0x06, 0x03, 0x00, 0xC0, 0x06, 0x03, 0x00, 0xC0, 0x07, 0xFF, 0xFF, 0xC0,
0x06, 0x03, 0x00, 0xC0, 0x06, 0x03, 0x00, 0xC0, 0x06, 0x03, 0x00, 0xC0, 0x06, 0x03, 0x00, 0xC0,
0x06, 0x03, 0x00, 0xC0, 0x07, 0xFF, 0xFF, 0xC0, 0x06, 0x03, 0x00, 0x80, 0x06, 0x03, 0x00, 0x00,
0x00, 0x03, 0x00, 0x10, 0x00, 0x03, 0x00, 0x08, 0x00, 0x03, 0x00, 0x08, 0x00, 0x03, 0x00, 0x18,
0x00, 0x03, 0x80, 0x1C, 0x00, 0x01, 0xFF, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};/*"电",0*/
const uint8_t ZH2_2[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0,
0x03, 0xFF, 0xFF, 0xE0, 0x00, 0x00, 0x01, 0xE0, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x06, 0x00,
0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x01, 0xC0, 0x00, 0x00, 0x01, 0xC0, 0x00,
0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x10, 0x00, 0x01, 0x80, 0x38, 0x3F, 0xFF, 0xFF, 0xFC,
0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00,
0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00,
0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00,
0x00, 0x3F, 0x80, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};/*"子",1*/
const uint8_t ZH2_3[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x1C, 0x00, 0xC0,
0x00, 0x7E, 0x00, 0xC0, 0x0F, 0xC0, 0x00, 0xC0, 0x10, 0xC0, 0x40, 0xC0, 0x00, 0xC0, 0x30, 0xC0,
0x00, 0xC0, 0x38, 0xC0, 0x00, 0xC0, 0x18, 0xC0, 0x00, 0xC4, 0x18, 0xC0, 0x00, 0xCE, 0x00, 0xC0,
0x3F, 0xFF, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x40, 0xC0, 0x01, 0xE0, 0x30, 0xC0,
0x01, 0xD8, 0x30, 0xC0, 0x03, 0xCC, 0x10, 0xC0, 0x02, 0xCC, 0x10, 0xCC, 0x06, 0xC4, 0x00, 0xFC,
0x0C, 0xC0, 0x07, 0xC0, 0x08, 0xC0, 0xF8, 0xC0, 0x10, 0xC7, 0x00, 0xC0, 0x20, 0xC0, 0x00, 0xC0,
0x40, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0,
0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00
};/*"科",2*/
const uint8_t ZH2_4[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x01, 0xC0, 0x0E, 0x00,
0x01, 0x80, 0x0C, 0x00, 0x01, 0x80, 0x0C, 0x00, 0x01, 0x80, 0x0C, 0x00, 0x01, 0x80, 0x0C, 0x00,
0x01, 0x98, 0x0C, 0x18, 0x3F, 0xFF, 0xFF, 0xFC, 0x01, 0x80, 0x0C, 0x00, 0x01, 0x80, 0x0C, 0x00,
0x01, 0x80, 0x0C, 0x00, 0x01, 0x80, 0x0C, 0x00, 0x01, 0x8C, 0x0C, 0x20, 0x01, 0xB3, 0xFF, 0xF0,
0x01, 0xC0, 0x80, 0x60, 0x0F, 0x80, 0x80, 0x60, 0x3D, 0x80, 0x40, 0xC0, 0x31, 0x80, 0x40, 0xC0,
0x01, 0x80, 0x21, 0x80, 0x01, 0x80, 0x21, 0x80, 0x01, 0x80, 0x33, 0x00, 0x01, 0x80, 0x1E, 0x00,
0x01, 0x80, 0x0C, 0x00, 0x01, 0x80, 0x1E, 0x00, 0x01, 0x80, 0x37, 0x00, 0x01, 0x80, 0xE3, 0xC0,
0x1F, 0x83, 0x80, 0xF8, 0x07, 0x8E, 0x00, 0x7C, 0x02, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};/*"技",3*/
const uint8_t ZH3[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x00, 0x03, 0x80,
0x00, 0x00, 0x7E, 0x00, 0x00, 0x00, 0x03, 0xE0, 0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x03, 0xE0,
0x00, 0x00, 0xFE, 0x00, 0x00, 0x00, 0x03, 0xC0, 0x00, 0x00, 0xF7, 0x80, 0x00, 0x00, 0x03, 0xC0,
0x00, 0x01, 0xF1, 0xE0, 0x00, 0x00, 0x03, 0xC0, 0x00, 0x01, 0xE0, 0xF8, 0x00, 0x00, 0x03, 0xC0,
0x00, 0x03, 0xC0, 0x3E, 0x00, 0x00, 0x03, 0xC0, 0x00, 0x03, 0xC0, 0x1F, 0x00, 0x00, 0x03, 0xC0,
0x00, 0x03, 0x80, 0x0F, 0xC0, 0x00, 0x03, 0xC0, 0x00, 0x07, 0x80, 0x07, 0xC0, 0x60, 0x03, 0xC0,
0x00, 0x07, 0x00, 0x03, 0xE0, 0x78, 0x03, 0xC0, 0x00, 0x0E, 0x00, 0x01, 0xE0, 0x7E, 0x03, 0xC0,
0x00, 0x0E, 0x00, 0x01, 0xE0, 0x7C, 0x03, 0xC0, 0x00, 0x1C, 0x00, 0x00, 0xE0, 0x78, 0x03, 0xC0,
0x00, 0x38, 0x00, 0x00, 0x40, 0x78, 0x03, 0xC0, 0x00, 0x38, 0x00, 0x00, 0x00, 0x78, 0x03, 0xC0,
0x00, 0x70, 0x00, 0x00, 0x00, 0x78, 0x03, 0xC0, 0x00, 0x70, 0x00, 0x08, 0x00, 0x78, 0x03, 0xC0,
0x00, 0xF8, 0x00, 0x1C, 0x00, 0x78, 0x03, 0xC0, 0x01, 0xDF, 0xFF, 0xFE, 0x00, 0x78, 0x03, 0xC0,
0x01, 0x9F, 0xFF, 0xFF, 0x00, 0x78, 0x03, 0xC0, 0x03, 0x1C, 0x00, 0x3E, 0x00, 0x78, 0x03, 0xC0,
0x06, 0x1C, 0x00, 0x3C, 0x00, 0x78, 0x03, 0xC0, 0x0C, 0x1C, 0x00, 0x3C, 0x00, 0x78, 0x03, 0xC0,
0x08, 0x1C, 0x00, 0x3C, 0x00, 0x78, 0x03, 0xC0, 0x10, 0x1C, 0x00, 0x3C, 0x00, 0x78, 0x03, 0xC0,
0x00, 0x1C, 0x00, 0x3C, 0x00, 0x78, 0x03, 0xC0, 0x00, 0x1C, 0x00, 0x3C, 0x00, 0x78, 0x03, 0xC0,
0x00, 0x1C, 0x00, 0x3C, 0x00, 0x78, 0x03, 0xC0, 0x00, 0x1C, 0x00, 0x3C, 0x00, 0x78, 0x03, 0xC0,
0x00, 0x1C, 0x00, 0x3C, 0x00, 0x78, 0x03, 0xC0, 0x00, 0x1C, 0x00, 0x38, 0x00, 0x78, 0x03, 0xC0,
0x00, 0x1C, 0x00, 0x38, 0x00, 0x78, 0x03, 0xC0, 0x00, 0x1C, 0x00, 0x78, 0x00, 0x78, 0x03, 0xC0,
0x00, 0x1C, 0x30, 0xF8, 0x00, 0x78, 0x03, 0xC0, 0x00, 0x1C, 0x1F, 0xF8, 0x00, 0x78, 0x03, 0xC0,
0x00, 0x1C, 0x07, 0xF0, 0x00, 0x78, 0x03, 0xC0, 0x00, 0x1C, 0x03, 0xE0, 0x20, 0x40, 0x03, 0xC0,
0x00, 0x1C, 0x03, 0xC0, 0x20, 0x00, 0x03, 0xC0, 0x00, 0x1C, 0x01, 0x00, 0x20, 0x00, 0x03, 0xC0,
0x00, 0x1C, 0x00, 0x00, 0x20, 0x00, 0x03, 0xC0, 0x00, 0x1C, 0x00, 0x00, 0x60, 0x00, 0x03, 0xC0,
0x00, 0x1C, 0x00, 0x00, 0x60, 0x00, 0x03, 0xC0, 0x00, 0x1C, 0x00, 0x00, 0x60, 0x00, 0x03, 0xC0,
0x00, 0x1C, 0x00, 0x00, 0x60, 0x00, 0x03, 0xC0, 0x00, 0x1C, 0x00, 0x00, 0x70, 0x00, 0x03, 0xC0,
0x00, 0x1C, 0x00, 0x00, 0x70, 0x00, 0x03, 0xC0, 0x00, 0x1E, 0x00, 0x00, 0x78, 0x00, 0x03, 0xC0,
0x00, 0x1F, 0x00, 0x00, 0xF8, 0x0C, 0x07, 0x80, 0x00, 0x0F, 0xFF, 0xFF, 0xF8, 0x0F, 0xFF, 0x80,
0x00, 0x0F, 0xFF, 0xFF, 0xF0, 0x01, 0xFF, 0x80, 0x00, 0x03, 0xFF, 0xFF, 0x80, 0x00, 0x7F, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};/*"创",0*/
void setup()
{
matrix.begin();
// fill the screen with 'black'
matrix.setTextSize(2); // size 1 == 8 pixels high
matrix.fillScreen(matrix.Color333(0, 0, 0));
delay(500);
}
void loop()
{
matrix.setTextSize(2);//设置为16*16像�
matrix.setCursor(15, 0); // start at top left, with 8 pixel of spacing
matrix.setTextColor(matrix.Color333(1, 6, 0));//
matrix.println("DFR");//
matrix.setTextSize(1);//设置为8*8像�
matrix.setCursor(12, 16);//
matrix.setTextColor(matrix.Color333(4, 0, 4));//
matrix.println("DFROBOT");
matrix.customizeZH(ZH1_1, 16, 0, 32, matrix.Color333(0, 7, 0));//我
matrix.customizeZH(ZH1_2, 16, 16, 32, matrix.Color333(0, 0, 7));//们
matrix.customizeZH(ZH1_3, 16, 32, 32, matrix.Color333(7, 7, 0));//一
matrix.customizeZH(ZH1_4, 16, 48, 32, matrix.Color333(7, 0, 7));//起
matrix.customizeZH(ZH1_5, 16, 0, 48, matrix.Color333(0, 7, 7));//创
matrix.customizeZH(ZH1_6, 16, 16, 48, matrix.Color333(7, 7, 7));//�
matrix.customizeZH(ZH1_7, 16, 32, 48, matrix.Color333(7, 0, 0));//未
matrix.customizeZH(ZH1_8, 16, 48, 48, matrix.Color333(0, 7, 0));//来
delay(10000);
// fill the screen with 'black'
matrix.fillScreen(matrix.Color333(0, 0, 0));//清屏
delay(500);
matrix.customizeZH(ZH2_1, 32, 0, 0, matrix.Color333(0, 7, 7));//电
matrix.customizeZH(ZH2_2, 32, 32, 0, matrix.Color333(7, 7, 7));//子
matrix.customizeZH(ZH2_3, 32, 0, 32, matrix.Color333(7, 0, 0));//科
matrix.customizeZH(ZH2_4, 32, 32, 32, matrix.Color333(0, 7, 0));//技
delay(10000);
// fill the screen with 'black'
matrix.fillScreen(matrix.Color333(0, 0, 0));//清屏
delay(500);
matrix.customizeZH(ZH3, 64, 0, 0, matrix.Color333(2, 5, 2));//创
delay(2000);
matrix.fillScreen(matrix.Color333(0, 0, 0));//清屏
delay(500);
}
|}
结果
连续显示下列字符连: 1. DFR DFROBOT 我们一起 创造未来 2. 电子科技 3. 创
常见问题
还没有客户对此产品有任何问题,欢迎通过qq或者论坛联系我们!
| 更多问题及有趣的应用,可以 访问论坛 进行查阅或发帖。 |