Home / RPI-RGB-LED-Matrix(English)
View Raw Markdown rev:723 · 2015-07-21T04:57:56+00:00

RPI-RGB-LED-Matrix(English)

Description

The Matrix LED module is specifically designed for Raspberry Pi. The module can control each color of pixel in this 8X8 Matrix .You can program the contents with raspberry Pi,and The contents include time ,characters or binary pictures.You should Pay attention,This module should not be used alone .you should use it cooperate with 595 IO expand module for Raspberry 8x8_01.jpg

Technical Details

Type Value
Name RPI-RGB-LED-Matrix Module
screen resolution 8X8
Pixel Array 8×8
diplay scale 60x60MM
module scale 60x60x17mm
Pixel Pitch 2.5MM
Pixel Size 5.0×5.0MM
work voltage 5V
Luminous Intensity 40mcd
Forward Current(Max) 25mA
Peak Forward Current(Max) 100mA
Power Dissipation(Max) 100mW
Lead Solder Temperature(Max) 260℃ for 5 seconds

Overview

8x8_02.jpg 8x8_03.jpg 8x8_04.jpg 8x8_05.jpg

product scale

8x8_06.png

schematic

Pic2.png

Learn

WARNING:To lighten this LED-Matrix you should have our another module RPI-595-IO-Expand Module

  • If you are done install the wiringPi and enabling I2C interface, type the following code in the console to build a .c file

sudo vim.tiny RGB8x8.c

  • Copy and paste the following demo code into RGB8x8.c

  • Under the vim.tiny editor, type ":", then type "wq" and press "enter" to save the RGB8x8.c file and exit editor

  • Next you need to compile the code using gcc. Type gcc RGB8x8.c -lwiringPi -o RGB8x8 in the console to compile the .c file

  • Lastly, type sudo ./RGB8x8 -g 0 1,to load the executable file ,and in the matrix board you will find the green LED on line 0,row 1 is turned on as the following photo shows.

示例代码说明

#include <stdio.h>
#include <wiringPi.h>
#include <sr595.h>

int main(int argc, char *argv[])
{
    int j;
    long long k;
    wiringPiSetup();
    sr595Setup(100, 32, 12, 14, 10);
    for(j = 0; j < 32; j++)
    {
      pinMode(100 + j, OUTPUT);
    }
      for(j = 0; j < 8; j++)
    {
      digitalWrite(100 + j, 1);
    }
      for(j = 0; j < 8; j++)
    {
      digitalWrite(116 + j, 1);
    }
      for(j = 0; j < 8; j++)
    {
      digitalWrite(108 + j, 1);
    }
   if(argc < 3)
    {
       printf("Summary:lunch -[rgb] x_point y_point \n");
       printf("Example:lunch -r 0 5 \nDraw Red Point At X=0 Y=5 \n");
    }
    if(argc > 1 && strcmp(argv[1], "-b") == 0)
    {
       digitalWrite(atoll(argv[2]) + 100, 0);
    }
    if(argc > 1 && strcmp(argv[1], "-g") == 0)
    {
       digitalWrite(atoll(argv[2]) + 108, 0);
    }
    if(argc > 1 && strcmp(argv[1], "-r") == 0)
    {
       digitalWrite(atoll(argv[2]) + 116, 0);
    }
    digitalWrite(124 + atoll(argv[3]), 1);
}

购买链接

附件

1306-0.91-CODE.zip 2088RGBMatrix.pdf 如对此页的规则或教程有意见者,可到此网页或是在管理员Powup333的讨论页留言