Serial LCD II with 11 Remote DIO

Similar documents
Manual 601: : USB/RS232. Specifications. Contents. Options

Introduction 1. Liquid crystal display (16 characters by 2 rows) Contrast dial: turn the dial to adjust the contrast of the display (see page 5)

melabs Serial LCD Firmware Version 1.1 3/5/07

Vorne Industries. 2000S Series Serial Input Alphanumeric Display User's Manual

CLCD1 Serial 1 wire RS232 LCD development board

melabs Serial LCD Firmware Version 1.0 2/7/07

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

Dual Interface LCD Display Controller

A3-TFFCBL-02 USB-to-UART Adapter User Manual

SLCD1-IC Serial LCD Processor

Introduction Page 1. Power Supply Requirements & Hardware Options Page 2. External Connectors (Functions & Pinouts) Page 2

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

SK18A. 18 Pins PIC START-UP KIT. User s Manual V1.1. Dec 2007

DEV16T. LCD Daughter board

NetMedia 2x16 Serial LCD Display Module V1.5

GP1 LCD RS232 Terminal Kit 2003 by AWC

TEL: (203) FAX: (203) WEB:

4.0 Blue LED DCF77 Clock documentation

LPM355X USB to Serial Converter

UC-2000 Installation Manual Unicorn Computers Technology Limited

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

CDN502 HIGH DENSITY I/O ADAPTER USER GUIDE

FEC-240G. Rev. Date

S125 Multi-Purpose 125 KHz RFID Reader USER MANUAL. 9V/24V DC Operating Voltage, AC (optional) KHz RFID EM4100/2 Cards & Tags

QUASAR PROJECT KIT # ATMEL AVR PROGRAMMER

CDN503 HIGH DENSITY I/O ADAPTER USER GUIDE

SDM-8AO. Expansion Module 8 analog outputs. Manufactured for

Board Of Education USB (#28850)

Shack Clock kit. U3S Rev 2 PCB 1. Introduction

420 Series RS232 Encoder Engineering Manual. Contents NOTICE

RS232 Backer Board for Alphanumeric LCDs

420 Series RS232 only Encoder for Keypad Applications Application / Engineering Manual

rdczbk User Manual ZigBee to RS-232 / RS-485 Converter

T100MD (Rev D-1) PLC Installation Guide

VLSI AppNote: VSx053 Simple DSP Board

CRX Card Reader Generic Interface - Programmer s Guide

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

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

MP3 Trigger v2 User Guide

SC1602LC 16x2 Large Characters RS232 LCD Module. User s Manual. Large Viewing Area 99mm x 24mm. Large Character Size. 4.84mm x 9.66mm.

PS2 Controller Starter Kit SKPS

1602 SMART LCD DISPLAY MODULE HCMODU0122

Transcendent Frequency Counter

T100MD PLC Installation Guide

Two-wire. Jumper for 12V. J2 Enable Adjust D/A1. Super PLC Warning: Warranty Void if this label is damaged 62256LP-12 CMOS RAM 4.

DLA. DMX512 Analyzer. DLA Users Manual SV2_00 B.lwp copyright ELM Video Technology, Inc.

Universal RFID Socket board with USB interface

PCB-AVR1284-3U. AVR Microcontroller Development PCB for Atmel 40-pin DIP AVRs.

Parallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977) 4 rows x 20 characters Backlit (#27979)

CAUTION: TTL Only, Do Not Use ± 12 V RS-232

3. The circuit is composed of 1 set of Relay circuit.

Easy Kit Board Manual

Rev. A. ANC Series RS-485/RS-422 Synchronous Clock Display. Antona Corporation (818) URL:

A brief user guide Universal Learning Remote Controller

Celadon, Inc. TRX Series Infrared Remote and Receiver Assembly and Operation Instruction Manual

Universal RFID Socket board with RS232 / USB interface

Cytron USB to UART Converter UC00A

04/12/11 version 1.0

Cookie User Manual. For NuMicro Edition 1.0. Rev. 1.0 Release: forum.coocox.org.

Parallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977)

Dual Serial Shield User Manual

Real Time Clock with Temperature Sensor and RS485/Modbus Comunications

Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

CF Plug-In. Evaluation Board User Guide. Bulletin Revision Date

Description. Overview. Features S90-MTM-DEV-2. MTM Development Board 2.0 Datasheet

TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT

Manual. Specifications. Contents. Options

LT900SERIES. 1xN Multi-Channel Switch Operation Manual. For RS-232 Control with 16-pin Connector

MOS-AV-162A Technical Manual. Revision: 1.0

Exclusive 2.5 GHz Frequency Counter

Serial Basic Hookup Guide

RS-232 to Logic Level Adapter with DB9M Connector and Power LED

1.14 RS232 Serial Data Interface (Optional):

RS485 MODBUS Module 8AO

Post Tenebras Lab. Written By: Post Tenebras Lab

Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc.

Basics of UART Communication

OPERATION MANUAL Card Reader Communication

Schematic Diagram: R2,R3,R4,R7 are ¼ Watt; R5,R6 are 220 Ohm ½ Watt (or two 470 Ohm ¼ Watt in parallel)

DEV-1 HamStack Development Board

Total solder points: 82 Difficulty level: beginner advanced 2 MODULAR DIGITS WITH SERIAL INTERFACE K8063 ILLUSTRATED ASSEMBLY MANUAL

MA1 Midi Analyzer M Series Module ELM Video Technology, Inc.

K191 3 Channel RGB LED Controller

DOG SERIES 3.3V INCL. CONTROLLER ST7036 FOR 4-/8-BIT, SPI (4-WIRE)

ON4AKH Antenna Rotator controller Version 1.0

LCD0821. Technical Manual. Revision 3.0. PCB Revision: 2.0 or Higher. Firmware Revision: 5.0 or Higher

Product Model Distance Transfer. LDK : Laser Distance Kit. M2:Model2 30 :30M 60 :60M 100:100M. RS: RS-232 BT: Bluetooth

HYDRA-X10. Power Application Controllers TM. PAC HYDRA-X User s Guide. Copyright 2014 Active-Semi, Inc.

NetMedia 2x16 Serial LCD Display Module V1.2

IS-Dev Kit-1 Users Manual

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

PLEASE READ INSTRUCTIONS CAREFULLY BEFORE INSTALLATION!

N8VEM S-100 BACKPLANE VERSION 04 MAY 3, 2015 J.B.

LCD Micro Serial/I 2 C Interface Module for R.G.B backlights. Technical Data

LCD Module with I2C / Serial Interface and Keypad Control «LCD I2C/Serial» User s Guide. Copyright 2008 IMS

MINI DSP EVM KIT Application Manual

Designer Systems. LCD Micro Serial Interface Module for Alpha LCD panels. Technical Data

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

Intelligent Devices IDI 6005 Speed Sign Controller Technical Manual

Transcription:

with 11 Remote DIO Technical Manual Rev 1r0 The new display kit is an interface board that allows you to use LCD displays in your project without the coding pains associated with it. Displaying a message from your host controller becomes just a simple matter of sending the message to display through your host MCU UART. And there is more to it. The new also has 11 remote Digital I/O DIO. You can use these I/O to control or monitor digital logic devices with the use of simple commands. For example, you can use a pin to drive an LED, another logic circuit, and - with the use of appropriate drivers, even motors and solenoids. You can even freely con gure each pin to use as input or output independent of each other. with 2x16 characters LCD display module. The Serial LCD will work with any mainstream LCD (2x16 and 4x20) that uses the HD44780 LCD controller or is compatible to it. The kit had been tested and do work even with a 2x16 VFD display that is compliant to the HD44780 protocol. With just the installation of a jumper block, it will even accept the compact 4x20 LCD display MDLS20433 utilizing the S6A0073 Samsung controller. Features: Compatible with popular 2x16 and 4x20 LCD and VFD character display modules. 11 user programmable digital I/O. UART Serial Interface, 3v3 and 5V logic. User adjustable contrast control. User adjustable (through user program code) backlight brightness. Fuse protected power input. On-board regulator allows the kit to work with 7.5V up to 10VDC power source. with 2x20 characters LCD display module. with 4x20 characters compact LCD display module. Available as an option is a acrylic mounting bracket. Page 1 of 11 pages

