I tried to test an LCD Keypad Shield from DFRobot with the Liquid Crystal lib and IDE 1.5.4
It seems that LiquidCrystal lcd(8, 9, 4, 5, 6, 7)
does not work.
Any hints whats wrong?
//Sample using LiquidCrystal library
#include <LiquidCrystal.h>
/*******************************************************
This program will test the LCD panel
Mark Bramwell, July 2010
********************************************************/
// select the pins used on the LCD panel
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup()
{
lcd.begin(16, 2); // start the library
lcd.setCursor(0,0);
lcd.print("Hello World"); // print a simple message
}
void loop()
{
lcd.setCursor(9,1); // move cursor to second line "1" and 9 spaces over
lcd.print(millis()/1000); // display seconds elapsed since power-up
}
There are many LCD libraries, and they are not all created equal.
Also not all LCD boards are the same.
What LCD are you using (URL please), and which library (URL please).
Did the documentation for that LCD say which library to use. Did it give you test script to use?
How about a hint about what you mean by "does not work"
Unless they have changed their PC board those are the correct parameters for lcd.begin(). The sketch is also fairly standard except for the extra (and unneeded) lcd.setCursor step in setup().
Are you using an Arduino Yun or Due?
If not then why are you using 'beta' software?
If you are then did you check to see if the shield is compatible?
Did you see this on the Arduino download page?
WARNING: The early Windows release 1.5.4 contained a bug that prevents it from working correctly on Windows 8. 1.5.4r2 fixes the issue.
Of course they didn't specify how the bug manifests itself.
How about a hint about what you mean by "does not work"
Unless they have changed their PC board those are the correct parameters for lcd.begin(). The sketch is also fairly standard except for the extra (and unneeded) lcd.setCursor step in setup().
Are you using an Arduino Yun or Due?
If not then why are you using 'beta' software?
If you are then did you check to see if the shield is compatible?
Did you see this on the Arduino download page?
WARNING: The early Windows release 1.5.4 contained a bug that prevents it from working correctly on Windows 8. 1.5.4r2 fixes the issue.
Of course they didn't specify how the bug manifests itself.
Don
I use Arduino Yún and a W7 PC.
Because I see only one block line in the LCD (playing with the contrast) there must be an initilization issue.
I use Arduino Yún and a W7 PC.
Because I see only one block line in the LCD (playing with the contrast) there must be an initilization issue.
You are correct about the initialization issue.
...
A few possibilities come to mind:
The shield could be defective.
The shield could be incompatible with the Yún.
You could be having trouble downloading your code to the Yún.
How much experience do you have with your Yún? Have you been able to successfully download and run other programs that do not involve this shield?
Don
The shield works properly on Arduino 2009 with IDE 1.0.5.
Incompatibility to Yun could be because I was not able until now to bring 5V DC to the 5V pin. Its always 3.3 V and I did not finde JP3
Downloading the code works because I started with a blinking LED and thsi works.
But, how can I handle the voltage problem.
In the documentation I can read that it is possible by JP3 to select 5V or 3.3 V for the shields.
I did not found JP3 until now and have on 3V3 the same voltage as on 5V.
The same shield connected to Arduino Yún with the same RTClib gave me the error "RTC_DS1307 does not name a type".
This is not clear for me. Do you have any idea where the differences are? Di you need further information?
I am having a hard time keeping up.
First there was a LCD problem with IDE 1.5.4
Then the LCD works on another arduino board.
Then your arduino had only 3.3 volts on the 5 volt pin.
Now you get Compile errors when you use a RTC shield.
Lets slow down. The last thing I mentioned was that you had a problem with your power supply ( 5v). Have you got that fixed yet.
You replied
I use a 5 V DC power supply connected to VIN now and got stable conditions on the shield.
. I don't really know what that means. Do you read 5.1 Volts on the 5volt pin now?