Device: PLT This document Version: 3.0. For hardware Version: 4. For firmware Version: Date: April 2014

Similar documents
Device: PLT This document Version: 1. For hardware Version: 1. For firmware Version: Date: 9 May 2014

Device: PLT This document Version: 3. For hardware Version: 1. For firmware Version: Date: 20 Oct 2017

Description: USB to Serial interface and USB development platform

Device: FDRV-04S. This document version: v1. Matches module version: v2 [2 Oct 2015] Document revision date: 9 November 2015

Device: MOD This document Version: 1.0. Matches module version: v3 [29 June 2016] Date: 23 October 2017

Device: LDP This document Version: 1.0. Date: July Description: 80x08 1R1G LED Display Panel

Device: DSP-7S04H. This document Version: 1. Date: 23 March Description: 2.3 4x 7 segment display module with decimals

Description: 4x 7 segment display module with decimals and colon

Device: MOD This document Version: 2. Matches module version: v4. Date: 10 May Description: Lightning and Storm Sensor

Breeze Board. Type A. User Manual.

Description: BME250 Multi Sensor + Indoor Air Quality (Humidity / Temperature / Pressure Sensor, VOCs, C02)

The MOD-1016 is a lightning sensor based on the AMS3935. It allows you to detect storms up to 40km away.

HUB-ee BMD-S Arduino Proto Shield V1.1

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

ARDUINO LEONARDO WITH HEADERS Code: A000057

Modtronix Engineering Modular Electronic Solutions SBC28DC. Single board computer for 28 pin DIP PICs

USB Type A Female Breakout Hookup Guide

Shack Clock kit. U3S Rev 2 PCB 1. Introduction

ARDUINO LEONARDO ETH Code: A000022

PIC Dev 14 Through hole PCB Assembly and Test Lab 1

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

DEV16T. LCD Daughter board

Device: EDR B. This document Version: 1c. Date: 11 November Matches module version: v3 [25 Aug 2016]

SimPLC. User Manual.

HUB-ee BMD-S Arduino Proto Shield V1.0

Adafruit USB Power Gauge Mini-Kit

Serial Graphic LCD Hookup

CONTROL PANEL 128x64 USER GUIDE

DEV-1 HamStack Development Board

Serial Basic Hookup Guide

Phi-panel backpack assembly and keypad options Dr. John Liu 12/16/2012

Atmel AVR datasheet. Matrix Multimedia Atmel AVR Board EB Contents

ARDUINO MINI 05 Code: A000087

PICado Alpha Development Board V1.0

Cygnos360 V2 Installation Manual

PIC Dev 14 Surface Mount PCB Assembly and Test Lab 1

Adafruit Metro Mini. Created by lady ada. Last updated on :12:28 PM UTC

Zero2Go. User Manual (revision 1.03) Wide Input Range Power Supply for Your Raspberry Pi. Copyright 2017 UUGear s.r.o. All rights reserved.

Goal: We want to build an autonomous vehicle (robot)

ARDUINO MEGA 2560 REV3 Code: A000067

ARDUINO MEGA ADK REV3 Code: A000069

PIC 28 Pin Board Documentation. Update Version 5.0

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

Dice in Google SketchUp

Phi-connect for Arduino (connector board V1.9)

Phi -1 shield Documentation. Table of content

Grelllbbb s ESP Flashamater Adaptimizer Assembly & User Guide

ARDUINO UNO REV3 Code: A000066

Arduino ADK Rev.3 Board A000069

Instruction Manual for BE-SP3 Circuit. 10/21/07

2.2" TFT Display. Created by lady ada. Last updated on :19:15 PM UTC

University of Hawaii EE 361L MPLab Quick Tutorial and Project 2.1 Last updated September 1, 2011

ARDUINO MICRO WITHOUT HEADERS Code: A000093

BC-USB-Kit Manual. First Edition. February, BeatCraft, Inc.

Cygnos360 V2 Installation Manual

Breeze Board. Type B. User Manual.

