Matrix Orbital VK202-25 Technical Manual

Matrix Orbital VK202-25 Technical Manual

Hide thumbs Also See for VK202-25:
Table of Contents

Advertisement

Quick Links

VK202-25
Technical Manual
Revision: 3.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VK202-25 and is the answer not in the manual?

Questions and answers

Summary of Contents for Matrix Orbital VK202-25

  • Page 1 VK202-25 Technical Manual Revision: 3.0...
  • Page 2: Table Of Contents

    5.8 Set Cursor Position ........Matrix Orbital...
  • Page 3 9.9 Assign Keypad Codes ........Matrix Orbital...
  • Page 4 14.5 Contacting Matrix Orbital ........
  • Page 5: Getting Started

    With the ability to communicate via serial RS-232/TTL and I C protocols, the versatile VK202-25 can be used with virtually any controller. The ease of use is further enhanced by an intuitive command structure to allow display settings such as brightness, and baud rate to be software controlled.
  • Page 6: Accessories

    1.2 Accessories NOTE Matrix Orbital provides all the interface accessories needed to get your display up and running. You will find these accessories and others on our e-commerce website at http://www.matrixorbital.com. To contact a sales associate see Section 14.5 on page 54 for contact information.
  • Page 7 Figure 5: Breadboard Cable Figure 6: Serial Cable 4FT Matrix Orbital VK202-25...
  • Page 8 Figure 7: Communication and 5V Power Cable Figure 8: Aluminum Mountings Matrix Orbital VK202-25...
  • Page 9 Figure 9: Keypad Mountings Figure 10: Keypad Mounting Figure 11: Mounting Kits Matrix Orbital VK202-25...
  • Page 10: Features

    Software controlled brightness with configurable time-out setting up to 90 minutes and software con- trolled speed Use of up to a 25 key keypad with a 10 key buffer Horizontal or vertical bar graphs Extended temperature option Fits Matrix Orbital’s mountings without any modifications Matrix Orbital VK202-25...
  • Page 11: Connecting To A Pc

    1.4 Connecting to a PC The VK202-25 connects seamlessly to a PC and it is an excellent means of testing the functionality. To connect your display to a PC, you will require a standard RS-232 9-pin serial cable such as the one pictured , as well as a modified 5V power adapter such as the one pictured in...
  • Page 12: Installing The Software

    1.5 Installing the Software 1.5.1 uProject uProject was designed by Matrix Orbital to provide a simple and easy to use interface that will allow you to test all of the features of our alpha numeric displays. To install uProject from the Matrix Orbital CD, follow the following steps: Insert the Matrix Orbital CD-ROM into the CD drive Locate the file, uProject.exe, which should be in the “CD-drive:\Download”...
  • Page 13: Hardware Information

    Manual Override Figure 15: VK202-25 2.1 DB-9 Connector The VK202-25 provides a DB-9 Connector to readily interface with serial devices which use the EIA232 standard signal levels of 12V to 12V. It is also possible to communicate at TTL levels of 0 to +5V by setting the Protocol Select Jumpers to TTL.
  • Page 14: Power Through Db-9 Jumper

    In order to provide power through pin 9 of the DB-9 Connector you must place a solder jumper on the Power through DB-9 Jumper pictured in below. The VK202-25 allows all voltage models to use figure 17 the power through DB-9 option, see table 1 on the following page for display module voltage requirements.
  • Page 15: Protocol Select Jumpers

    C mode and have a default slave address of 0x50 unless it has been changed. Similarly, in order to change the display to TTL mode, simply remove the zero ohm resistors from the 232 or I C jumpers and solder them to the TTL jumpers. Matrix Orbital VK202-25...
  • Page 16: General Purpose Outputs

    2.4 General Purpose Outputs A unique feature of the VK202-25 is the ability to control relays and other external devices using a General Purpose Output, which can provide up to 20 mA of current and +5Vdc from the positive side of the GPO.
  • Page 17: Dallas 1-Wire Bridge

    2.5 Dallas 1-Wire Bridge In addition to the six general purpose outputs the VK202-25 offers a Dallas 1-wire bridge, to allow for an aditional thirty two 1-wire devices to be connected to the display. Please note that the display normally does not come with the Dallas 1-wire bridge.
  • Page 18: Keypad Interface Connector

    2.7 Keypad Interface Connector The VK202-25 provides a Keypad Interface Connector which allows for up to a five by five matrix style keypad to be directly connected to the display module. Key presses are generated when a short is detected between a row and a column.
  • Page 19: Troubleshooting

    The last step will be to check the Power / Data Connector on the VK202-25. If the Power / Data Connector has become loose, or you are unable to resolve the issue, please contact Matrix Orbital, see 14.5 on page 54 for contact information.
  • Page 20: The Display Module Is Communicating, However Text Cannot Be Displayed

    $50 (0101 0000) , since the LSB has to be 0 for an I2C master write. When the I2C master wishes to read the VK202-25, the effective address is $51 (0101 0001), since the LSB has to be 1 for an I2C master read.
  • Page 21: Serial Communication

    ACK to indicate that the master still needs data, and a NAK to indicate that the transmission is over. The VK202-25 has some speed limitations, especially when run in I2C mode. Here are some considera- tions when writing I2C code: * to be able to read the replies of query commands (eg.
  • Page 22: Changing The Baud Rate

    Hex Value Baud Rate 1200 2400 4800 9600 19200 28800 38400 57600 NOTE This command is not available in I2C mode. Remembered Always Default 19,200 bps Matrix Orbital VK202-25...
  • Page 23: Setting A Non-Standard Baud Rate

    12 to 2047 which corresponds to a baud range of 977 to 153,800 baud. Setting the baud rate out of this range could cause the display to stop working properly and require the Manual Override jumper to be set. Remembered Always Matrix Orbital VK202-25...
  • Page 24: Text

    5 Text 5.1 Introduction The VK202-25 is an intelligent display module, designed to reduce the amount of code necessary to begin displaying data. This means that it is able to display all characters and strings that are sent to it, which are defined in the current character set.
  • Page 25: Character Set

    Remembered Default 5.3 Auto Scroll Off Hexadecimal 0xFE 0x52 Syntax Decimal 254 82 ASCII 254 “R” Matrix Orbital VK202-25...
  • Page 26: Clear Screen

    Description In order to change the text that is displayed by the VK202-25 when it starts up simply send the command bytes 254 64 followed by the characters that you wish to display, starting from the top left. This command will automatically line wrap the characters that are sent to it.
  • Page 27: Set Auto Line Wrap Off

    Remembered 5.9 Go Home Hexadecimal 0xFE 0x48 Syntax Decimal 254 72 ASCII 254 “H” Description This command will return the cursor to the top left corner of the display area, identified as row one, column one. Remembered Matrix Orbital VK202-25...
  • Page 28: Move Cursor Back

    5.12 Underline Cursor On Hexadecimal 0xFE 0x4A Syntax Decimal 254 74 ASCII 254 “J” Description This command will cause the VK202-25 to display an underline cursor at the current text insertion point. Remembered 5.13 Underline Cursor Off Matrix Orbital VK202-25...
  • Page 29: Blinking Block Cursor On

    Hexadecimal 0xFE 0x53 Syntax Decimal 254 83 ASCII 254 “S” Description This command will cause the VK202-25 to display an underline cursor at the current text insertion point. Remembered 5.15 Blinking Block Cursor Off Hexadecimal 0xFE 0x54 Syntax Decimal 254 84 ASCII 254 “T”...
  • Page 30: Saving Custom Characters

    Description The VK202-25 allows for up to eight custom defined characters to be added onto the the character set. A custom character is a five by seven, plus underline, pixel matrix with each row represented by a byte value. Eg.: Custom Character ’h’...
  • Page 31: Loading Custom Characters

    Description New to the VK202-25 has added five non-volatile memory banks for custom character storage. This is intended to allow you to create your own custom bar graphs, medium/large numbers and startup screen. However, each memory bank may be used to store a set of any eight custom characters;...
  • Page 32: Initialize Medium Number

    Length Description Parameters The row number. The column number. Digit Medium number to place (0-9). Description This command will place a medium number (two columns high) at the [row] and [col] specified. Remembered 6.8 Initialize Horizontal Bar Matrix Orbital VK202-25...
  • Page 33: Place Horizontal Bar Graph

    The [Length] is the size in pixels of the bar graph. NOTE Bar graphs may be one directional only. Remembered 6.10 Initialize Narrow Vertical Bar Hexadecimal 0xFE 0x73 Syntax Decimal 254 115 ASCII 254 “s” Matrix Orbital VK202-25...
  • Page 34: Initialize Wide Vertical Bar

    The length of the bar data. Description This command will place a bar graph at the specified [Column] with the specified [Length]. The [Length] is the size in pixels of the bar graph. NOTE Bar graphs may be one directional only. Remembered Matrix Orbital VK202-25...
  • Page 35: General Purpose Output

    General purpose outputs allow you to connect devices, such as LEDs, to the VK202-25 and supply them with up to 20mA of current at 5V. The VK202-25 has 6 GPOs which are software controlled, with functions to turn them on/off and set the power state for the next startup.
  • Page 36: Dallas 1-Wire

    8 Dallas 1-Wire 8.1 Introduction Another convenient feature of the VK202-25 is that it provides a Dallas 1-wire interface in order to readily communicate with up to thirty two 1-wire devices on a single bus. 1-wire communication is begun by discovering the address of the device that you wish to communicate with. To do this you must send the “Search for a 1-Wire Device’...
  • Page 37: Dallas 1-Wire Transaction

    SndBits The number of bits you will be transmitting on the bus. RcvBits The number of bits you will be reading on the bus. Data variable Data to be transmitted, LSB to MSB. Matrix Orbital VK202-25...
  • Page 38: Keypad

    9 Keypad 9.1 Introduction The VK202-25 supports up to a 25 key, matrix style, keypad and may be configured to allow key presses to be automatically transmitted via RS-232 or polled through I C. The VK202-25 also allows for auto- repeating key presses, and remapping of all keypad character codes.
  • Page 39: I2C Interface

    In this mode, all key presses are sent immediately to the host system without the use of the poll keypad command. This is the default mode on power up. NOTE This command is not available in I2C. Remembered Default 9.3 Auto Transmit Key Presses Off Matrix Orbital VK202-25...
  • Page 40: Poll Key Press

    No preceding commands are necessary. If there are no keys pressed the read will result in a 0x00. Remembered 9.5 Clear Key Buffer Hexadecimal 0xFE 0x45 Syntax Decimal 254 69 ASCII 254 “E” Matrix Orbital VK202-25...
  • Page 41: Set Debounce Time

    8 (about 52ms), which is adequate for most membrane keypads. Remembered Default 9.7 Set Auto Repeat Mode Hexadecimal 0xFE 0x7E [mode] Syntax Decimal 254 126 [mode] ASCII 254 “~” [mode] Parameters Parameter Length Description mode Auto Repeat Mode (0: Resend Key , 1: Key Up/Down) Matrix Orbital VK202-25...
  • Page 42: Auto Repeat Mode Off

    0xFE 0x60 Syntax Decimal 254 96 ASCII 254 “‘” Description This command turns auto repeat mode off. See Set Auto Repeat Mode. Remembered 9.9 Assign Keypad Codes Hexadecimal 0xFE 0xD5 [KDown] [KUp] Syntax Decimal 254 213 [KDown] [KUp] Matrix Orbital VK202-25...
  • Page 43: Display Functions

    10 Display Functions 10.1 Introduction The VK202-25 employs software controlled display settings, which allow for control over, clearing the screen, changing the brightness and contrast or setting timers for turning it on or off. The combination of these allow you complete software control over your display’s appearance.
  • Page 44: Display Off

    If the remember function is on, this command acts the same as ’Set and Save VFD Brightness’. Remembered Default 10.5 Set and Save VFD Brightness Hexadecimal 0xFE 0x91 [brightness] Syntax Decimal 254 145 [brightness] Parameters Parameter Length Description brightness Brightness setting (0 to 3). Matrix Orbital VK202-25...
  • Page 45: Data Security

    Ensuring that your VK202-25 display’s exactly what you want it to can be the difference between a projects success and failure. This is why we incorporate features such as Data Lock into the VK202-25 With this new feature you now are in control over of how and when settings will be changed so there is no need to worry about the module acting exactly like you expected it to because all the settings may be locked and remembered for the next power up.
  • Page 46: Data Lock

    Non-volatile memory has a ‘write limit’ and may only be changed approximately 100,000 times. Remembered Default Do not remember 11.3 Data Lock Hexadecimal 0xFE 0xCA 0xF5 0xA0 [level] Syntax Decimal 254 202 245 160 [level] Parameters Parameter Length Description level Sets the data lock level Matrix Orbital VK202-25...
  • Page 47 (text lock) NOTES Sending a new data lock level will override the previous data lock level. Data lock levels may be combined. Remembered Always Default Examples Binary Description 0x00 Unlock 0x50 01010000 Setting and Command Lock Matrix Orbital VK202-25...
  • Page 48: Set And Save Data Lock

    Reads whatever was written by Write Customer Data. Remembered 12 Miscellaneous 12.1 Introduction This chapter covers the ’Report Version Number’ and ’Read Module Type’ commands. These commands can be particularly useful to find out more information about the display module before contacting technical support. Matrix Orbital VK202-25...
  • Page 49: Read Version Number

    This command will return a byte representing the version of the module, see the following table as an example: Hex Value Version Number 0x10 Version 1.0 0x20 Version 2.0 0x42 Version 4.2 Remembered 12.3 Read Module Type Hexadecimal 0xFE 0x37 Syntax Decimal 254 55 ASCII 254 “7” Matrix Orbital VK202-25...
  • Page 50: Command Summary

    LCD2021 VK202-24-USB LCD2041 LK204-24-USB LCD4021 VK204-24-USB LCD4041 PK162-12 LK202-25 VK162-12 LK204-25 MOS-AP-162A LK404-55 PK202-25 VFD2021 MOS-AL-162A VFD2041 MOS-AV-202A VFD4021 MOS-AP-202A VK202-25 PK202-24-USB VK204-25 MOS-AL-082 GLC12232 MOS-AL-204 GLC24064 MOS-AV-204 GLK24064-25 MOS-AL-402 GLK12232-25-WBL MOS-AV-402 GLK12232-25-SM LK082-12 GLK24064-16-1U VK402-12 GLK19264-7-1U VK404-55 GLK12232-16-WBL LK402-25...
  • Page 51: Text

    254 “M” Hexadecimal 0xFE 0x4A Underline Cursor On Decimal 254 74 ASCII 254 “J” Hexadecimal 0xFE 0x4B Underline Cursor Off Decimal 254 75 ASCII 254 “K” Hexadecimal 0xFE 0x53 Blinking Block Cursor Decimal 254 83 ASCII 254 “S” Matrix Orbital VK202-25...
  • Page 52: Special Characters

    ASCII 254 “s” Hexadecimal 0xFE 0x76 Initialize Wide Vertical Decimal 254 118 ASCII 254 “v” Hexadecimal 0xFE 0x3D [Column] [Length] Place Vertical Bar Decimal 254 61 [Column] [Length] ASCII 254 “=” [Column] [Length] 13.4 General Purpose Output Matrix Orbital VK202-25...
  • Page 53: Dallas 1-Wire

    Set Auto Repeat Mode Decimal 254 126 [mode] ASCII 254 “~” [mode] Hexadecimal 0xFE 0x60 Auto Repeat Mode Off Decimal 254 96 ASCII 254 “‘” Hexadecimal 0xFE 0xD5 [KDown] [KUp] Assign Keypad Codes Decimal 254 213 [KDown] [KUp] Matrix Orbital VK202-25...
  • Page 54: Display Functions

    Reads the Customer Data Decimal 254 53 ASCII 254 “5” 13.9 Miscellaneous Description Syntax Page Hexadecimal 0xFE 0x36 Read Version Number Decimal 254 54 ASCII 254 “6” Hexadecimal 0xFE 0x37 Read Module Type Decimal 254 55 ASCII 254 “7” Matrix Orbital VK202-25...
  • Page 55: Command By Number

    Initialize Medium Number 0x6F “o” Place Medium Numbers 0x73 “s” Initialize Narrow Vertical Bar 0x76 “v” Initialize Wide Vertical Bar 0x7C “|” Place Horizontal Bar Graph 0x7E “~” Set Auto Repeat Mode 0x91 Set and Save VFD Brightness Matrix Orbital VK202-25...
  • Page 56: Appendix

    Shock (Operating) 29.4 m/s XYZ directions Shock (Non-Operating) 593 m/s XYZ directions 14.1.2 Electrical Table 66: Electrical Specifications Standard -VPT Supply Voltage +5Vdc 0.25V +9V to +15V +9V to +35V Supply Current 148 mA typical Inrush 250 mA Matrix Orbital VK202-25...
  • Page 57: Physical Layout

    14.2 Physical Layout Matrix Orbital VK202-25...
  • Page 58: Optical Characteristics

    Extended Temperature (-40C to 85C) Wide Voltage with Efficient Switching Power Supply (+9 to +35Vdc) Wide Voltage (+9 to +15Vdc) Most Significant Byte Least Significant Byte 14.5 Contacting Matrix Orbital Telephone Sales and Support: 1(403)229-2737 On The Web Sales: http://www.MatrixOrbital.com Support: http://www.MatrixOrbital.ca...

This manual is also suitable for:

Vk202-25-vVk202-25-vptVk202-25-e

Table of Contents