Writing on LCD CloudX

  • img
Project Details

Interfacing 16×2 LCD (liquid crystal display) with the cloudx. A display device plays a very important role while interacting with any embedded system or digital system. It provides a good interaction between system and the person using it.
It can display numbers, text and any custom character. It has two rows each of 16 columns wide.

 

Components

  • CloudX M633 and SoftCard
  • 16x2 LCD
  • 2.2K Resistor
  • Jumper Wires
  • Breadboard

 

Circuit Diagram

 

LCD CloudX Coding

LCD_setting()

The display is uses 4 data lines. Using the cloudx lcd function LCD_setting(rs, enable, d4, d5, d6, d7) we need only 6 cloudx pins. And leave D0 to D3 pin unconnected. The RW pin tied to ground (GND) instead of connecting to a pin on the cloudx.

LCD_cmd()

cursorOff - This command turns off the LCD cursor
clear - This command clears the entire display.

 

LCD_writeText()

Prints text to the LCD.
LCD_writeText(data)

 

Code

/*####### LCD Connection with CloudX #######
    RS => P1
    RW => GND
    E  => P2
    D0-D3 => NC(Not Connected) 
    D4 => P3
    D5 => P4
    D6 => P5 
    D7 => P6*/ 
// include the LCD library 
#include <CloudX\M633.h>
#include <CloudX\LCD.h> 

setup(){   
 // initialize the library with the numbers of the interface pins
  LCD_setting(1, 2, 3, 4, 5, 6);
  LCD_cmd(cursorOff);
  LCD_cmd(clear);

// write text on LCD row 1, column 1
  LCD_writeText(1,1,"Hello, am CloudX");

loop(){
  
      }
} 

Share this with friends