Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to read 16x2 display signals and display it in Qt Gui screen using raspberry pi

How to read 16x2 display signals and display it in Qt Gui screen using raspberry pi

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 6 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    San.4368
    wrote on 23 May 2018, 09:51 last edited by
    #1

    Hello all, Am trying to customize a old key pad based coffee vending machine to a touch screen based machine .Am using Raspberry pi for hardware connectivity. Kindly please guide me how to read signals of 16x2 display and display it in Qt Gui screen. Thanks in advance

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 May 2018, 20:51 last edited by
      #2

      Hi and welcome to devnet,

      That's a way to broad of a question and outside the scope of Qt.

      How are you connecting these display to your RPi ?
      How are you connecting tot them ?
      What protocol do they use ?
      Are they really readable ?
      What do these display show ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply 24 May 2018, 06:05
      1
      • C Offline
        C Offline
        Cleiton Bueno
        wrote on 24 May 2018, 02:49 last edited by
        #3

        @San.4368 said in How to read 16x2 display signals and display it in Qt Gui screen using raspberry pi:

        Hello all, Am trying to customize a old key pad based coffee vending machine to a touch screen based machine .Am using Raspberry pi for hardware connectivity. Kindly please guide me how to read signals of 16x2 display and display it in Qt Gui screen. Thanks in advance

        Usually 16x2 or 20x4 LCD display you do not read, you write characters on it.

        Which display are you using?
        In most displays the interface is I2C for communication, example in your case RaspberryPI and Display 16x2


        Cleiton Bueno

        Blog | Linkedin | B2Open

        1 Reply Last reply
        1
        • S SGaist
          23 May 2018, 20:51

          Hi and welcome to devnet,

          That's a way to broad of a question and outside the scope of Qt.

          How are you connecting these display to your RPi ?
          How are you connecting tot them ?
          What protocol do they use ?
          Are they really readable ?
          What do these display show ?

          S Offline
          S Offline
          San.4368
          wrote on 24 May 2018, 06:05 last edited by
          #4

          @SGaist hi,

          1. I have connected the Qt and Rpi's GPIO pins using Wiring pi library.
          2. There is no specific protocol. the 16x2 LCD has Three comment lines and 8-bit data lines.
          M 1 Reply Last reply 24 May 2018, 08:58
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 24 May 2018, 06:37 last edited by
            #5

            As @Cleiton-Bueno wrote, you usually don't read from displays.

            From what you describe you essentially have to use the WiringPi library trough your application to show something on these displays. The first thing you have to do is to make that part work before doing your GUI.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • S San.4368
              24 May 2018, 06:05

              @SGaist hi,

              1. I have connected the Qt and Rpi's GPIO pins using Wiring pi library.
              2. There is no specific protocol. the 16x2 LCD has Three comment lines and 8-bit data lines.
              M Offline
              M Offline
              mvuori
              wrote on 24 May 2018, 08:58 last edited by
              #6

              @San.4368 There is always a specific protocol how the coffee machine controls the LCD, whether you know it or not, but it is not something that is designed for reading by an application. If the idea is to read the LCD for figuring out the state of the machine & repeating the info on the GUI, you probably need to find another way for that.

              Or: of course you could attach a camera to the Pi and OCR the text on the display! That could actually be simpler than writing code for interpreting the hardware signals.

              P A 2 Replies Last reply 28 May 2018, 16:23
              1
              • M mvuori
                24 May 2018, 08:58

                @San.4368 There is always a specific protocol how the coffee machine controls the LCD, whether you know it or not, but it is not something that is designed for reading by an application. If the idea is to read the LCD for figuring out the state of the machine & repeating the info on the GUI, you probably need to find another way for that.

                Or: of course you could attach a camera to the Pi and OCR the text on the display! That could actually be simpler than writing code for interpreting the hardware signals.

                P Offline
                P Offline
                Pablo J. Rogina
                wrote on 28 May 2018, 16:23 last edited by
                #7

                @mvuori said in How to read 16x2 display signals and display it in Qt Gui screen using raspberry pi:

                If the idea is to read the LCD for figuring out the state of the machine & repeating the info on the GUI, you probably need to find another way for that.

                Maybe it isn't such a bad idea after all. Assuming that the LCD is connected via IC2 and remembering IC2 is a bus, the Raspberry could read the same strings sent to the LCD (think of it acting as a second LCD). Then such strings/states should be used to drive/paint the new graphical display using Qt from the Rapsberry Pi itself.
                This way all the input and processing logic will remain in the current buttons/processing unit in the coffee machine and any "text" sent to the LCD will output in the new display as well.

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                2
                • M mvuori
                  24 May 2018, 08:58

                  @San.4368 There is always a specific protocol how the coffee machine controls the LCD, whether you know it or not, but it is not something that is designed for reading by an application. If the idea is to read the LCD for figuring out the state of the machine & repeating the info on the GUI, you probably need to find another way for that.

                  Or: of course you could attach a camera to the Pi and OCR the text on the display! That could actually be simpler than writing code for interpreting the hardware signals.

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 28 May 2018, 20:38 last edited by aha_1980
                  #8

                  hi @San-4368 ,

                  your description reminds me of this LCD controller: https://en.m.wikipedia.org/wiki/Hitachi_HD44780_LCD_controller which I have used in some products too.

                  reverse engineering the data from the lines sounds indeed like a nice project and absolutely doable once you understood the protocol.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  1

                  1/8

                  23 May 2018, 09:51

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved