Computer Shopper - UK (2020-01)

(Antfer) #1

ADVANCEDPROJECTS


126 JANUARY2020|COMPUTER SHOPPER|ISSUE383


Then click File,SaveAsand name the file
wpa_supplicant.conf.Select All Files as the
Save as type before clicking Save.This allows
the Pi to connect to your Wi-Fi network
automatically,and enables SSH so you can
program it remotely.
Once done,remove the microSD card and
plug it intothe Pi. Then fit thePi-and-screen
combo intothe case.This can be abit fiddly,
but abit of perseverance will see the screen
slide neatly intothe case.Topower up the
Pi, connect your Micro USB cable intothe

power connector of the screen’s control
board. After 20 seconds or so,you should see
the Raspbian desktop.And it will be upside
down. That’s not toomuch of aproblem, but
you’ll need to connect to the Pi to put it right.

SETTING UP
First, you’ll need to find the Pi’s IP address; a
neat trick is to use the ping command. Press
the Windows key, typecommand hit Enter
to open the Command Prompt. Then type
ping raspberrypiandyou’ll see four replies, all

of whichlist the same IP address (something
like 192.168.1.XXX). Then use an SSH tool such
as PuTTY (seetinyurl.com/ssh-putty); enter
that IP address in the Host Name field and
click Open. Click Yestothe warning and a
text-input window will appear.Log in with the
standard credentials –piand raspberry –and
you’re ready to start sorting out the Pi.
Before doing anything, you should updatethe
password. Entersudo passwdand follow the
prompts. Then updatethe software: enter
sudo apt-get update&&sudo apt-get
upgrade -y.Next, we’llfixthat
upside screen. Entersudo
nano /boot/config.txtand
find theframebuffer_width
and framebuffer_height
entries. Remove the hash at
the front of both lines and
change the values to 800
and 480 respectively.
Then scroll to the bottom
of the file and enter:

#Rotates display
display_rotate=2

To save your changes, press
Ctrl-O,Enter,Ctrl-X. This fix
will only rotatethe image of
the desktop,but not the

⬆Connect the Pi to thescreen’s control board using the ribbon cable.The printed side should be on the inside of theloop

⬅Use the ping command to find
your Pi’s IP address quickly
Free download pdf