Si4703 FM Radio Receiver Hookup Guide

AKKON USB CONTROLLER BOARD

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

The FED PIC Flex 2 Development Boards

Halloween Pumpkinusing. Wednesday, October 17, 12

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P

10 Connector Designer

TH E FI N EST I N G E E K E NTE RTAI N M E NT

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

Building and using JasperMIDI

Supplement for module D041 incl. ATMega8 Prozessor

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

SMiRF v1 Serial Miniature RF Link 8/25/2004

Construction Construction Instructions

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

DIGWDF Ren-W Universal Assembly Guide

Smoother Graphics Taking Control of Painting the Screen

LCD6402-DEV Development/Evaluation Board for the LCD6402B LCD6402-DEV Development/Evaluation Board for the LCD6402B

Preassembled 40-pin Pi Wedge Hookup Guide

Building the FlipChip Tester

Supplement for module D061 incl. ATMega128 Prozessor

Dual Interface LCD Display Controller

SharpSky Focuser Construction. SharpSky Focuser. Construction Document V st December 2012 Dave Trewren 1

Thumb Joystick Retail. Tools and parts you'll need. Things you'll want to know. How does it work? Skill Level: Beginner. by MikeGrusin March 22, 2011

32 bit Micro Experimenter Board Description and Assembly manual

TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT

APP-II PIC Development Kit by AWC

ROTOPOD PERISCOPE LIGHTING KIT

Omega MP. Multi-Programming Shield for Atmel Microcontrollers. User Manual

ITG-3200 Hookup Guide

Building your own special-purpose embedded system gadget.

MedeaWiz 8X78. Input / Output Expander. FW version 1.0. PCB version 1.0. Manual version Note that this manual may change periodically

SK40C ENHANCED 40 PINS PIC START-UP KIT. User s Manual V1.3. March 2012

Grove Lightning Detector 0219-MOD1016G-01

BV4109. Serial LCD Controller. Product specification November ByVac 2006 ByVac Page 1 of 12

keyestudio Keyestudio MEGA 2560 R3 Board

This, plus your Basic Stamp 2 or Stamp Stack 2 Microcontroller (not included) will let you customize your robot s behavior any which way you want!

VLSI AppNote: VSx053 Simple DSP Board

Welcome Back! Without further delay, let s get started! First Things First. If you haven t done it already, download Turbo Lister from ebay.

A4988 Stepper Motor Driver Carrier with Voltage Regulators

Note. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.

Google SketchUp Design Exercise 1

Hello Angles... A First Use Guide to the VS Product Series: RS232 Interface with LD Standard Communication Protocol & Analogue 4-20mA Output Signals.

UV Mapping to avoid texture flaws and enable proper shading

Transcription:

Device: PLT-1001 This document Version: 3.0 For hardware Version: 4 For firmware Version: 2.10 Date: April 2014 Description: LED Matrix Display Driver board

PLT-1001v4 datasheet Page 2 Contents Introduction... 4 Features... 4 Hackability... 4 Construction... 4 Connections... 5 Power... 5 Setup... 5 Operation... 6 Commands... 6 clear... 6 pixel... 6 line... 7 rect... 7 circle... 7 circlef... 7 circle2... 7 font... 7 text... 8 textv... 8 scroll... 8 scrollspeed... 8 paint... 8 title... 8 displays... 9 enableactive... 9 Test commands... 9 Tips and tricks... 10 Other panels... 11 Schematic... 11

PLT-1001v4 datasheet Page 3 General circuit... 11 Connections... 12 PCB... 14 What next?... 14 Versions... 14

PLT-1001v4 datasheet Page 4 Introduction The PLT-1001v4 is a driver board designed to drive dynamically-scanned LED matrix displays (LED display panels) such as the LDP-3208S, LDP-8008, LDP-6416 and LDP- 6432 from Embedded Adventures. Other panels that have similar pin-outs will work as well. Other panels that have different pin-outs but work the same way, will work with a little jumper wiring. You don t need to know anything about the microcontroller on board to use the driver board however it takes simple commands over the TTL serial port to enable rich graphical displays on common LED matrix display panels. Of course, if you want to, you can completely hack the firmware to change it in any way you like, but this is not necessary for normal operation. Features The PLT-1001 is designed to make it easy to interface to LED matrix displays. These displays require constant updating which consumes microcontroller CPU. This driver board allows graphical and text functions to be displayed through simple serial commands. Hackability The PLT-1001 is 100% hackable. At Embedded Adventures, we believe you have the most fun when you have the most control over your hardware. For the PLT-1001 we provide a datasheet, complete schematic and complete source code. After that, it s all up to you. We d love to hear about the projects you re using it for send us information and photos to myproject@embeddedadventures.com Construction The PLT-1001v4 can be back-pack connected to LDP-8008 displays by soldering an 8x2 0.1 female connector on the underside of the board (so the pins are soldered on top). The holes on the PLT-1001v4 are designed to match the holes on the LDP-8008. It can also be back-pack connected to LDP-6416 or LDP-6432, or alternatively a male connector can be soldered to the top side of the board and the supplied IDC cable can be used to connect to the display. For power, the PLT-1001 requires 5V and ground connections. Solder the terminal connectors on the board for easy screw connections, or simply power it through the 5V pin on the serial header.

PLT-1001v4 datasheet Page 5 Connections The PLT-1001 has five connection ports. The breakout ports will be used for future expansion. The ICSP port is used for reprogramming the driver board using a PicKit or similar, but is not required for normal use. Power TTL SERIAL TTL level serial port ICSP Programming port for PIC, RB6, RB7 connections Breakout 1 Breakout pins GND, RB0, RB1, RB2, +5V Breakout 2 RB3, RB5, RC1, RC4, RC5, GND LEDPANEL 16 pin connection to LED display panel The PLT-1001 provides a terminal block for power input for connection to your LED matrix display(s). The PLT-1001 is designed to run at 5v. Note that running large quantities of LEDs can result in a voltage drop across the supply, which may affect the reliability of the microcontroller. See the datasheet for your LED matrix display. Setup The PLT-1001 comes with firmware for the LDP-8008 board. For other boards you will need to update the firmware. Updating the firmware is easy! Download the appropriate.hex file from the Embedded Adventures product page that matches your board. Download the screamer bootloader application from the Tutorials Downloads section of the web site also it s called Screamer. Connect a TTL serial port to your PC, like a USB to Serial PLT-1003. Connect TX from your TTL serial port to RX-I on the PLT-1001, and RX on your serial port to TX-O on the PLT-1001, and GND to both devices. The PLT-1001 will need to be powered with 5V if it can t get this from your serial port device. In the Screamer app, set the COM port setting to your COM port Set the Baud rate to 115,200 Press Open and choose the.hex file appropriate to your LED matrix display. Press Download, and then reset the PLT-1001 by pressing the reset button. The new firmware will then be downloaded to the PLT-1001. Depending on the timing of some serial ports, you may need to hold the reset button down, click the download button, then release your finger from the reset button. You should see the progress bar fill as the new firmware is downloaded.

PLT-1001v4 datasheet Page 6 Operation The driver board is controlled by the TTL Serial port. Connect a device to TxO and RxI keeping in mind that you will need to connect transmit on your device to RxI on the PLT-1001, and receive on your device to TxO on the PLT-1001. Set your serial port to 115,200bps and then you re ready to issue some commands. Commands The driver is double buffered. There is a draw buffer, which is what these commands act on, and a display buffer which unsurprisingly is what is actually used to drive the display. This means that you can set up exactly what you need on the screen using multiple commands and then transfer the entire completed picture to the actual display in one hit for very smooth updates. The driver board comes with a collection of graphical and text commands. Each command starts with a text word and ends with <ENTER> ( ASCII character 13 which is \r if you are using a microcontroller to send commands). Once you have sent all commands you need, send a paint command. Effectively the paint command copies the draw buffer to the display buffer. The exceptions to this are the scroll command, which doesn t require paint, since it updates the buffer automatically as the text moves across the display, and the test and title commands. Parameters to the commands can be separated by commas or spaces. Most LED matrix displays, at least the ones from Embedded Adventures, have two pixel colours available - red and green, giving you black (colour 0), red (colour 1), green (colour 2), yellow/orange (colour 3). clear clear Clear the display (all black pixels) pixel pixel colour x y Set the pixel at position x, y to the specified colour. On LED matrix displays, x = 0 on the left most column, and y = 0 on the top row.

