Go Down

Topic: I2C communication question (Read 713 times) previous topic - next topic

Holland_Hill

OK, I am new to the whole Arduino thing, but I have experience programming and have read books on Arduino before I started this project.

I'm trying to use I2C communications with an LCD that I've bought.

I've read the chapters in my books on how to do this but every example I've found is using a different type of LCD than I have.

I have been using this LCD:  http://www.newhavendisplay.com/specs/NHD-0216K3Z-NSW-BBW-V3.pdf

The Arduino board I have is the Mega 2560.

My LCD is on  and lit up, but I cannot figure out how to write anything to its screen. I don't believe I'm far off, and I understand the basics of writing to your LCD, but something is amiss.

Using the specifications from the PDF handbook, I believe I have wired it up correctly, but I might very well be wrong.

Any ideas how to go about this? This particular LCD board has a microprocessor so should I download another library? I read elsewhere I would need to do that. I just have the basic LiquidCrystal library right now.

Any help is appreciated.

Holland_Hill



as you can tell, the lcd is up and working. just not sure where to go from here.

retrolefty

Well which is it?

Quote

as you can tell, the lcd is up and working. just not sure where to go from here.


Quote

My LCD is on  and lit up, but I cannot figure out how to write anything to its screen. I don't believe I'm far off, and I understand the basics of writing to your LCD, but something is amiss.

Holland_Hill

lol. sorry for the confusion.

I am just unsure as to the next step to take as far as writing the code and how I need to modify it.

the code I've been using from the books don't work (obviously, they're for a different LCD).

MAS3

Hi, and welcome.

You need to be more precise in telling what you have done yet.
You made some connections, they are visible in that picture of yours.
But it is hard to tell what is connected to what.
So why don't you tell us what connections you made.

A quick glimpse over the datasheet tells that there are multiple ways of controlling that display (RS232, I2C and SPI).
You have to tell it what way you are going to communicate with it.
You haven't told us you did that, so did you do that and how.

The display has it's own controller, that handles serial communication and translates that to the parallel interface the real LCD controller has.
This means you cannot use any other library to control it, you need to use the datasheet to find out how to use it.
As far as i can see, most of it is in there, including some information about timing.

Displays like these pop up over here now and then, i've seen question about them before.
So you might be able to find a library taking some work off your hands.
If not, you'll have to use that datasheet.
You might want to consider building you own library and donate it to the community.
Or just use this thread, telling about your adventures with this display and educating anybody that is interested in it.
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

Go Up