A1 A0 10 9 8 7 6 5 4 3 2 1 0 FUSE P1 POWER IN +VIN LCD PORT PIN1 RV1 CONTRAST ADJUSTMENT V+ RX TX UART PORT 1 1 P5/P6 P2/P4 DIO 0-5 DIO 6-10 JP2 UART LOGIC VOLTAGE LCD TYPE JP1 Figure 1. PCB layout identifying connectors and jumpers locations. JUMPER SETTINGS JP1 : LCD Type No Jumper - 2x16 or 4x20 LCD Display Hitachi Controller (default). Jumper Installed - 4x20 LCD display using Samsung Controller. JP2 : UART Logic Level No Jumper - When used with a host controller running on 3.3VDC power and logic level. Jumper Installed - When used with 5V host controller. e.g. gizduino. CONNECTORS CON2 LCD PORT The will work with any 2x16 and 4x20 alphanumeric LCD display using or compatible with Hitachi HD44780 controller and Samsung S6A0073. That makes the board compatible with probably at least 90% of LCD alphanumeric display modules being sold today. CONN2 accepts both 14 and 16 pins (LCD with back light) LCD Modules with 0.1 (2.54mm) pitch single in line socket. Available as option is a 16-pin 1mm pitch FFC/FPC connector suited for the 4x20 MDLS20433 small size LCD display module. P8 UART PORT This is the serial I/O interface that connects to your host MCU UART port for control and data exchange. This port will work both with 5V and 3v3 logic by con guring jumper JP2 as previously discussed. PIN ID Description 1 TX UART Transmit OUTPUT 2 RX UART Receive INPUT 3 Ground 4 V+ +3v3 or Open circuit for +5V Logic REMOTE DIO has 11 Digital I/Os (DIO) that can be con gured, under user program control, to work either as input or output independently. These remote DIO essentially gives your host MCU extra ports you can use to drive, for example, LEDs, buzzers, or read switches, sensors, etc. Two types of terminals are available as options for use with the DIO. A 2-mm pitch ZIF may be installed as P5 and P2, or a 2.54mm pitch SIL header may be used for P6 and P4. In fact, you can install both terminal connectors, if you want to, Page 2 of 11 pages

P5/P6 DIO 0-5 P2/P4 DIO 6-10 PIN ID Description 1 Ground 2 Ground 3 Ground 4 0 DIO 0 - Digital I/O 0 5 1 DIO 1 - Digital I/O 1 6 2 DIO 2 - Digital I/O 2 7 3 DIO 3 - Digital I/O 3 8 4 DIO 4 - Digital I/O 4 9 5 DIO 5 - Digital I/O 5 PIN ID Description 1 Ground 2 Ground 3 6 DIO 6 - Digital I/O 6 4 7 DIO 7 - Digital I/O 7 5 8 DIO 8 - Digital I/O 8 6 9 DIO 9 - Digital I/O 9 7 10 DIO 10 - Digital I/O 10 8 A0 Reserved 9 A1 Reserved AC/DC ADAPTER OR DC POWER SUPPLY 7.5v- 9VDC 500mA + - Fig. 2a Fig. 2b 470R LED + - BUZZER PUSH SWITCH Fig. 2c Figure 2. with 2mm ZIF connectors installed (a). With this connector, you can easily install and remove wires from the remote DIO without soldering. To install a wire, simply insert a pretinned AWG 22-25 stranded wire (b), the connector will automatically grab it securely. To remove wire, simply push down the release bar (c) and gently pull the wire from the connector. Figure 3. Remote DIO example application circuit. The remote DIO is ideal for a component that does not require high speed access or refresh. Each pin, at user program control, can be con gured as input or output independent of each other. Page 3 of 11 pages

WIRING EXAMPLES Important: The fuse will blow if the power supply is connected the wrong way. Replace the fuse to continue using the kit. AC/DC ADAPTER OR DC POWER SUPPLY 7.5v- 9VDC 500mA + - 3V3 MCU HOST CONTROLLER +3V3 UART RX TX Figure 4. Interfacing with the UART of a host controller working at 3v3 logic level. AC/DC ADAPTER OR DC POWER SUPPLY 7.5v- 9VDC 500mA + - 5V MCU HOST CONTROLLER UART RX TX JP2 JUMPER INSTALLED FOR 5V HOST CONTROLLER Figure 5. The UART port works on a 5V logic, hence no level translation is required. Jumper JP2 may not be even required in most installations. If you are not sure, better install a jumper (5V logic only). Page 4 of 11 pages

