RGB Matrix Serial Backpack User Guide

Similar documents
Embedded Systems Design Course Applying the mbed microcontroller

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

8 by 8 dot matrix LED displays with Cascadable Serial driver B32CDM8 B48CDM8 B64CDM8 General Description

Table 1 below is a complete list of MPTH commands with descriptions. Table 1 : MPTH Commands. Command Name Code Setting Value Description

Part 1. MAX BIT DAC with an Arduino Board. MIDI to Voltage Converter Part1

Using the Siemens S65 Display

SRF08 Ultra sonic range finder Technical Specification

Hagenberg Linz Steyr Wels. API Application Programming Interface

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

Dolphin In-Circuit programming Updating Firmware in the field

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

ENTTEC Pixie Driver API Specification

S88XPressNetLI v1.0. Installation, user and reference manual KDesign Electronics, PCB design by RoSoft

RS-485 Protocol Manual

Introduction to graphics and LCD technologies. NXP Product Line Microcontrollers Business Line Standard ICs

UniPi technical documentation REV 1.1

NHD-0420D3Z-FL-GBW-V3

MicroMag3 3-Axis Magnetic Sensor Module

Controlling a Dot Matrix LED Display with a Microcontroller

Advanced LED Controller (LED Chaser)

2.2" TFT Display. Created by Ladyada. Last updated on :15:09 PM EDT

Nemo 96HD/HD+ MODBUS

A DIY Hardware Packet Sniffer

Consult protocol, Nissan Technical egroup, Issue 6

USER GUIDE EDBG. Description

FR FAMILY MB91460 SPI - DAISY CHAIN COMMUNICATION 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Create Colorful and Bright LED Light with an LED Matrix Dimmer

1. General Description

The Programming Interface

Contents & P-LCD Modules Cross Reference Table

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

Preliminary Draft May 19th Video Subsystem

JTAG-HS2 Programming Cable for Xilinx FPGAs. Overview. Revised January 22, 2015 This manual applies to the HTAG-HS2 rev. A

FG , 08501K, 08502K, 08503, 08503K, 08504K

Next Generation Intelligent LCDs

Web Site: Forums: forums.parallax.com Sales: Technical:

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]

Daisy Chain Series DVD/CD Duplicator System

BV4512. I2C-LCD- 128 x 64 Graphic Controller. Product specification. November 2008 V0.a. ByVac Page 1 of 14

TekBots TM Oregon State University. usb_cam User Guide. Version 1.0 By Adriaan Smit OSU EE Graduate Student

RGB for ZX Spectrum 128, +2, +2A, +3

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

AN601 I2C 2.8 Communication Protocol. SM130 SM130 - Mini APPLICATION NOTE

SMS based remote control system

Lab 2.0 Thermal Camera Interface

Designing VM2 Application Boards

WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide

SafeSPI - Serial Peripheral Interface for Automotive Safety

Modbus TCP / DALI converter

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

Character LCDs. Created by Ladyada. Last updated on :45:29 PM EDT

