Це відео не доступне.
Перепрошуємо.

How to interface SPI TFT LCD(ST7735) with RaspberryPi - Part 1

Поділитися
Вставка
  • Опубліковано 30 січ 2022
  • This video demonstrates how to interface SPI TFT LCD(ST7735) with RaspberryPi
    Download the source code from link below
    github.com/deg...
    Note: This tutorial was tested on 32bit Raspberry Pi OS and may not work on 64 bit version.
    Support me - By Me a Ko-Fi
    ko-fi.com/praj...
    For more exciting projects please visit worldomo.blogs...

КОМЕНТАРІ • 56

  • @SwaggerDolphin1
    @SwaggerDolphin1 Місяць тому +2

    Man, you really smash the return key haha

  • @rudolfherwig7279
    @rudolfherwig7279 10 місяців тому +1

    Hello Prajnith, I'm so happy 😊. You made my day! The display works as desired and I am really lucky. Thanks for your video and have a nice day! 👍

  • @BlckBox
    @BlckBox 2 роки тому +2

    Great video, very concise and easy to follow. Please ditch the music though, I don't think you need it.

    • @degzero
      @degzero  2 роки тому +1

      Hi Adam,
      Thank you for the feedback. Yes, you are right about music and I have started to get rid of music in recent videos.

  • @DemmyDemon
    @DemmyDemon Рік тому +3

    You can disable the audible bell in putty. Please do so.

    • @degzero
      @degzero  Рік тому

      Thank you for your Inputs, I will surely do that in future videos!

  • @fadi455
    @fadi455 Рік тому +1

    Hello ! Thank you a lot for this video.
    I can’t change the speed of the clock wether I change SPI_SPEED_Hz value (scrollin_text.py) or SPI_CLOCK_Hz value (ST7735.py). Have you faced the same problem ?

    • @degzero
      @degzero  Рік тому

      I haven't tried it, but since it's running over python there could be limitation set in python GPIO library

  • @niashino426
    @niashino426 Рік тому +1

    Hi, I've tried to follow the tutorial but my display only shows white, nothing else
    May I ask what am I doing wrong?

    • @degzero
      @degzero  Рік тому

      Hope you have connected the pins correctly, white screen indicates the LCD is being powered correctly but SPI communication might be a issue, please check comment from @Michael Benn on the SPI pin connections

  • @MohammadSahal
    @MohammadSahal 2 роки тому

    Where does the A0 go? I dont think you mentioned it anywhere?
    It would be great if you could add a chart to the description detailing the pin connections

    • @michaelbenn4741
      @michaelbenn4741 2 роки тому +1

      A0 should be connected to the Pi's MISO pin, which is GPIO 9 (pin 21) for the default SPI port, which is port 0. If you want to enable the second SPI port, which will be SPI port 1, A0 should be connected to GPIO 19 (pin 35). Enable the second SPI port by adding 'dtoverlay=spi1-3cs' to your /boot/config.txt file straight after the 'dtparam=spi=on', which is what turns the first SPI port on. If you don't already have SPI enabled, that line will be commented out, so either remove the hash symobl, or use 'sudo raspi-config' to enabled the SPI interface. HTH 🙂

  • @r.ssolanki4841
    @r.ssolanki4841 4 місяці тому

    if pinout was mentioned in a diagram it would have been better
    again and again i need to listen to your voice to see the pinout

  • @minhhoangbui5413
    @minhhoangbui5413 10 місяців тому

    My screen is 320x240 but the image can only display one corner, why?
    Can you help me?

  • @dexnug
    @dexnug 2 роки тому

    hello sir, can we display the text (8:44) in landscape mode?

    • @degzero
      @degzero  2 роки тому

      you can use draw.rotate(90) before line 82 in scrolling_text.py

    • @degzero
      @degzero  2 роки тому

      also check out advanced tutorial Part 2 below
      ua-cam.com/video/dj0WrkpPRho/v-deo.html

  • @ohadduman6498
    @ohadduman6498 Рік тому

    this can work with ili9341 ?

    • @degzero
      @degzero  Рік тому

      Sorry the register mapping in the code is written specially for ST7735 lcd driver.

  • @dennishopper8687
    @dennishopper8687 Рік тому +5

    would it have killed you to include a wiring diagram?

    • @songoku2872
      @songoku2872 11 місяців тому +5

      from what worked for me, the connections(not GPIO) are as follows: VCC - any 3.3v pin (i gave to pin 17), GND - any GND pin (i gave to pin 6), CS - Pin 24, RST - Pin 22, A0/DC - pin 18, SDA/MOSI - pin 19, SCK/SCLK - pin 23, LED - pin 1 (3.3v). Note that even a 5v can be used for VCC but i'm slightly worried about over voltage, which may damage the tft. if you are using GPIO pins, refer to the pinout of your raspberry pi and connect accordingly. Have a great time experimenting :)

    • @williamrayburn5623
      @williamrayburn5623 6 місяців тому

      @@songoku2872 Thank you for your input! You got me working.

    • @songoku2872
      @songoku2872 6 місяців тому

      @@williamrayburn5623 happy to help! :)

  • @usmangilani2367
    @usmangilani2367 2 роки тому

    Hello please let me know can I use this display as monitor of raspberry pi.
    Actually I want to play a video streaming from website on this display

    • @degzero
      @degzero  2 роки тому

      Unfortunately the SPI interface used here with python is insufficient to play videos with good frame rate

    • @degzero
      @degzero  2 роки тому

      Use this tutorial
      m.ua-cam.com/video/cXGnYmMBOGM/v-deo.html

    • @usmangilani2367
      @usmangilani2367 2 роки тому

      Sir thankyou very for you reply
      Sir actually I don't need good frame rate I just want to achieve the goal, I have this display and I want it to display the live camera streaming from raspberry pi.
      Regardless of frame rate
      Can you please help me out
      Waiting for you kind reply 🙂

    • @usmangilani2367
      @usmangilani2367 2 роки тому

      Can I have your email so that I can explain you better.
      Please

    • @degzero
      @degzero  2 роки тому

      @@usmangilani2367 Yes but since we used Python for this whole process and not Linux frame buffer we cannot tap into video stream unless we write that whole code in python.
      We may need to do something like mentioned in the website but its still lot of work programsolve.com/python-to-play-video-player-on-terminal-with-source-code/

  • @usmangilani2367
    @usmangilani2367 2 роки тому

    Sir kindly make the video on that please.
    Waiting impatiently

    • @degzero
      @degzero  2 роки тому +1

      I'm working on it, little busy with main work, facing issue with blinking lcd, hopefully should be able to get it working by this weekend

    • @usmangilani2367
      @usmangilani2367 2 роки тому

      @@degzero that's really great news for me that you are doing it.
      I'm really happy and thankyouu for your efforts.
      May God be with you and you will have success for sure.
      Thanks again.
      Looking forward 😃

    • @degzero
      @degzero  2 роки тому

      I just fried my st7735 display, need to get a new one, will keep you posted.

    • @usmangilani2367
      @usmangilani2367 2 роки тому

      @@degzero oh no.!
      That's really sad.

    • @usmangilani2367
      @usmangilani2367 2 роки тому

      @@degzero I hope you'll get success soon.
      Looking forward 🙂

  • @usmangilani2367
    @usmangilani2367 2 роки тому

    Please reply me asap

    • @degzero
      @degzero  2 роки тому

      ua-cam.com/video/dj0WrkpPRho/v-deo.html

  • @SebasKoedam
    @SebasKoedam Рік тому

    i get this error and im not sure what to do: disp = TFT.ST7735(
    TypeError: __init__() got an unexpected keyword argument 'spi'

    • @degzero
      @degzero  Рік тому

      Ensure you have enabled spi in config.txt
      Also did you install python gpio and spidev library ?
      pip install spidev