AC/DC ADAPTER OR DC POWER SUPPLY 7.5v- 9VDC 500mA + - RX TX JP2 JUMPER INSTALLED when used with gizduino Figure 6. Interfacing with a gizduino. The gizduino works on 5V logic. The same rule as previously mentioned in Figure 5 can be applied. Page 5 of 11 pages

COMMUNICATIONS MANUAL Baud Rate: 9600 Data: 8 Bit Parity: none Handshake: none Summary of Functions F - Initialize as 4x20 LCD Display c - Clear Display 1 - Display to line 0 2 - Display to line 1 3 - Display to line 2 4 - Display to line 3 5 - Clear & Display to line 0 6 - Clear & Display to line 1 7 - Clear & Display to line 2 8 - Clear & Display to line 3 > - cursor position m - scroll display to line 0 M - scroll display to line 1 B - backlight Brightness 0-19 T - Test S R I i o Important: - set Aux Output - Reset Aux Output - Read input - con gure as input - con gure as output Communications Format Every packet of data transmission are wrapped inside an [STX] and [ETX] marker. correct way of transmitting the [STX] and [ETX] markers are as shown in the following example: Example 1: Clear LCD Display Transmission Format: Format: [STX]c[ETX] This should be transmitted in their ASCII code representation as shown in the following table: Symbol STX c ETX Hex 0x02 0x63 0x03 Visual Basic: Correct: correct way to send [STX] & ETX marker Serial1.print(chr(2)+ c +chr(3)) Wrong: Serial1.print( [STX]c[ETX] ) Arduino: Correct: Serial.write(0x02); Serial.print( c ); Serial.write(0x03); Wrong: Serial.print( [STX]c[ETX] ); WRONG! // correct way to send [STX] // ASCII equivalent of c 0x63 // [ETX] marker // WRONG! [STX] Start of transmission marker, ASCII value = 0x02 [ETX] End of transmission marker, ASCII value = 0x03 The rst character after the [STX] marker is a single character function speci er. Each transmission may contain just a function speci er only, or may contain a series of data in addition to the function speci er. End of transmission is signaled by the [ETX] marker. [STX] and [ETX] are data packet markers and should not be transmitted as literal string. They should be send in their ASCII representation. The Page 6 of 11 pages

Example 2: Display Hello World! on the top line Transmission Format: [STX]1HelloWorld![ETX] ACII STX 1 H e l l o W o r l d! ETX Symbol Hex 0x02 0x31 0x48 0x65 0x6c 0c6c 0x6f 0x20 0x57 0x6f 0x72 0x6c 0x64 0x21 0x03 Visual Basic: Arduino: Serial1.print(chr(2)+ 1Hello World! +chr(3)) Serial.write(0x02); Serial.print( 1Hello World! ); Serial.write(0x03); //STX //1Hello World! //ETX Alternately, you can use the C/Arduino \ operator to send the ASCII code of STX and ETX, together with the function and data: Serial.print( \0021Hello World!\003 ); // \002 = STX, \003 = ETX Notice that in both example, only the STX and ETX marker need to be manually converted to their ASCII code, for the simple reason that they have no equivalent printable characters. The three line implementation (long format)may make your program longer, but is more human readable. Hence, for clarity, all example codes given are shown in the long format. We leave it up to you if you want to convert and code it in short format. Page 7 of 11 pages

