Raspberry pi board is very popular amongst maker community because of its ease of use. It’s so popular and powerful that a laymen also knows about this board as a Credit Card sized computer. I have even read somewhere that, I a school all the computers were running on Raspberry Pi board and Student’s were really amazed by seeing a computer running without that big black box, commonly known as CPU. So know in this article, I’ll be talking about how to boot up your Raspberry Pi board using Raspbian OS and How to interface a 7in Touch Screen Display on it.
- Raspberry Pi 3b board
- 7in Touch Screen Display
Installing Raspbian OS
Makers of Raspberry pi have developed their own OS called Raspbian and in this article, I’ll let you know how to install it and boot up your Raspberry pi. First goto the official website of Raspberry Pi and download the latest version of Raspbian OS available there. At present, when I’m writing this article the latest version available is 4.14.
So first goto this website and download the Raspbian OS by clicking on download zip button.
After this, you need to first format your SD card using one software called SD Card Formatter which is available for both Windows and MacOS. Download it and open that software.
Here click on the format button to clear up your SD card.
After successfully formatting the card, download a new software on your system called Etcher which is also available for both Windows and MacOS. After installing that, open up Etcher on your system and click on this select image button.
At last, just click on the flash button to burn this image on the SD card. If the SD card drive is not automatically selected, then you need to manually.
After few mins, the Image will be successfully burned on the SD card and you just need to insert that SD card in Raspberry pi board and power it up. Now you are ready to use your Credit card sized computer running on Raspbian OS.
Interfacing Touch Screen Display
So till now we have discussed the steps to get your Raspberry start working with Raspbian OS. Now I’ll let you know the steps to interface the 7in Touch Screen which I have ordered from DFRobots. So the Kit contains a Touch Screen display, one HDMI to HDMI connector and some screws to attach Raspberry pi on the back side of the Touch Screen.
First I’ll attach the raspberry pi to the display using the screws provided in the kit and then I’ll connect this HDMI to HDMI connector. After this, our device looks like this.
Now I’ll power up the Raspberry pi board using power a 5V 2A power adapter. Remember, you just need to power up the raspberry pi board, you don’t need to attach any external power source to the display. Now as you can see the display turned on. But one thing you’ll notice is that the touch screen is not working and also the display is not aligned according to the resolution of Screen.
Solution of Touch Problem
By connecting just HDMI cable won’t let you use the touch screen. Rather you have to connect the one micro USB cable from the screen to Raspberry pi. Using this connection, Raspberry pi can take the input of touch. With this connections only we will be able to use the touch screen otherwise it won’t work at all.
Solution of Screen Resolution and Touch sensitivity
Both the problems have one common solution, setting the screen resolution. The Raspberry pi by default is not configured according to the resolution of touch screen so to set the resolution for a 7in Touch screen, you need to modify config.txt file of Raspberry pi. Just open the terminal and type
sudo nano /boot/config.txt
Then at the bottom of this config.txt file, just copy and paste this lines of code to set the resolution.
remove black borders
#set specific CVT mode
hdmi_cvt 1024 600 60 6 0 0 0
#set CVT as default
That’s it, we have done all the things that is required to use this touch screen with our Raspberry Pi board. If you still didn’t get how to use the touch screen with the Raspberry pi board, then watch out my step by step video guide on it.