LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using NI-8451 for I2C communication and LCD Display

Solved!
Go to solution

Hello everyone,

 

I am in need of a method for writing to 12 LCD screens. I am using LabVIEW to control the LCDs and I have decided that I2C will be the best communication protocol. I have never programmed anything for I2C or even programmed a display such as an LCD. For my hardware I was going to use NI-8451 (which I have never used also). LCD I plan on using can be found here https://www.newhavendisplay.com/nhd0216k3zfsrgbfbwv3-p-5736.html?number_of_uploads=0. This LCD has a built on controller which can be found here https://www.newhavendisplay.com/app_notes/PIC16F690.pdf. The only thing that will be written to the LCDs are strings and I will never have to read from the LCD. Just want thoughts on if this is the best method for communicating to these 12 LCDs.

 

Thank you in advance for the answers and the time, I can really use the help

0 Kudos
Message 1 of 5
(1,901 Views)

Seems pretty simple and straight forward to me... I would not worry too much about the controller chip. The manual for the Serial Liquid Crystal Display Module tells you everything you should need to know.

 

You will have to first connect each one individually to set its I2C address, but once that is done connect them all to the I2C bus and it's just a mater of writing to the proper address for each LCD.

========================
=== Engineer Ambiguously ===
========================
Message 2 of 5
(1,899 Views)

 

 

0 Kudos
Message 3 of 5
(1,887 Views)
Solution
Accepted by topic author rholz

@rholz wrote:

 

 


You are over thinking it...

 

The manual for the LCD says:

 

The default I2C address is 80 (50 hex) when counting the R/W bit, and 40 (28 hex) if not. The I2C address can be changed to any 8-bit value by command function, with the exception that the LSB (least significant bit) must always be ‘0’. Once the I2C address has been changed, it will be saved in the system memory, and it will revert back to the default address if either RS-232 or SPI protocol is selected.

 

 

========================
=== Engineer Ambiguously ===
========================
Message 4 of 5
(1,859 Views)

RTSLVU Thank you so much. This cleared up a lot for me!

 

I appreciate it.

0 Kudos
Message 5 of 5
(1,839 Views)