Function Description 1. F Initialize as 4x20 LCD display Initialize a Hitachi Controller based LCD for a 4x20 display (standard size). This function is not required for Samsung Controller based 4x20 LCD display (mini size). To ensure user rmware compatibility to both 4x20 LCDs, it is recommended that this initialization function be carried out regardless of the controller. Format: [STX]F[ETX] OK Function exe 2. c - Clear LCD Clear LCD display Format: [STX]c[ETX] OK Ready Example (Arduino): Serial.print( c ); //c Clear LCD function code 3. > - Set Printing Start Position Where: Format:[STX]>nn[ETX] OK Ready ERR - Print Start position invalid nn = start print position, 0-15(0-20) 0- left most position 15(20) rightmost position Default value=0 Example: Set print start position to 10th character in a line (Arduino): Serial.print(0x02); //[STX] Serial.print( >10 ); Serial.print(0x03); //[ETX] 4. Printing/Display Functions 1 Print to Line 0 (Top Row) 2 Print to Line 1 (Bottom Row) 3 Print to Line 2 (4x20 LCD only) 4 Print to Line 3 (4x20 LCD only) 5 Clear and then Print message to Line 0 6 - Clear and then Print message to Line 1 7 - Clear and then Print message to Line 2 (4x20 LCD only) 8 - Clear and then Print message to Line 2 (4x20 LCD only) Print user message to speci ed line. Message can contain any printable characters up to 16(20) characters long. Long messages will be automatically truncated to 16 (20) characters. Functions 1 to 4 will simply write over any prior existing message on a line, taking the space of only those needed by the message. For example, if your program displayed String Theory on line 1, and then later on print another message, say 123 on the same line, the printed result will be 123ing Theory. This feature is useful for programs that need to refresh just a small portion of the displayed message everytime. It helps to reduce display icker. Use functions 5 to 8 if you want to erase all pre-existing message on a line before printing the latest speci ed message. Use > Print Start Position function before calling any one of the printing functions if you want to start printing on any valid position along the line. Format: [STX]1wETX] Where: w= user message, up to 16 characters long Example 1 (Arduino): Display J3J3mon to line 0 Page 8 of 11 pages

Serial.print( 1 ); // 1 print to line 0 function Serial.print( J3J3mon ); // w Alternatively Serial.print( \0021J3J3mon\003 ); Example 2 (Arduino): Display e-gizmo to line 1 near center position // Set start position to Serial.print( >4 ); // Start on 4th character position Example 1 (Arduino): Scrolling Display Programmers have more fun! to line 1 Serial.print( M ); // M scrolling display to line 1 Serial.print( Programmers have more fun! ); // w 6. T Test Communication Link Use to test the communications link and determine device status. Format: [STX]T[ETX] // clear line print message OK = Ready Serial.print( 4 ); // 4 clear print to line 1 function Serial.print( e-gizmo ); // w=e-gizmo 5. Scrolling Display Functions m display a scrolling message to line 0 M display a scrolling message to line 1 Long messages can be displayed on a line using the Scrolling Display Function. Messages up to 79 characters long can be displayed on each line. 7. B- Backlight Brightness The LCD backlight brightness can be adjusted in 18 steps, with 1 setting it to the dimmest and 19 (and 0) to the brightest setting. Format: [STX]Bnn[ETX] Where: nn Brightness level, 0-18 - ERR = invalid level - OK = Ready Tips: - Scrolling message is more readable if preceded by 15 blank spaces. - Lower LCD contrast if the characters appear overlapping as they are scrolled. Format: [STX]mw[ETX], [STX]Mw[ETX] OK = Ready Where: w= user message, up to 79 characters long Example (Arduino): Set LCD backlight brightness to 5 Serial.print( B ); // B LCD Backlight function Serial.print( 5 ); // nn brightness level 8. S,R,I,i,o Serial LCD Auxiliary I/O functions S Set an output (set to Logic 1) R Reset an output (reset to Logic 0) I Read an input i con gure as input o con gure as output The has 11 digital I/O port that you can use as slow speed I/O in your applications. All Page 9 of 11 pages

I/O are con gured as inputs by default. You can con gure any number of available I/O as outputs if it is so desired. Generally, con guration is done only once during program initialization, but you can con gure any I/O to act as input or output at any time. PCB LAYOUT COMPONENT LAYOUT Format: [STX]Sn[ETX] [STX]Rn[ETX] [STX]In[ETX] [STX]in[ETX] [STX]on[ETX] Where: n I/O number 0-10 S,R,i,o function OK ERR - Invalid I/O number I function 0 - input at logic 0 1 - input at logic 1 ERR - Invalid I/O number COMPONENT SIDE COPPER PATTERN Example (Arduino): Set I/O 5 as an Output Serial.print( o ); // Set an output Serial.print( 5 ); // output 5 Example (Arduino): Set I/O 5 to logic 1 BOTTOM SIDE COPPER PATTERN Serial.print( S ); // Set an output Serial.print( 5 ); // output 5 Example (Arduino): Read state I/O 10 Serial.print( I ); // Read an INPUT Serial.print( 10 ); // input 10 Tip: You can enable the built-in pull up of any input port by writing logic 1 on it (using the S function). Page 10 of 11 pages

Figure 7. Schematic Diagram. Page 11 of 11 pages