Theory and Practice of Tangible User Interfaces. Thursday Week 2: Digital Input and Output. week. Digital Input and Output. RGB LEDs fade with PWM

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS 16290(LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : JUL.03,2001 TOTAL PAGE : 7

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

Introducing AVR Dragon

KTA-223 Arduino Compatible Relay Controller

Color quality guide. Quality menu. Color quality guide. Page 1 of 6

EPSON Perfection 1650/1650 PHOTO. Scanner Parts. Scanner Specifications. Basic Specifications. device Effective pixels

Web Site: Forums: forums.parallax.com Sales: Technical:

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Hardware Keylogger Detection. Andy Davis. Research and Development Manager

LED WALL WASHERS SPECIFICATIONS & INSTALLATION GUIDE

eztcp Technical Document Modbus/TCP of eztcp Caution: Specifications of this document may be changed without prior notice for improvement.

ET-BASE AVR ATmega64/128

PRT3 Printer Module: ASCII Protocol Programming Instructions

a8251 Features General Description Programmable Communications Interface

Touch Screen for Pictiva OLED display. Application Note. Introduction

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

CAN bus board. EB018

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

How To Use A Pkn10 (Powerline) With A Microsd Card (Powerkit) On A Powerline (Powergen) Or Powerline 2 (Powerbee) (Powerbmi) (Pk10) (Operating

ACR122 NFC Contactless Smart Card Reader

CMC-DN01 DeviceNet Slave Communication Card Operation Manual

Brunata Optuna W (171)

Revision History. Date Page Summary. Approved By: Document Number: OG24161 r.0 Page 1 of 11

Software Manual RS232 Laser Merge Module. Document # SU Rev A

IR Communication a learn.sparkfun.com tutorial

WxGoos-1 Climate Monitor Installation Instructions Page 1. Connections. Setting an IP Address

Transmitter Interface Program

FLYPORT Wi-Fi G

AC-PG-USBASP USBASP AVR Programmer

NB3H5150 I2C Programming Guide. I2C/SMBus Custom Configuration Application Note

Installer and Admin App Guide

TEECES DOME LIGHTING SYSTEMS

EDI Distributor Control Interface Wiring and Setup Instructions

NC-12 Modbus Application

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

Name Description Model Number. Parameters Min. Typ. Max. Note. Vaux Voltage 9.8 V 12 V 13.2 V Auxiliary Supply Voltage

PDS-750-TR Touring Power Supply Operator s Manual

ADT7467. dbcool Remote Thermal Monitor and Fan Controller

EA DOGS104x-A INCL. CONTROLLER SSD1803A FOR SPI AND I²C. available at 1 piece! Switchable font height ACCESSORIES

LCD I 2 C/Serial RX Backpack. Data Sheet. LCD to I2C/Serial RX Backpack I2C or Serial RX communication with Standard 16 Pin LCD modules

Lesson 10: Video-Out Interface

Operating instructions Switching amplifier for fibre optics. OBF5xx / / 2010

Green = 0,255,0 (Target Color for E.L. Gray Construction) CIELAB RGB Simulation Result for E.L. Gray Match (43,215,35) Equal Luminance Gray for Green

Matrix and 7-Segment LED Backpack with the Raspberry Pi

Transcription:

Overview The new RGB Matrix Serial Backpack controller from SparkFun offers an easy way to control the tri-color common cathode 8x8 LED matrices. The entire controller fits behind the LED matrix so that even larger arrays of matrices may be created; external connectors are oriented to allow daisy-chaining of multiple controller boards. The boards accept a special software command to be re-configured for daisy-chained systems. Each backpack is based around an AVR microcontroller and contains all the necessary circuitry to drive the LED matrix. By default the controller runs a simple frame buffer program that listens for image data and displays in constantly on the LEDs. Data is sent to the backpack using an SPI interface. The microcontroller may also be reprogrammed to give the LED matrix more individual intelligence. Figure 1 Features Runs on 5V 64 Tri-Color LEDs Input and Output Connectors for daisy-chaining multiple matrices 6-pin programming headers for reprogramming the AVR Powering the RGB Matrix The controller must be powered with a regulated 5V supply. Power can be supplied either at the SPI Input connector or the SPI output connector as they each share the same power bus. If you are daisy-chaining multiple controllers it is recommended to supply power at the Input connector of the first board in your system, and use the Output connector to supply power to the next board in the system. 1

Figure 2 Parameter Min. Recommended Max Unit Voltage 4.50 5.00 5.25 V Current - 120(typical) 275 ma *Current Rating is for a single board. Ratings for multiple boards will be linear (i.e. If 'N' boards are connected in the system, the maximum current draw will be N*Max Current ma.). If your power supply is not capable of providing enough power for the required load, the boards may malfunction. Figure 3 There is no on-board voltage regulation so it is recommended to use a known good voltage supply, and to ensure that there won't be voltage fluctuations on the power line. Make sure to properly polarize your power connection according to the indicators on the board before turning the device on. SPI Interface to the Default Firmware The RGB matrix backpacks' default program communicates via standard SPI protocol. Data in to the device must be provided via the MOSI pin. SPI Clock must be provided vial the SCLK pin. The device will return data on the MISO pin. All input is ignored while the CS pin is high (5V); and data is copied into the frame buffer while the CS pin is low (0V). The device maintains a single 64 byte buffer which represents each position in the matrix. When CS is asserted (low) the device begins reading data from the SPI input and writing it sequentially to the 64 byte buffer. Simultaneously the device will output the old buffer data on the MISO line. Hence, to display an image on the matrix a set of 64 bytes must be sequentially transferred to the backpack while keeping the CS pin low (this process is slightly different for a daisy-chained system). By default, the backpack recognizes up to 255 individual colors. The 64 bytes transferred to the backpack represent the desired color of each LED. The first 3 bits of each byte represent the Red brightness level for that LED; the second 3 bits represent the Green brightness level while the last 2 bits represent the Blue brightness level. Below is a table which illustrates how to construct your color value. 2

Figure 4 Buffer Byte Representing and LED Color Value Red Green Blue Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Figure 5 Color(Brightest Setting) Black Red Green Blue Orange Magenta Teal White Byte Value 0x00 0xE0 0x1C 0x03 0xFC 0xE3 0x1F 0xFF *These values correspond to the brightest levels of the given color. Different variations may be achieved by changing the brightness level of each individual color. Example of Sending a Frame of Data To have an RGB matrix display black, red, green blue on the first four positions of the first row, and black everywhere else, this would be the process: 1.) Assert CS (bring it low) 2.) Delay 0.5ms 3.) Transfer 0x00 via SPI 4.) Transfer 0xE0 via SPI 5.) Transfer 0x1C via SPI 6.) Transfer 0x03 via SPI 7.) Transfer 0x00 60 times via SPI 8.) De-Assert CS (bring it high) 3

Daisy-chaining RGB Matrix Controllers The newest version of the RGB matrix controller has a new layout and a new version of firmware that allow the user to more easily daisy-chain multiple RGB matrix controllers. Daisy-chaining is when multiple controllers are connected together, and the data is passed from the first controller in the chain to the next connected controller; data is passed along until the data reaches the end of the chain. Figure 6 In order to daisy-chain the controllers each controller must be reconfigured for the size of the desired chain. By default the controllers come configured to operate in standalone mode, or a 1 controller chain. If there are two controllers to be daisy-chained together, each of them must be reconfigured for a 2 controller chain. To reconfigure the boards a special two byte command sequence must be sent via the SPI interface: the character '%' followed by the decimal number of the desired chain length. The controllers must be reconfigured individually (so they can't already be connected in the chain). The commands should be sent using the normal SPI protocol. Be sure to assert CS (low) before sending the two command bytes, then de-assert CS (high) when you are finished. Do not start sending the color values to the chain before de-asserting the CS pin. Also, it is recommended to limit the daisy-chain lengths to 8 boards. When you are connecting the boards, make sure to connect the output of the 1st board in the system to the input of the 2nd board in the system. The connections from your Host system should be plugged into the Input connector of the first controller in the system. Power will be passed through the connectors to all the boards in the system. However, be sure that the power supply can provide enough current for the entire system. Interfacing to a Daisy-chained System If the controller boards have been reconfigured to operate in a daisy-chain there are several differences that need to be addressed to display an image on the system. Obviously now that there are more controllers connected there needs to be more data sent. Luckily sending the data to a daisy-chained system is very similar to sending data to a standalone controller. To display an image on a standalone controller all that's done is: assert CS(low), send a 64 4

byte buffer (frame), de-assert CS. To display an image on a daisy-chained system, this exact process must be repeated for each board in the system. The image won t be displayed until data is received for each controller in the daisy-chained system. A 10ms delay is recommended between de-asserting the CS pin and asserting it before the next frame. The first frame sent to the daisy-chained system will be displayed on the last board in the system, while the last frame sent to the system will be displayed on the first board in the system. Figure 7 SPI Timing Recommendations: A delay of 0.5ms is recommended between the assertion of CS and at the start of data transfer, as well as after the end of data transfer and the negation of CS. A 10ms delay is recommended between the CS pulses in a daisychained system. The SPI clock should not exceed 125 khz. 5