Arduino Liquid Crystal Display not printing
I am attempting to use the liquid crystal display of an Arduino Uno for a school project. I followed the instructions on https://www.arduino.cc/en/Tutorial/HelloWorld exactly as it is stated and it does not print the text.
The backlight is functioning properly and the contrast is adjusting with the potentiometer, but no text comes out.
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
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);
}
`
arduino lcd
add a comment |
I am attempting to use the liquid crystal display of an Arduino Uno for a school project. I followed the instructions on https://www.arduino.cc/en/Tutorial/HelloWorld exactly as it is stated and it does not print the text.
The backlight is functioning properly and the contrast is adjusting with the potentiometer, but no text comes out.
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
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);
}
`
arduino lcd
add a comment |
I am attempting to use the liquid crystal display of an Arduino Uno for a school project. I followed the instructions on https://www.arduino.cc/en/Tutorial/HelloWorld exactly as it is stated and it does not print the text.
The backlight is functioning properly and the contrast is adjusting with the potentiometer, but no text comes out.
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
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);
}
`
arduino lcd
I am attempting to use the liquid crystal display of an Arduino Uno for a school project. I followed the instructions on https://www.arduino.cc/en/Tutorial/HelloWorld exactly as it is stated and it does not print the text.
The backlight is functioning properly and the contrast is adjusting with the potentiometer, but no text comes out.
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
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);
}
`
arduino lcd
arduino lcd
edited Nov 28 '18 at 8:13
Mike
2,0581725
2,0581725
asked Nov 28 '18 at 3:32
Terrel TanTerrel Tan
63
63
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Judging by the image you linked it looks like the display isn't properly connected: you should solder a pin header to it first.
See the part near the red arrow: https://i.imgur.com/eSOMe1x.jpg
It isn’t soldered. Is there no way for it to work otherwise?
– Terrel Tan
Nov 28 '18 at 11:02
1
Regardless, that’s probably the reason lol. Thanks
– Terrel Tan
Nov 28 '18 at 11:03
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53511700%2farduino-liquid-crystal-display-not-printing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Judging by the image you linked it looks like the display isn't properly connected: you should solder a pin header to it first.
See the part near the red arrow: https://i.imgur.com/eSOMe1x.jpg
It isn’t soldered. Is there no way for it to work otherwise?
– Terrel Tan
Nov 28 '18 at 11:02
1
Regardless, that’s probably the reason lol. Thanks
– Terrel Tan
Nov 28 '18 at 11:03
add a comment |
Judging by the image you linked it looks like the display isn't properly connected: you should solder a pin header to it first.
See the part near the red arrow: https://i.imgur.com/eSOMe1x.jpg
It isn’t soldered. Is there no way for it to work otherwise?
– Terrel Tan
Nov 28 '18 at 11:02
1
Regardless, that’s probably the reason lol. Thanks
– Terrel Tan
Nov 28 '18 at 11:03
add a comment |
Judging by the image you linked it looks like the display isn't properly connected: you should solder a pin header to it first.
See the part near the red arrow: https://i.imgur.com/eSOMe1x.jpg
Judging by the image you linked it looks like the display isn't properly connected: you should solder a pin header to it first.
See the part near the red arrow: https://i.imgur.com/eSOMe1x.jpg
answered Nov 28 '18 at 3:47
MooMoo
16
16
It isn’t soldered. Is there no way for it to work otherwise?
– Terrel Tan
Nov 28 '18 at 11:02
1
Regardless, that’s probably the reason lol. Thanks
– Terrel Tan
Nov 28 '18 at 11:03
add a comment |
It isn’t soldered. Is there no way for it to work otherwise?
– Terrel Tan
Nov 28 '18 at 11:02
1
Regardless, that’s probably the reason lol. Thanks
– Terrel Tan
Nov 28 '18 at 11:03
It isn’t soldered. Is there no way for it to work otherwise?
– Terrel Tan
Nov 28 '18 at 11:02
It isn’t soldered. Is there no way for it to work otherwise?
– Terrel Tan
Nov 28 '18 at 11:02
1
1
Regardless, that’s probably the reason lol. Thanks
– Terrel Tan
Nov 28 '18 at 11:03
Regardless, that’s probably the reason lol. Thanks
– Terrel Tan
Nov 28 '18 at 11:03
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53511700%2farduino-liquid-crystal-display-not-printing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown