I’m having problems with the LCD experiment, no 15, “Hello world”, in the Sparkfun Inventors Kit.
Can’t get any words on the screen.
Adjusting the potentiometer gives different levels of screen brightness, from nothing, the top line bright, both top and bottom lines bright (top slightly brighter) but still not “Hello, world!”
Have checked the wiring multiple times. And also against the wiring diagram here: https://www.arduino.cc/en/uploads/Tutorial/LCD_Base_bb_Schem.png
Code is as supplied with the kit, pasted below.
Have also checked against here: https://www.arduino.cc/en/Tutorial/HelloWorld and added a resistor (330 ohms, not 220, but in any case it didn’t really make any difference)
Have also tried commenting out the loop which shows seconds since the last reset.
Any ideas as to what the problem is and how to fix it?
// Load the LiquidCrystal library, which will give us
// commands to interface to the LCD:
#include <LiquidCrystal.h>
// Initialize the library with the pins we’re using.
// (Note that you can use different pins if needed.)
// See http://arduino.cc/en/Reference/LiquidCrystal
// for more information:
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
lcd.begin(16, 2); //Initialize the 16x2 LCD
lcd.clear(); //Clear any old data displayed on the LCD
lcd.print("hello, world!"); // Display a message on the LCD!
}
void loop()
{
lcd.setCursor(0, 1); //Set the (invisible) cursor to column 0,
// row 1.
lcd.print(millis() / 1000); //Print the number of seconds
//since the Arduino last reset.
}