Offline
Newbie
Karma: 0
Posts: 2
|
 |
« on: January 28, 2012, 12:17:18 am » |
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
Faraday Member
Karma: 35
Posts: 5918
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #1 on: January 28, 2012, 03:38:30 am » |
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
God Member
Karma: 6
Posts: 581
"Oops, try again..."
|
 |
« Reply #2 on: January 28, 2012, 03:55:44 am » |
What if you try pins 20 and 21 instead 4 and 5? http://arduino.cc/en/Main/ArduinoBoardMega2560Cheers, 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
Newbie
Karma: 0
Posts: 2
|
 |
« Reply #3 on: January 28, 2012, 08:16:59 am » |
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
God Member
Karma: 6
Posts: 581
"Oops, try again..."
|
 |
« Reply #4 on: January 28, 2012, 08:21:13 am » |
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!  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
Faraday Member
Karma: 35
Posts: 5918
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #5 on: January 28, 2012, 11:13:43 am » |
I should have used that mega I bought. It is just collecting dust.
|
|
|
|
|
Logged
|
|
|
|
|
Espoo, Finland
Offline
God Member
Karma: 6
Posts: 581
"Oops, try again..."
|
 |
« Reply #6 on: January 28, 2012, 11:17:27 am » |
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?  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
Newbie
Karma: 0
Posts: 44
|
 |
« Reply #7 on: January 31, 2012, 02:50:58 pm » |
Having a similar problem with the i2c display: http://www.ebay.com/itm/190573003243?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649I 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
Faraday Member
Karma: 35
Posts: 5918
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #8 on: January 31, 2012, 04:14:54 pm » |
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
Newbie
Karma: 0
Posts: 44
|
 |
« Reply #9 on: January 31, 2012, 07:04:09 pm » |
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=135My board doesn't say DFRobot on the back, it says YwRobot - but this is the only library that works.
|
|
|
|
|
Logged
|
|
|
|
|
|