Pages: [1]   Go Down
Author Topic: Help! Noobie not able to get lcd working  (Read 798 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

This is my first arduino project and I need help.  I have the Arduino Mega 2560 and the I2C/TWI LCD2004 Module from dfrobot.  I wired it up just like shown in the diagram.  When I plugged in my mega via the usb port the lcd lights up, but no characters.  I then added the files needed to my library (.h, .cpp,.o), compiled and uploaded the I2C_LCD2004_Sample.pde to my mega and I get the leds flashing on the mega as it is uploading and the lcd still shows nothing, the lcd stays lit up but no characters on the screen.  How do I know if I'm doing something wrong or if my LCD screen is defective?  Any and all advice would be greatly appreciated.

I have GND connected to GND
VCC to 5v
SCL to analog In 5
SDA to analog in 4

Thanks,
Dan
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7175
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Disconnect the SCL and SDA, power up the display, do you see any blocks on lines 1 and 3? If not, adjust the potentiometer.
Logged


Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What if you try pins 20 and 21 instead 4 and 5?

http://arduino.cc/en/Main/ArduinoBoardMega2560

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Kari,

YOU ROCK!!!  Moved to those pins and the LCD has text.

Thank you for saving a noobie from tons of frustration.

Dan
Logged

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Kari,

YOU ROCK!!!  Moved to those pins and the LCD has text.

Thank you for saving a noobie from tons of frustration.

Dan

No problem, I had the same problem year back, and had to find out that myself... really time saver!
 smiley

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7175
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I should have used that mega I bought. It is just collecting dust.
Logged


Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I should have used that mega I bought. It is just collecting dust.

Heh, Mega 1280 was my first Arduino, and least used with all my tests. Maybe it is waiting for the big day, "The Project"-day?
 smiley-lol

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Louisiana, USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Having a similar problem with the i2c display:
 http://www.ebay.com/itm/190573003243?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

I have it connected to analog 4 and 5, 5v and gnd just like the OP.  I am using an Arduino Uno.  Anything special I should know before I contact the seller?   I tried switching the data lines, adjusted the pot, even tried some different library files.  The blue backlight comes on but no text is displayed.

Thanks
Logged


Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7175
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you try to disconnect SCL and SDA and just power up the LCD with 5V and GND? Can you see blocks on line one?
Logged


Louisiana, USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I was using the wrong library.  I downloaded the library per the ebay ad and it didn't work.  I tried several others.  Finally, I went to DFRobot and downloaded the library on their product page here - http://www.dfrobot.com/index.php?route=product/product&path=53&product_id=135

My board doesn't say DFRobot on the back, it says YwRobot - but this is the only library that works.
Logged


Pages: [1]   Go Up
Jump to: