element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Forum Need an example of  SPI- TFT touchscreen for pocketbegle
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
BeagleBoard requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 14 replies
  • Answers 5 answers
  • Subscribers 97 subscribers
  • Views 3969 views
  • Users 0 members are here
  • TFT LCD
  • pocketbeagle
  • linux
Related

Need an example of  SPI- TFT touchscreen for pocketbegle

chrischristian14
chrischristian14 over 3 years ago

Hi, I am after adding a touchscreen TFT display to pocketbeagle.

I am already using I/O in C via iobb library, so I am not sure if using a TFT LCD with fbtft driver will conflict with iobb.

There are lot of LCDs available for RPi which should work for pocketbeagle but I am not sure

- How to install fbtft driver - as a module, not built with kernel, I mean use insmod after bootup

- How to modify the driver to tell it to use a specific SPI connectors and how to make sure the driver doesn't mess up existing I/O configuration.

- What are the steps to redirect Xfce environment to the LCD

- And of course the hardware connection.

 

Thanks

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 3 years ago in reply to chrischristian14 +2 suggested
    Hi Chris, Are you sure about this, because it seems odd to me that a GPU is needed for a driver for SPI to read the normal framebuffer. I'm no expert on it either, so don't want to mislead you if you're…
  • geralds
    geralds over 3 years ago in reply to chrischristian14 +2
    Hi, please look here: Home - Nextion Nextion displays may a solution. They have a controller and communicate via serial connections. But.... it is not cheap because you need something to realise your application…
  • chrischristian14
    chrischristian14 over 3 years ago in reply to geralds +2
    Thanks Gerald, I'll check it out.
  • chrischristian14
    0 chrischristian14 over 3 years ago

    It seems pocketbeagle can't work with lcd because there is no GPU, so there is no way to have a full desktop environment on LCD.

    Should I use beaglebone instead ? I managed to get he VNC working and access the GUI desktop that way but, I really need LCD.

    Thanks

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

    Hi Chris,

     

    Are you sure about this, because it seems odd to me that a GPU is needed for a driver for SPI to read the normal framebuffer.

    I'm no expert on it either, so don't want to mislead you if you're really sure.

    Anyway, perhaps Pi is a better option if you're not completely sure how to go about it all with the BeagleBone, because there is a lot more information on the Pi on the Internet, than the BeagleBone (where often the information is outdated), so it's far more likely that you will find examples of SPI displays that work, for Pi.

    The BeagleBone Black  and PocketBeage etc don't have a lot of power compared to recent Pi models, and that could be useful if you want to run a full desktop (which is going to be low-res anyway, if you're using SPI). Pi has some more options for displays, that don't consume a lot of I/O ports either, unlike BeagleBone Black that uses up 24 or so pins for some display interfaces (not SPI).

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • geralds
    0 geralds over 3 years ago in reply to chrischristian14

    Hi,

    please look here:

    Home - Nextion

    Nextion displays may a solution. They have a controller and communicate via serial connections.

    But.... it is not cheap because you need something to realise your application.

    doing:

    1. on the Nextion website you'll find the editor with that you can create your images, buttons, menus, whatever.... (it's difficult to make movies, gif-animations may possible)

    2. create the communication protocols for the display and your controller - USB, or RS, or similar

    3. implement them and drive the display with your controller via a serial port.

     

    Gerald

    ---

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • chrischristian14
    0 chrischristian14 over 3 years ago in reply to shabaz

    Thanks Shabaz, unfortunately Pi is not an option because it is not an opensource hardware. If my project solves the problem it is intended to solve, I may go commercial and,

    I need opensource hardware then.

    I'll check  Nextion as suggested by Gerald, however this is not exactly what I wanted. It's not the same as getting a desktop environment.

    Cheers

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • chrischristian14
    0 chrischristian14 over 3 years ago in reply to geralds

    Thanks Gerald, I'll check it out.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • geralds
    0 geralds over 3 years ago in reply to chrischristian14

    Hichrischristian14  ,

     

    What is your plan?

    What do you want to do because, cheap and even cheaper and wanting to have the best at the same time cannot always be brought together.

     

    It is similar with my projects, which also contain rather smaller modules.

    At some point you will have reached the point where you really have to dig into your wallet in order for the project to succeed.

    So, the controller may also have to be different from what was planned at the beginning.

    Microchip has controllers in the 32-bit series that can also control graphic TFTs. Look there.

    This PIC32xxx can certainly also execute the lower processes at the same time.

     

    Nextion is on my mind because I've been looking for a TFT in the last few weeks and want the best for a cheap price.

    But I see it again and again, it usually ends in a contradiction.

    You really have to rethink and develop the project from scratch.

     

    You could find something else in the Amazon webshop.

    Other TFTs are also offered there, with graphics controllers on the circuit board.

    - For example for Arduino or something similar.

    But these are rather very small, 1, 2, 3 inches.

    And maybe they don't work because they're just "dummies" -  "CE" approved - China Emirates ". image

    - I haven't tested them, I don't trust them yet and I don't want to throw away any money. Therefore, I read everything carefully before I buy such a display ...

     

    Then there is also another manufacturer that is offered on Amazon, which makes similar TFT modules as Nextion, but eventually even more expensive.

    The disadvantage of both: A lot of effort for specially assembled modules.

    4D Systems or Electronic Assembly are also an option.

     

    The question is:

    how much money do you want to spend?

    How much graphics and moving graphics do you need?

    How much resolution, etc ...?

    Touch? ...

     

    Best Regards

    Gerald

    ---

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • chrischristian14
    0 chrischristian14 over 3 years ago in reply to geralds

    Hi Gerald,

    I am not looking for more than 4 inch display size and with minimum GUI, few buttons, one text box.

    Nextion has really bad review, so I am still looking around, though I don't like the approach as it renders the Linux GUI useless, but if I can't find anything else then

    buying a HMI LCD with touch is the way to go, I would want an LCD under $50 NZD (~$30-$40 USD). Not much graphic, maybe one or two logos.

    Proculus looks good but their GUI design software doesn't support Linux, it only works on Windows and I don't have access to Windows PC, I'll have to borrow one, again not preferable.

    I thought there must be something simple that I can easily get working with a simple C or pyhton script by sending bytes to I2C or SPI, like HD44780 based character LCDs, I don't expect it to be that simple but something that I can write drivers from scratch or just use a Linux kernel module.

    I am surprised to see how little information is available out there, when you try to dig deeper (driver, example etc.), there is simply nothing generic that one can use.

    Most of it is for RPi specific, nothing for generic Linux, e.g. Define I2C/SPI/UART in  so_and_so.h file, run make, "insmod" the .ko file, and this is the API.

    I was expecting that kind of information, but so far no luck. Basically there is no serial LCD product as such, it is only designed "for something", the drivers for which is bundled in Linux image, not as a separate lib.

     

    Thanks,

    Chris

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 3 years ago in reply to chrischristian14

    Hi Chris,

     

    Comments interspersed below:

     

    I am not looking for more than 4 inch display size and with minimum GUI, few buttons, one text box.

    In that case, there's no need to render the entire desktop, or to have a GPU. All you need to do is send instructions to draw buttons and text. That can be done with many SPI displays.

     

    Nextion has really bad review, so I am still looking around, though I don't like the approach as it renders the Linux GUI useless, but if I can't find anything else then

    buying a HMI LCD with touch is the way to go, I would want an LCD under $50 NZD (~$30-$40 USD). Not much graphic, maybe one or two logos.

    There's no Linux GUI as such. I think based on what it sounds like your requirement is, you may just need to render basic shapes and images and not require much in the way of animations, so you may not even need any driver and could do it all in user-space code (e.g. your own code, or example code downloaded from the web, in say C, to draw lines, boxes, send bytes from image arrays, all over SPI). No need to look at display drivers in Linux, or any other driver, other than normal SPI driver.

     

    Proculus looks good but their GUI design software doesn't support Linux, it only works on Windows and I don't have access to Windows PC, I'll have to borrow one, again not preferable.

    This conflicts a bit with your comment about needing minimal GUI. Is it possible to just sketch your GUI and convert to instructions like line, rectangle etc? If so, no GUI design software is needed.

    As an example (this is old code, not suggesting you use it, but just to give you an idea):

    BBB - Small OLED Graphic Display

    That page shows an example text menu in one of the photos, as well as other photos containing images etc., all done with no GUI library, and no GUI design software. The web page there shows how to connect it, and the source code is attached to that page, and also there is a github page with more code https://github.com/shabaz123/oled-SEPS525

    That should give you some ideas hopefully, but as mentioned, I wouldn't advise using this as-is, since it is a very old project and not been maintained. There will be much more information for Pi and SPI displays, and you may be able to port some of that to BeagleBone, but personally I wouldn't use the BeagleBone today unless I really had to. Open hardware is possible with many microcontrollers, especially if you don't absolutely need Linux (but I don't know your requirements, maybe you do need Linux).

     

    Most of it is for RPi specific, nothing for generic Linux, e.g. Define I2C/SPI/UART in  so_and_so.h file, run make, "insmod" the .ko file, and this is the API.

    I was expecting that kind of information, but so far no luck.

    You were looking for something that isn't needed if you're after just a simple GUI. No need for drivers and .ko files for a simple interface, you can do it all in user space, and use existing SPI driver. But it's true that you will find more information for Pi, and it may be more up-to-date too.

     

     

    image

     

     

     

     

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • chrischristian14
    0 chrischristian14 over 3 years ago in reply to shabaz

    Hi Shabaz,

    That looks interesting, I'll  check it out. As for the Linux, I need wifi and USB and may also need database, all these are easy to work with on Linux and that's why I went for this.

    thanks, I'll try to post a link for my work here when I'll get it going, so may help someone else.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • geralds
    0 geralds over 3 years ago in reply to chrischristian14

    chrischristian14

     

    Ok, so why not RPI? e.g. the nano version.

    I think this works with Linux, or does not?

     

    If not, is this a possibility?

    GMPUP-PBCAPE | Beagleboard.org Evaluation Kit for PocketBeagle | RS Components (rs-online.com)

    Grafic evalkit for pocketbeagle.

    or this:

    BB-CAPE-DISP-CT43 - Element14 | Farnell AT

    touch screen for BB

    For this display you'll find here more informations:

    4.3 LCD Display Cape for Beaglebone Board (Whit... | element14 | Design Center

     

    Gerald

    --

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
>
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