Raspberry Pi. Aim: connect a Raspberry Pi to television, mouse and keyboard and get started with python.
In the shopping bag:
* Raspberry Pi Model B+ 512MB RPI-MOD-B+ € 33,25
* 32GB microSD RASPPI-SD-NOOBS NOOBS preinstalled € 18,95
* MicroUSB Power Adapter 5.2V/2.0A – 10 Watt MUSBPWR-5V2-2A € 10,95
* PiView HDMI to VGA converter RASPPI-PIVIEW € 23,95
* VGA cable – 1.8 meter CBL-VGA-1.8M € 4,95
* Logitech MK120 desktop € 18,95
Mouse and keyboard fit into two of the four USB 2.0 ports (bottom right) available.
The PiView HDMI to VGA converter connects to the VGA port on the TV (through the VGA extension cable) to the HMDI port left above center
There are two SD cards shipped (big one and small one) but the big one only serves as an adapter for the older Pi model. Discard. The small microSD card fits into a slot top center ON THE UNDERSIDE (!). May confuse people.
At the back of the TV look for the three-row 15-pin VGA connector. On the test set select the PC mode was selected via the remote. Power the Pi. A MicroUSB Power Adapter connects socket and the 5v micro USB top left. A red LED light will signal the Pi is operational. A second green LED will flash whenever there is activity.
Follow the bootup instructions on screen. The instruction cause confusion by warning that all information on the SD card is overwritten once booting starts. Ignore and start booting. This may take a while. Opt for Raspian and opt for the desktop (not command-line).
The device is set up for English keyboards so expect to find a pound sign on screen when you enter a # on the keyboard. This needs to be fixed but interestingly most solutions offered in the forums fail! The only solution that actually worked (follow precisely!): open the LXTerminal on the desktop and enter:
sudo nano /etc/default/keyboard
in the screen that opens replace
XKBLAYOUT=”us” (or any other two-letter country code)
then to exit enter
control X and confirm “Y” for saving the change made.
When you return to the command-line enter
Switch off the device via the red logout button on the desktop.
Once booting is done the desktop displays several icons. One of them is IDLE 3, the Python shell.
In IDLE 3 use File >> “Save as” to save a file. Use F5 to execute a file in the Python shell. Use ALT TAB twice to switch between these modes. Be aware that Python 2 is different from Python 3! The statement print ‘hello world’ will utterly fail with a non-informative “syntax error”. It should be print(‘hello world’)
Instead of a TV any computer monitor with a VGA connector will do.
Instead of the power adapter the Pi can also be connected to the USB port of another computer with a connector like the one you can use to charge an ebook reader.
The Pi can be connected to the internet via an ethernet cable and the ethernet port (bottom left). The preinstalled webbrowser is called Midori.