#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);
void setup(){
lcd.begin(16,1);
lcd.print("hello world");
}
void loop()
{
}
Missed?
Everything but the code! (Credit for the code tags.
)
Precise description of "does not show anything". Including whether backlight shows or not.
Perfectly focused and properly lit (outside in full daylight without shadow) photograph of your set-up, showing all connections without overlap or obscuring. Posted as link in the text, not as an attachments as attachments are presently not working properly and others as well as myself may not wish to go through many unnecessary steps to view them.
Perfectly focused and properly lit (outside in full daylight without shadow) photograph of your set-up, showing all connections without overlap or obscuring.
That could be a stickey!
backlight is also off!!
/*
The circuit:
* LCD RS pin to digital pin 7
* LCD Enable pin to digital pin 6
* 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
* LCD R/W pin to ground
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)
* LED+, LED- to +5V, GND
*/
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 1);
// Print a message to the LCD.
lcd.print("bunny_94");
}
void loop() {
// set the cursor to column 0, line 1
lcd.setCursor(0,1);
lcd.print("bunny_94");
}
this is also not working. I am using a 16X1 lcd JHD161A.LCD backlight is off. Do no showing anything.
A quick hint:
If the most basic code does not work, then trying more complicated code is almost certainly not going to.
No backlight = nothing connected.
We await that perfectly focused and properly lit (outside in full daylight without shadow) photograph(s) of your set-up, showing all connections without overlap or obscuring. Posted as a link in the text, not as attachments - as attachments are presently not working properly and others as well as myself may not wish to go through many unnecessary steps to view them.
These comments are hard to put in any logical order:
(1) You should go back to your first code example. You shouldn't be doing anything in loop at this point. You have probably been mislead into improperly believing that code is written to the first line in setup() and to the second line in loop() by the absolutely horrible sample code in the LiquidCrystal tutorial.
(2) You are using a 16x1 display but in the second code example (in loop) you are positioning the cursor to the beginning of the second line (the first line is line 0, the second line is line 1). Where do you expect the message to appear?
(3) If your LCD module has only one chip on the back then your display is internally configured as an 8x2. The left half of the display is line 0 and the right half is line 1.
- Using your first code example the "bunny_94" message will look OK since it only has eight characters but a longer message would appear to be truncated.
- Using your second code example the first message should appear on the left half of the screen and the second message should appear on the right half of the screen. Since it is being rewritten so quickly there is no telling what will actually appear.
(4) If you are going to experiment with two messages then they should be different from one another so you can figure out what is happening if and when they appear on screen.
(5) Rapidly displaying an unchanging message over and over again in loop() is not necessary. The example in the tutorial has no fixed message, only changing data.
Don
/*
The circuit:
* LCD RS pin to digital pin 7
* LCD Enable pin to digital pin 6
* 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
* LCD R/W pin to ground
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)
* LED+, LED- to +5V, GND
*/
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 1);
// Print a message to the LCD.
lcd.print("bunny_94");
}
void loop() {
}
just tell me is this code okay?
May b my lcd module is not working as there is no backlight though it is fully connected as stated in the code.
Total waste of time discussing the code if the thing is not actually connected.
But unless we can look at the photographs as previously specified, there is just no way we can help you with getting the connections right.
The code may be OK but we still have to check your connections and for that we need a photograph.
Don