systemypomiarowe.pl

Close-up of the assembled P161002 board with Microchip devices in SMD packages Board visualisation with an STM32 microcontroller, SD card socket and GPS module Three-dimensional visualisation of a board with a relay, buzzer and connectors Part of a schematic with an INA326 instrumentation amplifier and MCP3304 A/D converter Three-dimensional visualisation of a densely populated communication module board Device front panel with labelled buttons, volume knobs and a speaker Technical drawing of the front panel showing the layout of buttons and knobs Assembled board with a PIC18F2550 microcontroller, USB socket and trimmer potentiometers TouchGFX interface source code for STM32 in the Visual Studio Code editor Printed circuit board layout with copper layers and component placement
Main page Offer

Raspberry Pi - getting started

Getting started is very simple and has been described in a great many places. One can of course buy a ready SD card with the system installed and just slide it into the slot, but preparing it yourself is no trouble at all. To begin, besides the Raspberry Pi board itself, you need an SD card, a 5 V power supply, an RJ45 cable for the internet connection and an HDMI cable. Headphones or speakers and an audio amplifier may come in handy. A keyboard and a mouse connected over USB are useful too. Special keyboards with an integrated touchpad can also be bought.

The SD card has to be prepared in a particular way. We need an image of the operating system, for example Raspbian (http://downloads.raspberrypi.org/images/raspbian/2013-02-09-wheezy-raspbian/2013-02-09-wheezy-raspbian.zip), a program that writes the image to the SD card, Win32DiskImager (http://sourceforge.net/projects/win32diskimager/), and of course a computer. I used a computer running Windows 7 Home and the descriptions that follow refer to that system. There is nothing to stop you from using a computer with Linux instead. Download and unpack the Raspbian image. Put the SD card into the card reader of the computer and start Win32DiskImager.

Win32 Disk Imager writing the system image to an SD card

Fig. The Win32DiskImager window.

Point the program at the SD card the image is to be written to (CAUTION - the program erases all data on that card, so be careful what you select!). Then point the program at the image file, for example 2013-02-09-wheezy-raspbian.img. After pressing the "Write" button and confirming the warning about erasing the data, the program writes the image to the card. When writing is finished the message "Write Successful" appears - it may take a while - and we unmount the card with safe removal and take it out of the reader. Then we put it into the slot on the Raspberry Pi (RPi) board. The computer must of course be switched off at that time. We connect the HDMI cable to a monitor or a television, plus the keyboard and the mouse. Finally we connect the power supply to the microUSB socket. The configuration screen shown in the illustration below appears on the monitor. Occasionally there may be problems with the SD card being incompatible with our device. I installed on two 4 GB cards bought in a supermarket, so hardly the newest ones, and had no trouble.

The raspi-config configuration menu on a Raspberry Pi

Fig. The main raspi-config screen.

We move around the menu with the up and down arrows and the tab key. It is worth entering some of the options and making the appropriate changes. I suggest going into expand_rootfs, which extends the partition over the whole SD card.

The partition expansion option in raspi-config

Fig. Entering the partition expansion option.

Confirmation of resizing the partition on the SD card

Fig. The partition was expanded successfully.

The change_locale option lets us change the language and the encoding. The change_timezone entry lets us set the time zone. First the region has to be chosen. I chose Europe.

Choosing the time zone in raspi-config

Fig. Choosing the region of the world.

Then the capital of the country or a nearby city has to be selected.

Choosing the city when setting the Raspberry Pi time zone

Fig. Choosing the city.

I recommend going into the ssh option, which enables the ssh server to start automatically so that we can work on the Raspberry Pi remotely.

Enabling the SSH server in raspi-config

Fig. Choosing the ssh option.

If we make no changes at this point, we can always do it later by running the command sudo raspi-config.

Once the configuration is done we can use the Tab key to move to the Finish field and confirm.

Finishing the Raspberry Pi configuration in raspi-config

Fig. The end of the configuration options.

Then the Raspberry Pi has to be restarted and we should be able to enjoy a device we configured ourselves.

Restarting the Raspberry Pi after the configuration

Fig. Restarting the Raspberry Pi.

After a moment a screen with a login prompt should appear. The standard user name is pi and the password is raspberry, unless we changed it in raspi-config.

The Raspberry Pi login screen

Fig. The login screen.

After logging in we should configure the network. So far we have not connected the network cable to the computer. Before doing so it is worth finding out the MAC address of the network interface and configuring the router. It is a good idea to assign a fixed IP address to the Raspberry Pi in the router we use. That makes logging into the Raspberry Pi easier later on. We issue the command: sudo ifconfig -a. We get something like this:

Output of the ifconfig command with the Raspberry Pi MAC address

Fig. The ifconfig command.

The MAC address is the HWaddr entry in the printout above. Next we log into the router and enter the MAC address we read in the MAC field, and in the IP address field the preferred address from the pool served by the router in its current configuration. A name such as raspberry, or any other, can be attached to the chosen IP address. In the popular ZyXEL router these settings are found under Network -> LAN -> Client_List, where IP_Address and MAC_Address have to be entered. Doing this later allows, for example, port forwarding so that services running on the RPi are reachable from outside the network, and makes logging into the RPi easy.

Raspberry Pi connectors, including the Ethernet socket

Fig. The connected Raspberry Pi.

To log into the RPi remotely once the network cable is connected, the free PuTTY software can be used.

SSH connection configuration in PuTTY

Fig. Configuring PuTTY.

Midnight Commander (mc) may also prove useful. We install it with the commands:

sudo apt-get update

sudo apt-get install mc


If after the first start-up you want to go further and build a real measurement device on this basis, write to us - we design and build electronics to order.



Copyright ©2026 systemypomiarowe.pl.