With the ability to communicate via USB protocol, the versatile LK204-25-USB can be used with virtually any controller. The ease of use is further enhanced by an intu- itive command structure to allow display settings such as backlight brightness, contrast and baud rate to be software controlled.
Page 6
Figure 1: 3ft mini-B USB Figure 2: Keypad Mountings Figure 3: Mounting Kits Matrix Orbital LK204-25-USB...
• Software controlled contrast and brightness with configurable time-out setting up to 90 minutes • Use of up to a 25 key keypad with a 10 key buffer • Horizontal or vertical bar graphs • Fits Matrix Orbital’s mountings without any modifications Matrix Orbital LK204-25-USB...
1.4 Connecting to a PC The LK204-25-USB 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 USB cable such as the one pictured in figure 1 on page 2...
7. Test the display using a software tool such as uProject. 1.5.2 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.
Figure 7: LK204-25-USB 2.1 Power Connector The LK204-25-USB provides a Power Connector to allow the device to be powered externally. In order to power the device externally, you must remove one of the USB protocol select jumpers. The jumper to remove is the leftmost USB jumper as seen if figure 15.
Figure 8: Alternate Power Connector 2.2 Keypad Interface Connector The LK204-25-USB 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.
2.3 Manual Override The Manual Override is provided to allow the LK204-25-USB to be reset to factory defaults. This can be particularly helpful if the display module has been set to an unknown baud rate and you are no longer able to communicate with it.
NOTE The display module will revert back to the old settings once turned off, unless the settings are saved. 2.4 USB Header The USB Header provides USB connector for communication and power of the display. An alternate power option for the display can be seen in figure 8 Matrix Orbital LK204-25-USB...
The LK202-25-USB also offers an alternative, Serial Header option to permit serial communication with the device. Please note the the display normally does not come with the Serial Header, it will have to be ordered as a custom. Please talk to your sales representative if you would like this option. Matrix Orbital LK204-25-USB...
2.6 General Purpose Outputs A unique feature of the LK204-25-USB 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.
2.7 Dallas 1-Wire Bridge In addition to the six general purpose outputs the LK204-25-USB offers a standard Dallas One-Wire bridge, to allow for an aditional thirty two 1-wire devices to be connected to the display. Matrix Orbital...
USB jumpers. In order to place the display module in external power mode you must first remove the leftmost solder jump from the USB jumpers, as shown in figure . The display cannot be used in RS232, TTL, or I2C mode. Matrix Orbital LK204-25-USB...
Matrix Orbital using one of the mehods described in section 14.6. • The last step will be to check the USB Cable on the LK202-25-USB. If the USB Cable has become loose, or you are unable to resolve the issue, please contact Matrix Orbital, see section 14.6 for contact information.
0x51, whereas the write address is 0x50 by default. This address may be changed by using cmd 254 / 51 / <address>. The LK204-25-USB should only be sent addresses that are even (LSB is 0). When the I...
RS-232 protocol at at a default baud rate of 19,200 bps and is capable of standard baud rates from 9600 to 115,200 bps. Furthermore the LK204-25-USB is also capable of reproducing any non-standard baud rate in between using values entered into our baud rate generation algorithm and set through command 164 (0xA4).
Communication is via a virtual com port, which is created in the operating system by the drivers necessary to install the USB display. The LK204-25-USB communicating via USB is capable of baud rates of 19,200 bps to 115,200 bps. Other baud rates are subject to the limitation of the virtual com port driver. For further information regarding supported operating systems, and driver limitations please contact technical support.
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 LK204-25-USB...
5 Text 5.1 Introduction The LK204-25-USB 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 ASCII formated characters and strings that are sent to it, which are defined in the current character set. The display module will begin displaying text at the top left corner of the display area, known as home, and continue to print to the display as if it was a page on a typewriter.
5.1.1 Character Set Figure 16: Character Set 5.1.2 Control Characters In addition to a full text set, the LK204-25-USB display supports the following ASCII Control characters: 0x08 Backspace 0x0C Clear screen / New page 0x0D Carriage return 0x0A Line feed / New line 5.2 Auto Scroll On...
254 “@” Description In order to change the text that is displayed by the LK204-25-USB 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.
5.14 Blinking Block Cursor On Hexadecimal 0xFE 0x53 Syntax Decimal 254 83 ASCII 254 “S” Description This command will cause the LK204-25-USB to display a block cursor at the current text insertion point. Remembered 5.15 Blinking Block Cursor Off Matrix Orbital LK204-25-USB...
6 Special Characters 6.1 Introduction The LK204-25-USB has the ability to create four different sets of eight custom characters and save them to internal banks of memory. Each set of eight can be recalled from memory at any time, and selected characters can be written to the display screen.
Description The LK204-25-USB allows for upta to eight custom defined characters to be added onto the the character set. A custom character is a five by eight pixel matrix with each row represented by a byte value. For example: Custom Character ’h’...
Description New to the LK204-25-USB 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;...
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. NOTE Medium Numbers must be initialized before this command is executed. Remembered Matrix Orbital LK204-25-USB...
If you have stored your own custom horizontal bar data, use the ’Load Custom Characters’ command instead to load your custom bar data into the volatile memory. This command will allow you to use the ’Place Horizontal Bar’ command. Remembered Matrix Orbital LK204-25-USB...
’Load Custom Characters’ command instead to load your custom bar data into the volatile memory. This command will allow you to use the ’Place Vertical Bar’ command. NOTE Narrow bars have a width of two pixels. Remembered 6.13 Initialize Wide Vertical Bar Matrix Orbital LK204-25-USB...
General purpose outputs allow you to connect devices, such as LEDs, to the LK204-25-USB and supply them with up to 20mA of current at 5V. The LK204-25-USB has 6 GPOs which are software controlled, with functions to turn them on/off and set the power state for the next startup.
Description Parameters GPO number. Description This command turns ON general purpose output [num]. The standard GPO’s on the LK204-25-USB output 20mA of current at 5V. NOTE ON means the output is pulled HIGH. Remembered 7.4 Set Startup GPO state Hexadecimal...
8 Dallas 1-Wire 8.1 Introduction Another convenient feature of the LK204-25-USB 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’...
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 LK204-25-USB...
9 Keypad 9.1 Introduction The LK204-25-USB supports up to a 25 key, matrix style, keypad and may be configured to allow key presses to be automatically transmitted via USB. The LK204-25-USB also allows for auto-repeating key presses, and remapping of all keypad character codes.
In this mode, up to 10 key presses are buffered until the unit is polled by the host system, via the poll keypad command 254 38. Issuing this command places the unit in polled mode. Remembered 9.4 Poll Key Press Hexadecimal 0xFE 0x26 Syntax Decimal 254 38 ASCII 254 “&” Matrix Orbital LK204-25-USB...
’bounce’ for a varying time, depending on their physical characteristics. The [time] value is in increments of 6.554ms. The default debounce time for the module is 8 (about 52ms), which is adequate for most membrane keypads. Remembered Default Matrix Orbital LK204-25-USB...
10 Display Functions 10.1 Introduction The LK204-25-USB 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.
10.5 Set and Save Brightness Hexadecimal 0xFE 0x98 [brightness] Syntax Decimal 254 152 [brightness] Parameter Length Description Parameters brightness Backlight setting (0 to 255). Description This command sets and saves the display [brightness] as default. Remembered Always Matrix Orbital LK204-25-USB...
Efectively, values 0 through 7, 8 through 15, and so on will result in the same setting. Remembered Default 10.7 Set and Save Contrast Hexadecimal 0xFE 0x91 [contrast] Syntax Decimal 254 145 [contrast] Parameters Parameter Length Description contrast Contrast value (0 to 255). Matrix Orbital LK204-25-USB...
11 Data Security 11.1 Introduction Ensuring that your LK204-25-USB 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 LK204-25-USB 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.
• 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 LK204-25-USB...
• Data lock levels may be combined. Remembered Always Default Examples Binary Description 0x00 Unlock 0x50 01010000 Setting and Command Lock 11.4 Set and Save Data Lock Hexadecimal 0xFE 0xCB 0xF5 0xA0 [level] Syntax Decimal 254 203 245 160 [level] Matrix Orbital LK204-25-USB...
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. 12.2 Read Version Number Matrix Orbital LK204-25-USB...
This command will return a byte representing the version of the module, see the following table as an example: Hex Value Version Number 0x19 Version 1.9 0x57 Version 5.7 Remembered 12.3 Read Module Type Hexadecimal 0xFE 0x37 Syntax Decimal 254 55 ASCII 254 “7” Matrix Orbital LK204-25-USB...
Set Auto Line Wrap Off Decimal 254 68 ASCII 254 “D” Hexadecimal 0xFE 0x47 [col] [row] Set Cursor Position Decimal 254 71 [col] [row] ASCII 254 “G” [col] [row] Hexadecimal 0xFE 0x48 Go Home Decimal 254 72 ASCII 254 “H” Matrix Orbital LK204-25-USB...
0xFE 0x98 [brightness] Set and Save Brightness Decimal 254 152 [brightness] Hexadecimal 0xFE 0x50 [contrast] Set Contrast Decimal 254 80 [contrast] ASCII 254 “P” [contrast] Hexadecimal 0xFE 0x91 [contrast] Set and Save Contrast Decimal 254 145 [contrast] Matrix Orbital LK204-25-USB...
“6” Read Version Number 0x37 “7” Read Module Type 0x39 “9” Changing the Baud Rate 0x3D “=” Place Vertical Bar 0x40 “@” Changing the Startup Screen 0x41 “A” Auto Transmit Key Presses On 0x42 “B” Display On Matrix Orbital LK204-25-USB...
Page 57
Set and Save Brightness 0x99 Set Brightness 0xA4 Setting a Non-Standard Baud Rate 0xC0 Loading Custom Characters 0xC1 Saving Custom Characters 0xC2 Save Startup Screen Custom Characters 0xC3 Set Startup GPO state 0xC8 Dallas 1-Wire Transaction 0xCA Data Lock Matrix Orbital LK204-25-USB...
3.20 mm x 5.55 mm Display Size 83.00 mm x 18.60 mm LED Backlight Half-Life (YG & IY) 50,000 hours typical LED Backlight Half-Life (R) 20,000 hours typical LED Backlight Half-Life (GW & WB) 10,000 hours typical Matrix Orbital LK204-25-USB...
Page 59
NOTE To prolong life, it is recommended that the backlight be turned off when the display is not in use. Matrix Orbital LK204-25-USB...
NOTE * Also available with a Vacuum Florescent Display in the VK204-25-USB model 14.5 Definitions E Extended Temperature (-20C to 70C) GW Grey Text / White Background WB White Text / Blue Background R Inverse Red IY Inverse Yellow MSB Most Significant Byte LSB Least Significant Byte Matrix Orbital LK204-25-USB...
14.6 Contacting Matrix Orbital Telephone Sales: 1(403)229-2737 Support: 1(403)204-3750 On The Web Sales: http://www.MatrixOrbital.com Support: http://www.MatrixOrbital.ca Forums: http://www.lcdforums.com 14.7 Revision History Table 75: Revision History Revision Description Author Initial Manual Clark Updated Backlight Life Clark Matrix Orbital LK204-25-USB...
Need help?
Do you have a question about the LK204-25-USB and is the answer not in the manual?
Questions and answers