Go Down

Topic: Deleted (Read 2 times) previous topic - next topic

mousestampede

Mar 27, 2011, 10:54 pm Last Edit: Mar 19, 2014, 12:00 am by mousestampede Reason: 1
Deleted

frank26080115

R/W pin is not grounded, just a wild guess at what's wrong
Freelance engineer, consultant, contractor. Graduated from UW in 2013.

Kaouthia

What's the resistor you're using on pin 3?

I just had a go at setting up an HD44780 4x20 LCD for the first time a couple of days ago and used a 10K pot on pin 3 so I could tweak it to look just right.  If it's too strong or not strong enough, it could explain seeing nothing on the LCD.
John

floresta

You really should start with something simple.  Try following the tutorial at http://www.ladyada.net/learn/lcd/charlcd.html and pay particular attention to the part about midway through where the contrast is adjusted.  If you can't get that to work then there's no sense going any further.  Make sure pin 5 is grounded (reply #1) and use a potentiometer for the contrast (reply #2).  If you get stumped then post a photo that clearly shows your connections.

Don

Mike Mc

Do you have a potentiometer on the contrast pin?

Kaouthia


Try following the tutorial at http://www.ladyada.net/learn/lcd/charlcd.html

That was the one I followed, got up and running with it in no time.

Then once I knew it all worked, I got a little more daring with the second schematic in this one so I could get 3 of those pins back.

http://code.google.com/p/arduinoshiftreglcd/
John

liudr



Try following the tutorial at http://www.ladyada.net/learn/lcd/charlcd.html

That was the one I followed, got up and running with it in no time.

Then once I knew it all worked, I got a little more daring with the second schematic in this one so I could get 3 of those pins back.

http://code.google.com/p/arduinoshiftreglcd/


You will have to change your program while daring at the shift reg lcd like this:

Code: [Select]
#include <ShiftRegLCD.h>

ShiftRegLCD objectName(Datapin, Clockpin, Enablepin or TWO_WIRE [, Lines [, Font]])

    where Lines and Font are optional.

    * Enablepin: can be replaced by constant TWO_WIRE, if using only 2 wires.
    * Lines: 1 or 2 lines (also 4-line LCD's must be set as 2).
    * Font : 0 or 1, small or big font (8 or 10 pixel tall font, if available).



You can't use LiquidCrystal lcd(blah) any more.

Are you really in need of three pins? Have you used the analog pins as digital pins?

floresta

We are getting way off topic.  This thread is about getting a standard parallel interface LCD operating with the LiquidCrystal library.

Don

Kaouthia

#8
Mar 29, 2011, 03:44 am Last Edit: Mar 29, 2011, 03:46 am by Kaouthia Reason: 1

You will have to change...

Already done :)


Are you really in need of three pins? Have you used the analog pins as digital pins?

Yup, need the pins, I'm now down from using 11 to using 8, and I still have 2 servo motors and a stepper (and maybe another 4x20 LCD) that I'll need to hook up to this. :)

But let's not hijack this fella's thread.  I was simply commenting that Ladyada's tutorial helped me, and informed me that the LCD was working before moving on to what I really wanted to do. :)
John

liudr



You will have to change...

Already done :)


Are you really in need of three pins? Have you used the analog pins as digital pins?

Yup, need the pins, I'm now down from using 11 to using 8, and I still have 2 servo motors and a stepper (and maybe another 4x20 LCD) that I'll need to hook up to this. :)

But let's not hijack this fella's thread.  I was simply commenting that Ladyada's tutorial helped me, and informed me that the LCD was working before moving on to what I really wanted to do. :)


I thought you were the OP. Your IDs both start with ka  :smiley-red:

Go Up