NKC Electronics

NKC Electronics Support, Project and Discussion Forums
It is currently Tue Dec 12, 2017 4:38 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Jun 26, 2012 8:45 pm 
Offline

Joined: Thu Sep 08, 2011 9:59 pm
Posts: 71
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group