PLT-1001v4 datasheet Page 7 line line colour x1 y1 x2 y2 Draws a line between x1, y1 and x2, y2 in the specified colour. rect rect colour x y width height Draws a rectangle with left, bottom corner x,y that is width wide and height high. circle circle colour x_centre y_centre radius Draws a circle centred at x_centre, y_centre in the specified radius and colour. circlef circlef colour x_centre y_centre radius Draws a filled circle centred at x_centre, y_centre in the specified radius and colour. circle2 circle2 colour x_centre y_centre radius Draws a squared circle, centred at x_centre, y_centre like an ordinary circle but with an extra pixel inserted at the top and sides so that the circle completely fills a square space. font font font_num Sets the current font to font_num. The fonts are as follows: 1 5 pixel high (narrow) 2 5 pixel high (normal) 3 7 pixel high (normal) 4 8 pixel high (normal) 5 16 pixel high (double width) 6 16 pixel high (triple width)

PLT-1001v4 datasheet Page 8 7 Bignum font great for clocks and temperature displays. This font only has 0-9, :, C, F and the degree symbol (use the character for degree). text text colour x y "text" Displays text in the current font where the bottom left corner of the text is positioned at x,y. textv textv colour x y "text" Displays text in the current font where the bottom left corner of the text is positioned at x,y and the text is printed vertically from that point. This enables you to make different shaped displays eg put three LDP-6432 displays together vertically, rotate the physical displays 90 degrees, and you have yourself a 96x64 pixel display which you can print text horizontally on using the textv command. scroll scroll colour x y width "text" Displays text that scrolls through the rectangle made by x,y to width and the font height. The driver will send <done> when the scroll is complete. You can interrupt an existing scroll by simply issuing another scroll command. Scroll can handle strings of up to 170 characters. scrollspeed The default speed that scrolling moves at is a stately 150ms between changes. To alter this, pass the set the new speed using scrollspeed. This can even be done while scrolling. paint paint Copies the draw buffer to the display buffer so previous commands are actually displayed. title The title command is a great way of testing your display. Using whatever resolution is available, it will draw a boarder around the outside, and show you the version of the firmware among other things. This enables you to see which display is which and

PLT-1001v4 datasheet Page 9 see which way around the displays are orientated the text will always be in the topmost or left-most display. displays Most firmware can control multiple displays. The LDP-6432 variety comes in two flavours horizontal (ie the smaller sides next to each other) or vertical (the longer sides next to each other). To set the display, pass it the parameter of the number of displays you have. It will default to 1 on boot, so if you have 2, simply issue: displays 2 After setting the number of displays, you can then issue a title command to check which display is which. enableactive The Enable line on LED matrix displays can be a different polarity on different displays. All the displays you use in one daisy chain must be the same type. For a display that is active low, issue the command: enableactive 0 For a display that is active high, issue the command: enableactive 1 It won t harm your display either way, but if you re getting nothing displayed at all, or it is quite feint, try the opposite polarity. Test commands test test_num A series of test commands are available to confirm that everything is working, this is especially handy when working with a new board or when developing drivers for a new board. Test 0 Top left pixel 1 Top right pixel 2 Bottom right pixel 3 Bottom left pixel 4 Full screen, colour 1 5 Full screen, colour 2 6 Full screen, colour 3 Result

PLT-1001v4 datasheet Page 10 7 Circle, full height, centred 8 Rectangle 1 pixel in from the edge, colour 1 9 Rectangle 2 pixel in from the edge, colour 1 10 Rectangle 3 pixel in from the edge, colour 1 11 Lines around the edge 12 Static text 13 8 pixel high bitmap 14 16 pixel high bitmap (if display is big enough) 15 32 pixel high bitmap (if display is big enough) Tips and tricks I m sending commands but nothing is displayed! Check the power connections. Be careful when hooking up the board since reversing the connections will damage LED matrix displays. Make sure you send a paint command after you send commands. Try the title command. It s a great first step to see that everything is working. Check that your panel has the same pin-out as the PLT-1001 it s called HUB08, a semi-standard for LED panels - if not, see the section on using the PLT-1001 with other panels. The firmware will print out its version over the serial port when the PLT-1001 is reset, so check that the right firmware for the display is loaded. And if your display is either blank or you can see pixels only faintly, then you probably need to try the enableactive command to set the ENable line correctly. I m sending commands and there s crazy stuff being displayed! The firmware is designed to be small and fast so it often avoids parameter checks. Most likely if you re seeing strange things displayed, one of your parameters is out of spec. For example, if you are using an LDP-8008, remember that the vertical pixels (y dimension) are numbered 0 through 7. Setting a pixel at x=0, y=8 will set a random area of memory rather than what you expect. Of course this is amplified when using commands that use large areas of the screen. Check your parameters to make sure that you are within the spec of the screen you are using. Set a pixel at x=0, y=7 instead. Something else to be conscious of is that the commands that take x, y parameters specify the bottom left corner of the function, and the x=0, y=0 pixel is in the top

PLT-1001v4 datasheet Page 11 left hand corner of the display. So to display a full screen red rectangle on an LDP- 8008, you would issue the commands: rect 1 0 7 80 8 paint (where 1 = red, x=0, y=7 (bottom left corner), 80 pixels wide, 8 pixels high. Red displays okay but green is very faint and orange/yellow is more red than orange/yellow. You probably haven t powered the displays with their 5V and GND connections and your display is leaching current from the serial connection. Other panels If your LED panel has a different pin-out to the standard set, it is a simple matter of connecting the correct pins to the LED Panel connection on the PLT-1001. In this case, you may find it easier to use a male connector on the top of the board so female jumpers can be used. Schematic General circuit The microcontroller circuitry is fairly standard. A reset button is provided, which pulls MCLR to ground. C1 prevents debounce noise. C2, C3 and crystal Q3 allow the PIC to run at 16mips. LED1 is available by pulling RA0 high; it is used by the 18f26K22_16Mhz_64Mhz_PLL version of Boostbloader to indicate the bootloader is

PLT-1001v4 datasheet Page 12 alive and well. C4 is a power supply bypass for the PIC and the ICSP connection provides a way of reprogramming the PIC without a bootloader (or to flash a new bootloader). Connections The LED panel connection follows the HUB08 standard connection for LED matrix display panels. The TTL serial connection allows for control of the PLT-1001.

PLT-1001v4 datasheet Page 13 The other connections break out remaining pins on the microcontroller for future expansion. A previous version of the PLT-1001 board contained a real time clock and temperature sensor, however to reduce the size of the board to allow the backpack configuration (and reduce the cost of the board!), these were removed from this version. However other modules can be connected to the PLT-1001 using these breakout connections. In future updates to the firmware we ll enable other modules to be connected to the PLT-1001v4.

PLT-1001v4 datasheet Page 14 PCB What next? We really hope you enjoy using this display driver and come up with some fantastic projects. Please tell us about it email us at myproject@embeddedadventures.com. And don t forget that we ll be making updates to the firmware so that you can interface with real time clock modules and more! Versions Version Date Comments Version 1.0 9 June 2010 Initial version for board v1.2 Version 2.0 16 June 2012 Updated version for the completely revamped v4 Version 3.0 7 April 2014 Updated version for new 2.10 firmware