How to interface I2c 1602 LCD to CloudX M633 CloudX

  • img
Project Details

Introduction

In this tutorial, you will see how to connect I2c LCD display (Liquid Crystal Display) to CloudX M633 using the I2c module. Before starting this article we will see what is I2c. I2C (I-square-C i.e IIC) means inter-integrated communication protocol. This is usually used to communicate between one master and multiple slaves. One of the best things about using I2C is to reduce the connections (wiring). If you use normal LCD display,total number of wiring are 12, which will make your hardware look rough.But if you use I2C LCD display, you need only just 4 connection wire. 

 

CloudX M633(I2C)
I2C Module

 

Components Required

CloudX M633  [ cloudx.ng ]

I2C LCD Display   [ cloudx.ng ]

Jumper Wires  [ cloudx.ng ]

 

 

Pin Configuration of I2C LCD Display

CloudX M633 I2c LCD
I2C LCD

If you properly look at the picture above, you will see a black adapter, that black adapter use  PCF8574T IC chip which converts I2C serial data to parallel data for the LCD display. The blue color component you have seen in the above picture is a potentiometer which is used to adjust the brightness of the display.

 

Connections

CLOUDX
CLOUDX M633

CloudX M633    <----------->   I2C LCD Display

           5V          <—---——>           Vcc

          GND       <————>           GND

          SDA        <————>           SDA

          SCK        <————>           SCL

 

 

Source Code:

#include <CloudX/I2C_LCD.h>

const byte character[] = {0x1F, 0x11, 0x1B, 0x11, 0x04, 0x11, 0x0E, 0x00};



 setup(){

    LCDSerial_setting(16, 2, 0x3F);   //columnSize, rowSize, I2C serial LCD Address
    LCDSerial_cmd(clear);             // Clear the screen
    LCDSerial_cmd(backLightOn);        // On the backlight 
       
  
   
loop(){
     
    LCDSerial_writeText(1, 1, "CloudX");
    LCDSerial_cmd(shiftDisplayRight);   //right-shifts display by one position
    
    LCDSerial_write(2, 1, 'A');

    LCDSerial_cmd(cursorNoBlink);
    
    //------------------------------------------------------------------------------------
    //The below function-call writes the character, stored at memory 0, to the LCDs
    //row2 col4.
    //------------------------------------------------------------------------------------
    LCDSerial_writeCustomChar(0, 2, 4, character);  //custom-char memory position, row, column, custom-char array

    
    
   }
 }
CloudX

 

 

 

 

 

 

 

 

 

Share this with friends