How to Use the LCD1602 I2C Display with Raspberry Pi (Python Tutorial with Multi-Threading)

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025

ความคิดเห็น • 28

  • @hand587
    @hand587 ปีที่แล้ว +1

    Great video! I'm going to use this guide to help make a program which shows me when the next bus to work is coming. So I'll never miss the bus again!

  • @davidbrace5606
    @davidbrace5606 ปีที่แล้ว +3

    Very good video. To the point and a great pace, easy to follow. You should have more views!

  • @tjeanneret
    @tjeanneret ปีที่แล้ว

    Thank you a lot, you made my day ! I am very happy to see the Hello message on my tiny display, this is the first time that my Raspberry gets out of its silicon ;-D Your explanations are clear, precise and concise. Perfect.

  • @MarcoDeCesaris-n7w
    @MarcoDeCesaris-n7w 3 หลายเดือนก่อน

    Thank you so much, your tutorial helped me get my lcd working

  • @at-nj3lm
    @at-nj3lm ปีที่แล้ว

    Recently I bought a kit(it includes programs) and do that, but the program didn't work correctly. After watching your video, I tried to do this and characters could be output. thank you very much!

  • @leti324
    @leti324 8 หลายเดือนก่อน

    It works perfectly! :D Thank you!

  • @jordanjung550
    @jordanjung550 11 หลายเดือนก่อน

    Thank you for your video. When I try to download the lcd package, it keeps retrying but in the end it doesn't download. I have i2c enabled. What should I do if I want to use the rip_lcd library?

    • @m.heidenreich
      @m.heidenreich  11 หลายเดือนก่อน

      Make sure there are no typos in your command. It may also be a temporary network issue, which could be fixed by a reboot.

  • @milanvoska8599
    @milanvoska8599 11 หลายเดือนก่อน +1

    When I start the program it says:
    from rpi_lcd import LCD()
    ^
    SyntaxError: invalid syntax
    Does anyone know why 😢😢

    • @m.heidenreich
      @m.heidenreich  11 หลายเดือนก่อน

      Take out the parentheses

  • @ssad-yl8nd
    @ssad-yl8nd 2 หลายเดือนก่อน

    pip3 command doesnt seem to work anymore to install rpi_lcd

    • @m.heidenreich
      @m.heidenreich  2 หลายเดือนก่อน

      You will run into this with the latest Raspberry Pi OS version. Read and follow the details provided as pip3 error message, but the easiest workaround may simply be: sudo pip3 install rpi_lcd --break-system-packages

  • @HungNguyen-gl2xt
    @HungNguyen-gl2xt ปีที่แล้ว

    I'm concerned that SDA and SCL can only handle 3,3V signal but the LCD operation is 5V, so it will return the signal back with 5V. Thus, it may damage your raspberry Pi.

    • @m.heidenreich
      @m.heidenreich  ปีที่แล้ว +2

      In this scenario Raspberry Pi is the controller and it operates the bus at 3.3V. The display is only a receiver and it does not return any signal to the Pi. The setup works because this particular LCD happens to be compatible with a 3.3V control signal.

  • @namphamphuong8635
    @namphamphuong8635 ปีที่แล้ว

    My rasp did not detect the address of the LCD. How can I fix this? Thank you for your tutorial.

    • @m.heidenreich
      @m.heidenreich  ปีที่แล้ว

      Check the SDA/SDC connections. Make sure they are connected as I show or not crossed or replace them. Make sure both 5V and GND are connected.

  • @ragingenby
    @ragingenby ปีที่แล้ว

    The display is not showing up in i2cdetect -y 1 for some reason

    • @m.heidenreich
      @m.heidenreich  ปีที่แล้ว

      Check the SDA/SDC connections. Make sure they are connected as I show or not crossed or replace them. Make sure both 5V and GND are connected.

  • @hardwireHD22
    @hardwireHD22 ปีที่แล้ว

    Would this work on a 20 x 4 display?

    • @m.heidenreich
      @m.heidenreich  ปีที่แล้ว

      It all depends on the protocol used by the display - try it if yours uses I2C.

  • @maax_hue
    @maax_hue ปีที่แล้ว

    hello ! how can I choose the column and the line ? thanks for your exemple

    • @m.heidenreich
      @m.heidenreich  ปีที่แล้ว +1

      The library I use allows selecting the line. You can move your text left/right by padding it with spaces.

  • @flaminggasolineinthedarkne4
    @flaminggasolineinthedarkne4 ปีที่แล้ว

    But how mai i be able tp change the font size?

    • @m.heidenreich
      @m.heidenreich  ปีที่แล้ว

      Not possible with this display. What you want is an OLED display, but the programming model will be different.