RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    What am i doing wrong with my hd44780 16x2 lcd?

    Scheduled Pinned Locked Moved Help and Support
    hd44780 16x2 lc
    52 Posts 3 Posters 14.3k Views
    Loading More Posts
    • 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.
    • cyperghostC
      cyperghost
      last edited by cyperghost

      @Boz The best way is to connect every ground as single line - you will avoid interferences with that. But you can connect ground 3,3V to Pi ground and connect HV ground to I2C backpack.

      But on the other hand (I didn't know you don't have a breakboard):
      As they use all the some potential it isn't needed to wire every ground to annother point.
      Here you see the shematics
      img

      I used one of my old B+ and used a Pi Dish but not for 25$ :))

      1 Reply Last reply Reply Quote 1
      • BozB
        Boz
        last edited by

        I must have messed up somewhere there's no power to the lcd.
        I have the wires connected as you said (will double check again in a min) but connected via the header on my dac.
        I notice I didn't connect any wire to the vcc on the i2c backpack is this correct?

        1 Reply Last reply Reply Quote 0
        • BozB
          Boz
          last edited by

          Here's some pics:

          0_1501408883945_1.JPG

          0_1501408926255_2.JPG

          0_1501408994184_3.JPG

          0_1501409012372_4.JPG

          1 Reply Last reply Reply Quote 0
          • BozB
            Boz
            last edited by

            I have it wired like so:

            LV (red) to pin1 on dac
            HV (orange) to pin2 on dac
            GND (grey) to pin6 on dac
            GND (grey) to GND on i2c
            LV1 (blue) to pin3 on dac
            LV2 (yellow) to pin 5 on dac
            HV1 (blue) to SDA on i2c
            HV2 (yellow) to SDL on i2c

            Nothing connected to VCC on i2c.

            1 Reply Last reply Reply Quote 0
            • cyperghostC
              cyperghost
              last edited by cyperghost

              Can you measure voltage on HV? That has to be 5,0V
              Then connect HV also to VCC on your I2C LCD - with 5,0V

              The connection HV and LV on level shifter is only for internal comparism 3,3V and 5V it is not intended as supply. The LCD must glow if the there is 5,0V...
              The Pi got annothe 5V pin... Pin2! Use that for LCD connect!

              EDIT: Sorry Pin 2 is already used... Can you expand it? Or what about Pin 4? You need 5V for the LCD!

              1 Reply Last reply Reply Quote 0
              • BozB
                Boz
                last edited by Boz

                Ok so I just add a wire from pin 4 on pi(dac) to vcc on i2c and leave the rest?

                I thought the idea was to not directly connect 5v power to the i2c backpack ?

                1 Reply Last reply Reply Quote 0
                • cyperghostC
                  cyperghost
                  last edited by cyperghost

                  Yes
                  But I'm not sure if the device can be detected. I2C is multibus so it should work.... but we will see. Maybe I2C adresses from your devices are the same. Just connect and report!
                  Your have a seconds Pi.... maybe you can get it on this to work?

                  1 Reply Last reply Reply Quote 0
                  • BozB
                    Boz
                    last edited by Boz

                    Will connecting pin4 directly to the lcd not damage the pi?
                    I thought that was the reason I got the level shifter?

                    If I was to solder a 2nd wire to HV header on the level shifter and connect that wire to VCC on the i2c would that solve the problem?

                    1 Reply Last reply Reply Quote 0
                    • cyperghostC
                      cyperghost
                      last edited by cyperghost

                      No...
                      There are voltage output pins!
                      2x 5V and 2x 3,3V ... The 5V can output the same amount as the power supply so very robust
                      the 3,3V can only output 40 or 60mA that's enough vor LEDs or a few IC.

                      The rest are "sender" and/or "receiver" Pins.
                      They sending with 3,3V and if they are receiving data the voltage level should also 3,3V
                      5,0V is much to high... So the level shifter reduces or highers only the "sender" and "receiver" parts. It has nothing to do with the power supply. Got it?

                      You can also try to split the Pin1 to work with level shifter and LCD.

                      1 Reply Last reply Reply Quote 1
                      • BozB
                        Boz
                        last edited by

                        Thanks now I understand,
                        I'll solder a wire onto the HV pin then and see what happens :)

                        LV (red) to pin1 on dac
                        HV (orange) to pin2 on dac / VCC on i2c
                        GND (grey) to pin6 on dac
                        GND (grey) to GND on i2c
                        LV1 (blue) to pin3 on dac
                        LV2 (yellow) to pin 5 on dac
                        HV1 (blue) to SDA on i2c
                        HV2 (yellow) to SDL on i2c

                        1 Reply Last reply Reply Quote 0
                        • cyperghostC
                          cyperghost
                          last edited by

                          Yes ... Seems right now

                          1 Reply Last reply Reply Quote 0
                          • BozB
                            Boz
                            last edited by

                            1 Reply Last reply Reply Quote 1
                            • BozB
                              Boz
                              last edited by

                              Success!!! Thank you so much!!

                              1 Reply Last reply Reply Quote 1
                              • cyperghostC
                                cyperghost
                                last edited by cyperghost

                                @Boz Nice video - thanks for posting!
                                Worked the python driver I posted?
                                Your setup is interesting? What's the name of the frontend? It does not look like Emulation Station?

                                BozB 1 Reply Last reply Reply Quote 0
                                • BozB
                                  Boz @cyperghost
                                  last edited by Boz

                                  @cyperghost The front end is an Attractmode skin called Hyperpie, it can be quite laggy even with an overclock. I also have the comic book theme on emulationstation installed, I'm able to switch between them in the menu...I'm undecided which one to use at the minute.
                                  The lcd software/driver is a package of python scripts that includes I2C_LCD_driver.py, retropie_clcd.py and some others.
                                  The package is called RetroPie-Clcd and can be found here:

                                  https://github.com/zzeromin/RetroPie-Clcd

                                  Some parts of retropie_clcd.py were unfinished such as the system names which I finished off, then I just changed the intro messages and it was done. (one slight problem still remains but i'll come back to that at a later date).
                                  I'm just going through the missing artwork at the min so I can finish the image and make a backup,
                                  Thanks for all your help and patience :)

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post

                                  Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                  Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.