Pages: [1] 2   Go Down
Author Topic: problem with the arduino shield lcd  (Read 1234 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i bought the arduino lcd shield , when i connect it it lights up and at first when i tried different codes it would turn on and off then nothing happens and now it just lights up , what should i do ???????
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 4401
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
what should i do ???????
Start by reading the very first post in the 'Displays' section called "How to use this forum - please read."

Quote
i bought the arduino lcd shield
Which one?  There are lots of them.  Don't forget to include links to the product page and to the data sheet.

Quote
when i tried different codes
It would help if we could see them.

Don

Logged

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

Arduino Shield "LCD Keypad Shield"
[ARDUINO.SH.LCD1602.KEYPA]       
The product page : http://ram-e-shop.com/oscmax/catalog/product_info.php?cPath=243&products_id=2595
The data sheet : http://www.ram-e-shop.com/ds/general/Shield_LCD1602.pdf
  
I placed the shield on the arduino then connected it with USB , then tried the ( Hello world ) from the examples and the screen on lights up and nothing happens .  Also the code from the data sheet above didn't work .
« Last Edit: October 07, 2013, 09:04:57 am by Noha1992 » Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 4401
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
tried the ( Hello world ) from the examples
My crystal ball is out of commission so you will have to provide more information about the code that didn't work.

Don
Logged

Offline Offline
Sr. Member
****
Karma: 12
Posts: 381
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What model arduino are you using?

Post the actual sketch (code) that you are running, and tell us what happens when you try to run this sketch. When you say nothing happens, do you mean the code runs but nothing on the LCD shows up?
Logged

Do not IM me. I will not respond. Ask questions in the forum.

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

Code:
Hello world code , when i uploaded it nothing appeared on the lcd
 
[code]
// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis()/1000);
}
[/code]
Logged

Offline Offline
Sr. Member
****
Karma: 12
Posts: 381
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What Arduino model are you using, as it makes a huge difference?
Logged

Do not IM me. I will not respond. Ask questions in the forum.

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

What Arduino model are you using, as it makes a huge difference?
Arduino Shield "LCD Keypad Shield"
[ARDUINO.SH.LCD1602.KEYPA]       
Logged

Offline Offline
Sr. Member
****
Karma: 12
Posts: 381
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not the shield model (although that is helpful information), the Arduino model.

Arduino Uno, Due, Mega, Mega R3, etc....?
Logged

Do not IM me. I will not respond. Ask questions in the forum.

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

Not the shield model (although that is helpful information), the Arduino model.

Arduino Uno, Due, Mega, Mega R3, etc....?


arduino uno
Logged

Offline Offline
Sr. Member
****
Karma: 12
Posts: 381
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you done the wiring as per this diagram?

http://arduino.cc/en/Tutorial/LiquidCrystal

If not, you will need to change the pin numbers in your:

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

line to match the wiring you have done.

The LCD constructor as  written takes:

LiquidCrystal lcd(RS, En, D4, D5, D6, D7);

And in the tutorial, this means:
 * LCD RS pin to digital pin 12
 * LCD Enable pin to digital pin 11
 * LCD D4 pin to digital pin 5
 * LCD D5 pin to digital pin 4
 * LCD D6 pin to digital pin 3
 * LCD D7 pin to digital pin 2

You may be wired up differently.
« Last Edit: October 07, 2013, 03:16:41 pm by arduinodlb » Logged

Do not IM me. I will not respond. Ask questions in the forum.

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

The include file you are using are the original file from the Arduino implementation.
According to the RAM Electronics description they use D4-D7, D8 and D9 for the LCD, but they don't
say which signals they carry. You are going to change the Digital Port numbers in :
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
to reflect the correct ports. A schematic of the LCD keypad shield would be handy.
I would give it a try by using these lines:
LiquidCrystal lcd(9,8,7, 6, 5, 4);   or   LiquidCrystal lcd(8, 9, 7, 6, 5, 4);
If the LCD shows some rubbish, the try swopping the last 4 digits to 4, 5, 6, 7.
Logged

Israel
Offline Offline
Sr. Member
****
Karma: 5
Posts: 291
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you try tweaking the contrast pot on the shield?
Do you see anything on the screen when it is powered up? The first row should be full of white blocks. If you can't see the blocks it most likely means that your contrast isn't set correctly.
Logged


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

You have to have the correct pin numbers
I just found this the same forum :
   
Arduino UNO with LCD 2x16. Weird characters after some time in operation
dated september 4'th 2013

Almost the same shield : ARDLCD216 Display shield (Factory assembled)

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

I would try this setup.
Logged

Israel
Offline Offline
Sr. Member
****
Karma: 5
Posts: 291
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Pin numbers don't matter when he doesn't even see the row of blocks any uninitialized HD47780 display will show when it is first powered up. My bet is on contrast not being set correctly.
Logged


Pages: [1] 2   Go Up
Jump to: