SKU:RB-05L003 LCD12864点阵液晶扩展板
来自ALSROBOT WiKi
目录 |
产品概述
2014年最新推出的12864液晶板采用的是带汉字库图形点阵液晶显示模块,具有串行和并行接口,背光控制开关(串行与并行模式均可使用),对比度调节旋钮,板上集成IDC6插座和IDC14插座,可通过套件中附送的专用连接线与Arduino传感器扩展板连接,无需再买相关转接板,通过我们提供的例子程序,您可以用Arduino控制器做控制完成显示8192个中文汉字(16X16点阵)、128个字符(8X16点阵)和图形显示(128X64点阵)功能,轻松制作Arduino互动显示器最佳选择。
规格参数
- 电源电压:VDD+3.3V~+5.5V(内置升压电路,无需负压)
- 控制器:ST7920
- 点阵个数:128列×64行
- 显示颜色:蓝底白字
- 可视角度:170度
- LCD类型:STN
- 控制接口:8位或4位并行和3位串行
- LED背光:蓝色
- 软件功能:光标显示、画面移位、自定义字符、反白显示、睡眠模式等
- 逻辑工作电压(VDD):4.5~5.5V
- 电源地(GND):0V
- 工作温度:-20℃~70℃
- 存储温度:-30℃~80℃
- 模块尺寸:93×70×22mm
- 视域尺寸:73×39mm
发货清单
- 12864 液晶扩展版 * 1个
- 6P 双头线 * 1条
- 14P 双头线 * 1条
12864液晶屏接口定义
- PIN1------GND 电源接入 -, 一般接0V。
- PIN2------电源接入 +, 一般接5V。
- PIN3------对比度调整端,VDD和GND接可调电阻两端,中间抽头接至V0。
- PIN4------RS 指令/数据选择
- PIN5------R/W 读写选择
- PIN6------E,信号使能
- PIN7------D0,数据位0
- PIN8------D1,数据位1
- PIN9------D2,数据位2
- PIN10-----D3,数据位3
- PIN11-----D4,数据位4
- PIN12-----D5,数据位5
- PIN13-----D6,数据位6
- PIN14-----D7,数据位7
- PIN15-----PSB 并行:PSB=1,可以接VCC; 串行:PSB=0,一般接GND
- PIN16 ----NC,不连接
- PIN17-----~RST,模块复位,可不连接
- PIN18 ----NC,不连接
- PIN19 ----LED+ ,背光 +,一般接5V。
- PIN20 ----LED- ,背光 -,一般接GND。
使用方法
使用硬件
- Carduino UNO 控制器 * 1个
- LCD12864 点阵液晶扩展版 * 1个
- USB 数据线 * 1条
- V5.0传感器扩展板 * 1个
例子程序
- 12864液晶扩展板使用库文件、相关例子程序、解码和取模软件
- 下载链接:http://pan.baidu.com/s/1i4Ro93R 密码:swso
串行显示汉字
#include "LCD12864RSPI.h" #define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] ) unsigned char show0[]={ 0xB9, 0xFE, 0xB6, 0xFB,0xB1, 0xF5, 0xB0, 0xC2, 0xCB, 0xC9, 0xBB, 0xFA, 0xC6, 0xF7, 0xC8, 0xCB}; //哈尔滨奥松机器人 unsigned char show1[]="www.alsrobot.cn"; void setup() { LCDA.Initialise(); // 屏幕初始化 delay(100); } void loop() { LCDA.CLEAR();//清屏 delay(100); LCDA.DisplayString(0,0,show0,AR_SIZE(show0));//第一行第三格开始,显示文哈尔滨奥松机器人 delay(100); LCDA.DisplayString(2,0,show1,AR_SIZE(show1));;//第三行第二格开始,显示网址www.alsrobot.cn/ delay(5000); }
串行图片显示
#include "LCD12864RSPI.h" #define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] ) unsigned char logo0[]={ //笑脸 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,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,0xFF, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFF, 0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF, 0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0xFE,0x00, 0x7F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x0F,0xF0,0x00, 0x0F,0xF0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x1F,0x80,0x00, 0x01,0xF8,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x3E,0x00,0x00, 0x00,0x7C,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0x00, 0x00,0x1F,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00, 0x00,0x0F,0x80,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0xE0,0x00,0x00, 0x00,0x07,0xC0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x07,0xC0,0x00,0x00, 0x00,0x01,0xE0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x07,0x80,0x00,0x00, 0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x00, 0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x1E,0x00,0x00,0x00, 0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x3C,0x00,0x00,0x00, 0x00,0x00,0x3C,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x38,0x00,0x40,0x00, 0x00,0x80,0x1C,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x78,0x03,0xF8,0x00, 0x07,0xF0,0x1E,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x70,0x07,0xFE,0x00, 0x0F,0xFC,0x0E,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xF0,0x1F,0xBF,0x00, 0x3F,0x7E,0x0F,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xE0,0x3E,0x0F,0x80, 0x7C,0x1F,0x07,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xE0,0x7C,0x07,0xC0, 0xF8,0x0F,0x87,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xE0,0xF8,0x01,0xE1, 0xF0,0x03,0xC3,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0xF0,0x01,0xE1, 0xE0,0x03,0xC3,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0xE0,0x00,0xE1, 0xC0,0x01,0xC3,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0x00,0x00,0x00, 0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0x00,0x00,0x00, 0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0x00,0x00,0x00, 0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xE0,0x00,0x00,0x00, 0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00, 0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00, 0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xF0,0x00,0x0C,0x00, 0x0C,0x00,0x0F,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x70,0x00,0x1E,0x00, 0x1E,0x00,0x0E,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x78,0x00,0x1F,0x00, 0x3E,0x00,0x1E,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x38,0x00,0x07,0x80, 0xF8,0x00,0x1C,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x3C,0x00,0x03,0xE1, 0xF0,0x00,0x3C,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x1E,0x00,0x01,0xFF, 0xE0,0x00,0x78,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0xFF, 0x80,0x00,0xF0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x3F, 0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x07,0x80,0x00,0x00, 0x00,0x01,0xE0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0xE0,0x00,0x00, 0x00,0x07,0xC0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00, 0x00,0x0F,0x80,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0x00, 0x00,0x1F,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x3E,0x00,0x00, 0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x1F,0x80,0x00, 0x01,0xF8,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x0F,0xE0,0x00, 0x07,0xF0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0xFE,0x00, 0x3F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF, 0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFF, 0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 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 setup() { LCDA.Initialise(); // 屏幕初始化 delay(100); } void loop() { LCDA.DrawFullScreen(logo0); delay(5000); }
并行显示
#include "LCD12864R.h" #define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] ) unsigned char show0[]={ 0xB9, 0xFE,0xB6, 0xFB,0xB1, 0xF5,0xB0, 0xC2,0xCB, 0xC9,0xBB, 0xFA,0xF7, 0xC8, 0xCB}; //哈尔滨奥松机器人 unsigned char show1[]="www.alsrobot.cn"; void setup() { LCDA.Initialise(); // 屏幕初始化 delay(100); } void loop() { LCDA.CLEAR();//清屏 delay(100); LCDA.DisplayString(0,0,show0,AR_SIZE(show0));//第一行第三格开始,显示文哈尔滨奥松机器人 delay(100); LCDA.DisplayString(2,0,show1,AR_SIZE(show1));;//第三行第二格开始,显示网址www.alsrobot.cn/ delay(5000); }
程序效果
以上三个测试例程,分别通过串行和并行通信方式进行显示,文字显示:“奥松机器人,www.alsrobot.cn”,图片显示为位图,通过下载解码和取模软件可以轻松编程。
视频演示
资料下载
- 产品资料
下载链接:https://pan.baidu.com/s/1odcXcwE0oBM4gD3SK77s7g
提取码:n0v2
- 产品购买链接:http://www.alsrobot.cn/goods-128.html
- 奥松机器人技术论坛:http://www.makerspace.cn