NKC Electronics
http://forums.nkcelectronics.com/

Serial LCD with chipKIT or 3.3V boards
http://forums.nkcelectronics.com/viewtopic.php?f=31&t=946
Page 1 of 1

Author:  nkcelectronics [ Tue Jun 26, 2012 8:43 pm ]
Post subject:  Serial LCD with chipKIT or 3.3V boards

Serial LCD module with chipKIT UNO32 and MAX32 testing result.

The Serial LCD module requires 5V DC supply. ChipKIT boards are 3.3V boards. It means that all the logic voltage is at 3.3V level, but most 5V logic devices are OK with 3.3V level. Still, DC supply must be 5V. chipKIT boards supply 5V on the POWER header.

Physical interface:

Code:
chipKIT pin   <--> Serial LCD module
5V            <--> Pin 3
GND           <--> Pin 2
Digital pin 1 <--> Pin 1


Sample sketch for 20x4 Serial LCD module:

Code:
/*
  NKC Electronics 20x4 Serial LCD test
 
 20x4 Serial LCD pinout for UART serial communication
pin 1: RX
pin 2: GND
pin 3: +5V

connect pin1 to Arduino digital pin 1
connect pin2 to Arduino GND
connect pin3 to Arduino +5V

Default communication speed is 9600
 */
 
char ESC = 0xFE;
 
void setup()
{
  Serial.begin(9600);
 
  Serial.print("   NKC Electronics  ");
 
  // Set cursor line 2, column 0
  Serial.write(ESC);
  Serial.write(0x45);
  Serial.write(0x40);
 
  Serial.print("   20x4 Serial LCD  ");
 
  // Set cursor line 3, column 0
  Serial.write(ESC);
  Serial.write(0x45);
  Serial.write(0x14);
 
  Serial.print(" Std LCD Form Factor");

  // Set cursor line 4, column 0
  Serial.write(ESC);
  Serial.write(0x45);
  Serial.write(0x54);
 
  Serial.print("   This is Line 4   ");

}

void loop()
{
}


Link to the Serial LCD module: http://store.nkcelectronics.com/20x4-Serial-LCD-Module-Blue-with-White-backlight_p_346.html

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/