Serial LCD 20x4 Daughter Board


 

18.30

10 days
LCD2S-204
260 item(s)
+

Our quantity discounts:

Quantity  5+   10+   50+ 
Price  €16.47   €14.64   €12.81 

Description

The LCD2S-204 is a RoHS compliant Serial LCD Daughter board that can be connected to a standard 20x4 Character Display Module that supports 4 bit mode. It enables the LCD display to be controlled via an I2C or SPI serial bus. The contrast and backlight are software controlled, and can be set to 254 levels.

The LCD2S-204 includes a 4x4 (16 button) matrix keypad encoder with software debouncing. A keypad with up to 16 buttons (4 rows by 4 columns) can be added to the display via a standard 10 pin, 2.54mm header. Our 12 button or 16 button keypads can be used, and can be connected to the LCD2S-204 via the CAB16RIB150 ribbon cable. When using the I2C serial bus, an interrupt line will be activated when a key is pressed, informing the user that there is key data to be read. Alternatively the LCD2S-204 can be polled to see if it has any pending keypad data.

The LCD2S-204 also has 5 user configurable, general purpose inputs/outputs. Two of them can deliver up to 1000mA each, and have protection circuitry for driving relays.

The LCD used must supports 4 bit mode. All 20x4 Character Modules sold on our site support 4 bit mode, and nearly all commercially available LCD Character Modules support it too. The LCD2S-204 has a high speed SPI/I2C serial bus. For convenience the I2C and SPI signals are available via a Micro Match type connector, and a standard 2.54mm, 2x6 row pin header. Most new Modtronix SBC boards have Micro Match connectors, and can be connected to the LCD2S-204 using these 150mm or 300mm cables. Or, the CON-MICMAT6-MW Micro Match connector can be used to create a custom cable.

A 2-way DIP switch is used to configure the unit for SPI or I2C operation (3 different addresses). See our forum for many I2C, SPI, Arduino and other code examples.

Download the datasheets below for further details on this product, and list of all commands.

Click to enlarge

Features

  • Can be controlled via a high speed SPI or I2C bus. Both busses can operate at speeds close to 1Mbits/sec!
  • Can be used to add a serila LCD display with I/O to Arduino, PIC, AVR or nearly any other board with an I2C or SPI bus
  • Large number of LCD commands for moving cursor, moving display and more
  • Up to 8 custom characters can be defined, a utility for creating custom characters is available here
  • Built in commands for drawing Bar Graphs
  • LCD Backlighting controlled via software, has 254 brightness levels
  • LCD Contrast controlled via software, has 254 contrast levels
  • User configurable start up screen
  • 80 Byte buffer for messages received via serial interface
  • Two high current, open collector outputs with output currents up to 1000mA each, and relay protection circuitry
  • 3 general purpose input/output pins
  • Keypad encoder for a keypad up to 16 keys (4 rows by 4 columns)
  • Keypad has a configurable button repeat delay and repeat rate
  • Can be configured to sound a buzzer (connected to OUT2) each time a button is pressed
  • 6 Pin Micro Match connector with I2C, SPI and power signals
  • Standard 10 Pin (1x10), 2.54mm connector for connecting a keypad of up to 4 rows by 4 columns
  • Standard 10 Pin (5x2), 2.54mm connector with user outputs, I2C, SPI and power signals
  • DIP switch for setting serial mode and I2C address
  • Low current consumption - without LCD backlight is about 4mA
  • High quality machine assembly, with brand name, quality components:
    • All electrolytic capacitors used are extra long life Panasonic brand, which is 5 times more than standard!
    • PCB is Gold plated for best contact and no corrosion
    • All pin headers are gold plated for best possible contact
    • Lead free, RoHS compliant assembly

Adding a Keypad, Relays and I/O

Controlling OUT1 and OUT2 outputs

The LCD2S has 2 general purpose open collector outputs, OUT1 and OUT2. These outputs can supply up to 1000mA, and have protection circuitry for driving relays. Both OUT1 and OUT2 are enabled by default. They are available via the X3 connector (2x6 pin header).

For example Arduino code, see this post in our forum.

Download the datasheets below for further details.

 

Adding a 4x4 Keypad, and controlling 1 output

A matrix keypad supporting up to 16 buttons (4x4 matrix) can be connected to the LCD2S-204. The keypad is connected to the pins marked R1 to R4 (rows) and C1 to C4 (columns) on the X1 1x10 pin header. The LCD2S has built in button debouncing, which can be configured for different values. The default should work fine though.

For example Arduino code, see this post in our forum.

Download the datasheets below for further details.

 

Adding a 4x3 Keypad, and controlling 2 outputs

When using OUT1 and OUT2 outputs, the largest keypad that can be used is a 4x3, 12 button keypad. The keypad is connected to the pins marked R1 to R4 (rows) and C1 to C3 (columns) on the X1 1x10 pin header. The C4 pin can not be used (function is shared with OUT1). The "OUT1" jumper on the X1 (1x10 pin) header also has to be inserted.

The picture on the right shows and example of connecting a 12 button keypad, relay and buzzer to the LCD2S. The buzzer can be configured to sound each time a button is pressed, or controlled via the OUT command.

For example Arduino code, see this post in our forum.

Download the datasheets below for further details.

 

Code Examples - C, Arduino, mbed and PIC

We have many code examples on our forum, click here to view them.

Documentation

  Web PDF Data
LCD2S I2C/SPI Daughter Board Manual V1.40    
SPI and I2C Examples, Source Code and user forum    
Example projects written in C.    
Web based utility for creating custom characters    

What is included

  • 1 x Serial LCD daughter board. The 16 pin connector that fits onto the LCD display is also assembled. To use this board with a 20x4 Character Display Module it just has to be soldered to the back of it.
None