CF Tech
Administrator
I have been working a bit with the Arduino Uno, and decided to connect it to a CFA-533 I2C LCD module.
ELECTRICAL CONNECTIONS
On the Arduino side you simply need to grab +5v, GND, SDA (I2C Serial DAta) and SCL (I2C Serial CLock). We used a few wire jumpers out of a WR-JMP-Y40 and standard male-to-male headers to make the connection:
On the I2C LCD side, all the connections are made to the CFA533's 10-pin connector (ref: CFA533 I2C datasheet). The jumpers push on directly with no fuss:
Check to make sure that JP13 is closed, so the module can get its 5v power from the Arduino:
Now you are ready to connect your PC's USB cable to the Arduino. Since the LCD gets its power from the Arduino, the LCD will instantly power up and show its boot screen:
SOFTWARE
On the software side of things, we have sample a CFA-533 I2C project for the Arduino: I2C_533_Test.ino
The project will run a couple of simple demos. Here is a picture of the bar graph demo:
It is easy for you to use the functions included in the .INO file to write text to the display, read the keys or any other function supported by the CFA-533.
Sample to write text to the display:
Sample code to read the keys:
Please let us know if you have any questions about the connections or software.
ELECTRICAL CONNECTIONS
On the Arduino side you simply need to grab +5v, GND, SDA (I2C Serial DAta) and SCL (I2C Serial CLock). We used a few wire jumpers out of a WR-JMP-Y40 and standard male-to-male headers to make the connection:
![](http://baxsie.com/images/forum/Arduino_I2C_LCD_CFA533/Arduino_I2C_PWR_GND_Connections_CFA533_I2C_LCD.jpg)
![](http://baxsie.com/images/forum/Arduino_I2C_LCD_CFA533/Arduino_I2C_SCL_SDA_Connections_CFA533_I2C_LCD.jpg)
On the I2C LCD side, all the connections are made to the CFA533's 10-pin connector (ref: CFA533 I2C datasheet). The jumpers push on directly with no fuss:
![](http://baxsie.com/images/forum/Arduino_I2C_LCD_CFA533/Arduino_I2C_SCL_SDA_PWR_GND_Connections_LCD.jpg)
Check to make sure that JP13 is closed, so the module can get its 5v power from the Arduino:
![](http://baxsie.com/images/forum/Arduino_I2C_LCD_CFA533/Arduino_I2C_LCD_CFA533_Close_JP13.jpg)
Now you are ready to connect your PC's USB cable to the Arduino. Since the LCD gets its power from the Arduino, the LCD will instantly power up and show its boot screen:
![](http://baxsie.com/images/forum/Arduino_I2C_LCD_CFA533/Arduino_I2C_LCD_CFA533_Powered_On.jpg)
SOFTWARE
On the software side of things, we have sample a CFA-533 I2C project for the Arduino: I2C_533_Test.ino
The project will run a couple of simple demos. Here is a picture of the bar graph demo:
![](http://baxsie.com/images/forum/Arduino_I2C_LCD_CFA533/Arduino_I2C_LCD_CFA533_Bar_Graph_Demo.jpg)
It is easy for you to use the functions included in the .INO file to write text to the display, read the keys or any other function supported by the CFA-533.
Sample to write text to the display:
Code:
cfPacket->writeText(0,0, "Hello World", 11);
Code:
uint8_t
keys_down;
uint8_t
key_presses;
uint8_t
key_releases;
. . .
//Ask the module what is happening with the keys
cfPacket->getKeys(&keys_down,&key_presses,&key_releases);
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.