Arduino Liquid Crystal Display not printing












0















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);
}


enter image description here`










share|improve this question





























    0















    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);
    }


    enter image description here`










    share|improve this question



























      0












      0








      0








      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);
      }


      enter image description here`










      share|improve this question
















      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);
      }


      enter image description here`







      arduino lcd






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 28 '18 at 8:13









      Mike

      2,0581725




      2,0581725










      asked Nov 28 '18 at 3:32









      Terrel TanTerrel Tan

      63




      63
























          1 Answer
          1






          active

          oldest

          votes


















          0














          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






          share|improve this answer
























          • 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











          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          0














          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






          share|improve this answer
























          • 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
















          0














          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






          share|improve this answer
























          • 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














          0












          0








          0







          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






          share|improve this answer













          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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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



















          • 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




















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)