element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Get certain TFT LCD working on SPI1
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 4 replies
  • Answers 2 answers
  • Subscribers 664 subscribers
  • Views 1032 views
  • Users 0 members are here
  • tft screen
  • tft
  • tft display
  • spi
  • raspberry_pi
  • raspberry pi
  • lcd screen
Related

Get certain TFT LCD working on SPI1

darrenr89
darrenr89 over 7 years ago

Hi everyone!

 

I'm very new to raspberrypi and have spent the last couple of weeks learning as much as I can. I have installed the latest version of Raspian and I'm trying to get a 3.5" LCD to work on SPI1 instead of SPI0 (which I need for other components): http://www.uctronics.com/display/uctron ... -pi-b.html

 

Here is the driver: https://github.com/UCTRONICS/UCTRONICS_LCD35_RPI

 

I tried to follow this post: viewtopic.php?f=63&t=157618&p=1214626#p1214626

 

But all I get is a white screen.

 

Does anyone have some suggestions? Ultimately I will want to use SPI1 as the bus for my primary display for desktop interface/retropi etc

 

I have been trying to figure this out for a while now and could really use a hand.

 

Do I have to make any changes to the driver for the screen?

 

I have it wired up like the following:

 

SCREEN - PI

5V = PIN2 (5V power)

MOSI = PIN38 (SPI1 MOSI)

MISO = PIN35 (SPI1 MISO)

SCLK= PIN40 (SPI1 SCLK)

GND= PIN6 (Ground)

T_CS= PIN12 (SPI1 CE0)

L_CS= PIN11 (SPI1 CE1)

 

And also note that I have it working when I just attach using the included header - which obviously connects it to SPI0.

 

Thanks in advance!

 

Darren

  • Sign in to reply
  • Cancel
Parents
  • shabaz
    0 shabaz over 7 years ago

    Hi Darren,

     

    It's going to be tricky, but in theory possible. The way it works is that there is a driver, which may or may not be flexible enough for this. It likely is flexible enough, but I can't say for sure. I bet they are using a standard driver that has been available for a long time, since there are many SPI-controlled small LCD screens for the pi. If it is flexible enough, then there is also a 'device tree' source file that needs modifying and compiling, but I couldn't see the source for it in the github location that you mentioned; it just had the compiled output (.dtb or .dtbo) device tree file. It may be easier to adapt the other device to use SPI1 (or get them both to use SPI0, but that possibly may not be possible due to the data rate that the display consumes).

    So, in summary it is feasible, but a lot of work digging around in the code to work it out. The manufacturer of the display is best placed to help since they will have prepared the device tree file. The other possibility is to also ask on the raspberrypi.org forum, because as I understand (I could be wrong) the person who wrote the original driver (which everyone else rips off : ( originally sold his displays by advertising in the forum there in their 'for sale' section.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • darrenr89
    0 darrenr89 over 7 years ago in reply to shabaz

    Hello Shabaz,

     

    Thank you for your thorough reply. I figured it was going to be tricky and that I needed to mess around with the driver to get this working. I really need to get it working on SPI1 as I have a PCB design I am working with and that is how it is wired up. I might try contacting the supplier of the display to see if they can help with the driver.

     

    Unfortunately I tried the Raspberry PI forum and my post has still not been reviewed and made live and I posted it over two weeks ago image

     

    Is there a way to potentially use a generic driver that could work for the display? And then maybe I can edit the device tree of that driver?

     

    Any advice here is great! Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 7 years ago in reply to darrenr89

    Hi Darren,

     

    I think the generic one is here:

    https://github.com/notro/fbtft-build

    There are patches there that pull in files from other folders, and the dts files are there too. I'm guessing though : ( I'm no expert in this. I don't want to point you down a path that could be futile though, so it is best if you can still try to reach out to the manufacturer, get them to supply you a modified driver or dts file that does what you need it to do.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • darrenr89
    0 darrenr89 over 7 years ago in reply to shabaz

    Thanks Shabaz!

     

    I have sent an email to the manufacturer and we will see what I get back. I will let you know what happens. Thanks again for the replies.

     

    Kind Regards,

     

    Darren

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • darrenr89
    0 darrenr89 over 7 years ago in reply to shabaz

    Thanks Shabaz!

     

    I have sent an email to the manufacturer and we will see what I get back. I will let you know what happens. Thanks again for the replies.

     

    Kind Regards,

     

    Darren

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube