Go Down

Topic: can never get a LCD to work with UNO (Read 4 times) previous topic - next topic

dhenry

Quote
trying for months


Those things are fairly simple to get to work. So if it has taken you that long, you may want to think about your thought process instead.

knuckles

#6
Dec 08, 2012, 08:00 pm Last Edit: Dec 08, 2012, 08:05 pm by AWOL Reason: 1
off an on so as i have other hobbies i pursue so i dont need to examine my thought process mr smart ass .
if you dont have any usefull input.

the problem maybe out of date progs as when i compare them they are slightly different


Moderator edit for language.
Do not repeat.
Sp. "useful"

floresta


i checked the connections over and over and theyre identical to that shown in the arduino cookbook .
lcd chip is the HD44780 standard controller .
its all a bog standard setup ,with 4 pins data transfer

We have seen all of this before.

I will try once more.

Post your code.  We are not interested in what code you think you copied or where you copied it from.  We want to see exactly what you used.

Post a photo that clearly and unambiguously shows both ends of all of the connections between your Arduino and your LCD module.


Don

JimboZA

I just dug out the code I used when I tested my LCD a while ago. It's based on Mike Bramwell's code- I can't remember where that came from. It has this line, which I don't pretend to understand. I just used it as is and it worked...

Code: [Select]
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

I assume the order of those pin numbers is important. I see from your post, @knuckles, that you mention pins 4, 5, 6, 7, 8, 9 and wonder if you've got them coded in the order 4, 5, 6, 7, 8, 9 whereas it should maybe be 8, 9, 4, 5, 6, 7?

(But if you posted the code as suggested, we would know.....)
Roy from ITCrowd: Have you tried turning it off an on again?
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

floresta

#9
Dec 08, 2012, 08:16 pm Last Edit: Dec 08, 2012, 08:21 pm by floresta Reason: 1
Quote
It has this line, which I don't pretend to understand. I just used it as is and it worked...

Well this is fully explained but very carefully hidden on the Arduino site.

Start here: http://arduino.cc/en/Tutorial/LiquidCrystal
Scroll down to the bottom
Use the Liquid Crystal Library link to get here: http://arduino.cc/en/Reference/LiquidCrystal
Use the LiquidCrystal() link to get here: http://arduino.cc/en/Reference/LiquidCrystalConstructor
And there it is under 'Syntax'

Wouldn't it be easier if they completely documented the examples?

Code: [Select]

//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);      // put your pin numbers here



Don

Go Up