Loading...
Pages: [1]   Go Down
Author Topic: No data on LCD  (Read 892 times)
0 Members and 1 Guest are viewing this topic.
Liverpool, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino Newbie
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Guys,

Remember in this thread: http://arduino.cc/forum/index.php?topic=50579.msg360716;topicseen#msg360716 - I apologised in advance for any silly questions... Well..... smiley

I've received my wonderful arduino and i'm having some trouble getting my 16x2 LCD to display any text at all. Here's the setup

Board: Arduino Uno (powered by USB)

Sketch: LiquidCrystal "Hello World", Blink, Serial etc etc ( all of em in fact smiley-wink )

LCD: CrystalFontz America CFAH1602B-TMI-JT - 16x2 white on blue (because it's prettier than black/green hehe smiley )

Datasheet: http://www.crystalfontz.com/products/1602b-color/datasheets/908/CFAH1602BTMIJT_v1.0.pdf

Setup:
The arduino is providing +5v and GND to the two power rails on my breadboard.

Pins 11, 12 are hooked up to LCD pins 4 and 6
Pins 5,4,3,2 are hooked up to LCD pins 11,12,13,14 respectively

LCD Pin 5 (R/W) is hooked up to the common gnd rail
Pins 15 and 16 are hooked up to +5v (w/resistor) and GND for the backlight

LCD Pin 1 : Ground
LCD Pin 2 : +5v

10K pot is hooked to +5v, GND, and wiper is to LCD pin 3

Turning the arduino on lights up the screen, and adjusting the pot for the contrast seems to work. The pot has 10 slight "clicks" around from one end to the other. It will sit half in, half out of these clicks however. So

Position 0 : nothing displayed on the LCD
Position 5 : still nothing displayed on the LCD
Position 7 : the blocks are starting to show
Position 8 : top row of blocks are solid white, second row is faint black/blue
Position 9 : Two rows of white blocks
Position 10: No change from pos 9

The problem lies in getting data from the arduino to the screen. No matter which LiquidCrystal sketch i upload, same result.. Nothing is displayed. - Just to be on the safe side, I've redone all the connections on the breadboard three times, and also checked for continuity between the end of the wire, and the pad on the LCD. All connected through without a problem.

The datasheet does say:
Quote
This module uses a Sitronix ST7066U controller. The Sitronix ST7066U is compatible with the industry standard Hitachi
HD44780 controller. Software written for modules that use the HD44780 should work without modification.

I'm just wondering if anyone has any ideas at all. I'm at my wits end and I fear the arduino is actually mocking me on purpose!

Thanks smiley

Dave
« Last Edit: February 03, 2011, 05:38:09 pm by davestewart » Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 299
Posts: 26031
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't see any reference to pins 2 and 1 on the LCD - power and ground.
Logged

Liverpool, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino Newbie
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Mike,

Yeah, sorry. I missed them out. They are indeed connected. Pin 1 to GND - Pin 2 to +5v

I'll update my first post to reflect that

Thx,

Dave
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 299
Posts: 26031
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Try removing the +5v from one end of the contrast pot.
Logged

Liverpool, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino Newbie
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay. Removed the +5v from the pot, and still no data.. But, the pot screen now shows faint blocks when at position zero. Seems like it has a better range now

At position 0 on the pot, there is one faint line of blocks, then a fainter line beneath (barely visible)
Logged

Central MN, USA
Offline Offline
Faraday Member
**
Karma: 38
Posts: 6054
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Stay at position 8 and show us your code and pictures. The LCD is working but it is not receiving correct commands. Go buy another pot (10KOhm) that is not dedented (no clicks just smooth turns).
Logged


Pages: [1]   Go Up
Print
 
Jump to: