Raspberry pi – 5 Inch touchscreen Installation


5 Inch Touchscreen Display
5 Inch Touchscreen Display

 

Stl to 3d Print case:
https://www.thingiverse.com/thing:1698162

I’ve had the Raspberry Pi for quite some time now and was thinking on what new projects I could work on using this. One thing which actually stops me from using this, even though it can be powered via a power bank, is, it still is not portable? Well we’re going to fix that problem in this video.

As I said the raspberry pi on its own is not portable which means it needs an external display or input methods to be of any use.

5 inch touchscreen display

Here I have a  5 inch touchscreen display, which I’ll be coupling with this raspberry pi.

5 inch touchscreen display

I purchased the 5-inch model after the 3.5 inch version of the same which didn’t work for me. The extra screen real estate should allow for more ease of use.

5 inch touchscreen display Interface pins

On the back of the display are the GPIO or General Purpose Input output connectors, which would connect directly to the pins on the raspberry pi, but do note there are 40 pins on the raspberry pi and only 26 on the display, so it has to be aligned and connected with care.

5 inch touchscreen display backlight switch

Here’s a backlight switch, to turn the screen backlight on or off, essentially turning the image off lowering the power draw, to save battery if using a powerbank.

HDMI o HDMI connector

Also present in the box is a HDMI to HDMI connector, it has the exact size and spacing allowing to connect between the screen and the raspberry pi. Which is nice as I don’t need a long hdmi cable dangling between the two halves.

Standoffs

Standoffs to give some support between the pi and LCD screen.

5 inch resistive touchscreen display Stylus

A stylus, this LCD screen has a resistive touchscreen, so styli like these or even your finger will work.

Let’s get the box out of the way and get back to the screen.

Raspberry Pi remove case

I won’t be able to use this case while the Pi is connected to the LCD, so better I remove it.

Raspberry Pi

Here’s the Raspberry pi in it’s actual form, it is quite small, considering it is a mini computer.

Raspberry Pi pins to install 5 inch touchscreen display

These are the pins which would align with the ports on the display.

Raspberry Pi match the pins to install 5 inch touchscreen display

Align the pins on the raspberry pi with the ports on the screen and carefully plug it in.

Raspberry Pi install standoff for support to the 5 inch touchscreen display

This location looks good for a standoff to give some strength, as we would be using the touchscreen, and we don’t want all the force to be exerted on the pins.

Connect HDMI to HDMI connector between Raspberry Pi and the 5 inch touchscreen display

On this side we have the HDMI port on both the LCD screen and the pi. The provided HDMI to HDMI connector fits perfectly between them.

Raspberry Pi insert micro-sd card with raspberry pi OS

I have a version of Raspberry OS on this micro SD card, it was formerly known as Raspbian, which is based on Debian Linux optimized for the Raspberry Pi hardware.

Insert the micro-sd card into the slot, plug in the raspberry pi and we’re off.

Raspberry Pi, 5 inch touchscreen display now active

The LCD using the HDMI to HDMI interface provides an image instantly. The 3.5 inch display I had purchased earlier only had the image come through the GPIO pins, which generally has a bad refresh rate. This being hdmi to hdmi has a way smoother display and is easier to install.

Raspberry Pi, 5 inch touchscreen not working

We’re in, we have booted into the Raspberry OS desktop.

Raspberry Pi, 5 inch touchscreen display install driver

Hit, next to continue. You will notice that the touchscreen doesn’t work. This is because the touch-screen drivers are not installed as yet.

Raspberry Pi 5 inch touchscreen display install driver

The GPIO pins are used for the touch screen interface. Now to load the drivers, I’m using a USB mouse to setup the Bluetooth keyboard, as I don’t have an extra USB-Keyboard.If you have a USB mouse and keyboard you can start using them once connected.

Rii i8+ Bluetooth keyboard

You could also use this, the Ri wireless Bluetooth keyboard, which also has a touchpad on top.

Also we need the Wi-Fi to be connected as we need to download the drivers to install.

Ok, now that the keyboard and WiFI are setup we can run the required commands to install the touch screen drivers.

Raspberry Pi open terminal and type commands

Open up terminal, and type in

git clone https://github.com/goodtft/LCD-show.git

The Raspberry pi starts to download the driver from the GIT repository.

Once done we are back at the prompt.

Raspberry Pi type commands

chmod -R 755 LCD-show

CD  LCD-show

sudo  ./LCD5-show

Now the raspberry pi will update the touch configuration files and reboot.

Raspberry Pi, 5 inch touchscreen now works

The touch screen now works.

The pi was being powered using a plugged in micro USB cable, let’s shift to a power bank.

Raspberry Pi, power via 5 inch touchscreen display

You will notice there’s a micro-USB port on the LCD screen too, we can power the PI, by connecting the power cable to either the Pi itself or even via the display.

Raspberry Pi, power via 5 inch touchscreen display

This time I’m using the display to power both devices.

Raspberry Pi, 5 inch touchscreen display using a power bank

I’m using this Ambrane  20,000 mAh powerbank, making the raspberry pi completely portable.

Let’s open up the browser,

Raspberry Pi, 5 inch touchscreen display, YouTube playback

Youtube, and let’s test video playback.

Raspberry Pi, 5 inch touchscreen display, video playback

The playback is smooth.

For the onscreen keyboard to run we need to install it.

Raspberry Pi, 5 inch touchscreen display, install onscreen keyboard

So run

sudo apt install matchbox-keyboard

I chose to use the matchbox-keyboard package as it’s the most stable for the Raspberry Pi while also not chewing up too much of the Pi’s limited resources.

Once done,

Raspberry Pi , open on screen keyboard

Hit the pi icon on the top left, accessories, keyboard.

Raspberry Pi , open on screen keyboard

Now we have an on-screen keyboard, not requiring use to have a physical keyboard connected anymore.

Print case for raspberry pi

It’s not safe to carry around this frankensteinian creation around all open to the elements, so I went forward and printed a case for it.

Printed case for raspberry pi

This is how it looks, the case is not designed by me, I have shared the URL for the same in the description.

Install Raspberry Pi into printed case

This is the final implementation.

Raspberry Pi in printed case with stand

Now the Pi is ready to deploy code which could be run portably not having it to be tethered to a power adapter.

Raspberry Pi in printed case with stand

I also printed these stands, used it from another stl, I have shared the same also in the description.

So, that was it, hope it helped you get your Raspberry pi paired with a LCD display and also some ideas on how to use it. I have a few coming up so stay tuned.

If you have any questions do write in to tech@talkingstuff.net or WhatsApp me at 9652578833.

Also make sure to like, subscribe and hit the notification bell to be informed when new videos are added.

Thank you for watching and see you all next time.

Post Author: Vinayak

Self-confessed geek from the days when computer memory was measured in Kilobytes

Leave a Reply

Your email address will not be published. Required fields are marked *