In this tutorial we’ll be setting up the LCD display and the Raspbian OS for the LCD display. We’re using the 7” LCD monitor/touch display and the Banana Pi M2 single-board computer with integrated WiFi.
Step 1) First we’ll set up the Raspbian OS.
- Connect the MicroSD card to your computer and locate the Raspbian OS (LCD) image.
- Click the Google Drive logo and download the image (this may take awhile depending on your internet connection). Make sure you download the version for LCDs — the LCD will not work if you have the version for HDMI.
Step 2) If this is your first time setting up a Banana Pi, we recommend going over our first tutorial.
Windows users will use Win32DiskImager or a similar program to burn the image file to the SD card.
If you’re using a Mac or Linux follow these steps:
- Open up your terminal by
- opening up your finder
- selecting applications
- typing in “terminal”
- open the application with the >_ logo
- To find your SD card on your computer. Type in (diskutil list) in the terminal without the parentheses. This will give you a list of your storage devices. Locate the name of your SD card that you inserted earlier.
- Un-mount the card by entering the following command: (diskutil umountDisk /dev/disk1). This is just an example file path, your root file will be located above the storage information of your SD card. In this case mine was /dev/disk.
- Once you’ve unmounted the card, run the data dump command to burn the image to the SD card: (sudo dd bs=1m if=~/Downloads/rasbian.img of=/dev/rdisk1). For this command replace the “/Downloads/rasbian.img” with the file path the raspbian image file located on your machine. Also replace the “/dev/rdisk1” with the path that you raplaced in step 3- make sure to keep the “r” before the disk#.
- Enter your password and wait for the data dump to finish.
- Eject your disk (sudo diskutil eject /dev/rdisk1), then replace the filepath with the one you replaced at the end of step 4.
Step 3) Next we are going to connect the Banana Pi 7” LCD display. The first step is to take the ribbon cable and connect it to the port near the Banana Pi logo (the one that has the long black tab). To do this simply lift the black tab and carefully insert the ribbon and then close the black tab, securing the ribbon in place. Be sure to have the blue side (with the labels) facing the Ethernet port.
Step 4) After connecting the ribbon to the Banana Pi, we need to connect the ribbon to the LCD display. Locate the corresponding port near the bottom of the board on the back of the LCD module. Flip open the tab and insert the ribbon with the blue side (without the labels) facing away from the LCD. Once more, secure the ribbon by closing the tab. When you’re finished with this step, it should look like this.
Step 5) Once this is done insert your SD card back into the BPi and power it up using the 5V power adapter. Because the micro-USB cannot support all of the functionality on the board — especially the LCD display — we prefer to use a 5V power adapter. Once you’ve connected the power supply, your LCD display should be ready for use.