Click here to Skip to main content
15,867,835 members
Articles / Internet of Things / Raspberry-Pi

Raspberry Pi - [Episode 1] The journey begins

Rate me:
Please Sign up or sign in to vote.
4.96/5 (31 votes)
13 Sep 2013CPOL7 min read 105.6K   66   39
Bought, Imaged and Booted - So far so good!

 

Raspberry Pi Logo

Introduction

You might be able to tell from my other articles based on the Arduino that I like dabbling. When the Raspberry Pi was announced, that was an instant 'Ooooo', then the price was announced which led to a bigger 'Ooooooooooo'. And that was that, it was a must have. Don't know what I was going to do with it, but it was on the list.

Registered on the waiting list on the Farnell website in mid-April '12, and some time later on, got a notification if I still wanted one to follow a link and place the order. The order was placed on the 9th May. Time ticked on and Farnell sent me an email 27th June saying I should have my Raspberry Pi shipped on the 9th July. I was offshore at the time of shipment, and arrived home on the 17th July to find it was waiting for me.

And so the games begin...

 

What is a Respberry Pi

The Raspberry Pi is a fully featured micro-computer squashed onto a circuit board measuring approximately 9cm x 5.5cm. The specification (Model B) is;

  • ARM 11 CPU running at 700MHz
  • Videocore 4 GPU
  • 256Mb Ram
  • 2 x USB
  • 1 x SD Card slot
  • 1x HDMI port
  • 1 x 3.5mm audio port
  • 1 x RCA Video
  • 1 x mini-USB (Power port)
  • 1 x 10/100 Ethernet port

According to the website (http://www.raspberrypi.org) it has an overall performance equivalent of a Pentium 2 running at 300MHz, and the GPU performance is capable or running H.264 video at 40MBits/s or 24GFlops of general purpose compute power.

Why "Episode 1"?

Quite simply, this is my first venture into the Raspberry Pi. I might write another article or I might not. I have a million other things I want to do, but just not enough hours in the day for them all.

This really is just a very basic intro to the platform, and just to see really how quickly it is possible to get going from out of the box, to up and running.

What are all the connectors on the board?

The image below is of the "Model B" board which I purchase, the "Model A" board is a lower spec with less connectivity aimed at the educational market.

Raspberry Pi - Model B
GPIO (General Purpose Input/Output) Connector Pinout
Top Row (L-R, Evens 2- 26): 5V0, DNC, GND, TXD, RXD, GPIO1, DNC, GPIO4, GPIO5, DNC, GPIO6, SPI_CE0_N, SPI_CE1_N
Bottom Row (L-R Odds 1-25): 3V3, SDA0, SCL0, GPIO7, DNC, GPIO0, GPIO2, GPIO3, DNC, SPI_MOSI, SPI_MISO, SPI_SCLK, DNC
JTAG Connector, is actually in two parts, the left side is the P2 Header and is the VideoCore JTAG and the right side is the P3 header (no populated pins) for the LAN JTAG. These are low level debugging ports only used during the board production.
CSI connector is the Camera Serial interface, there is meant to be a compatible camera coming out in the future for this port.
DSI connector is the Display Serial Interface, again possibly a future LCD panel coming.

 

What do I need to just get it going?

 

Apart from the Raspberry Pi itself the following things I have at hand to get it going are;

  • SD Card (I am using a 2GB)
  • Suitable SD Card reader attached to/in your computer
  • USB Mouse and Keyboard
  • Micro-USB power connector
  • HDMI cable (or HDMI to whatever display connector you are using)
  • Ethernet Cable

What about the software?

Popping over to the Raspberry Pi website, I downloaded the following;

  • Win32DiskImager Zip File
  • Debian "wheezy" Image Zip File (Version: 15th July 2012)

The Win32DiskImager is a tool for taking the image file and preparing the SD card to make it bootable. Simply dragging and dropping the files from the image to the SD card isn't sufficient.

Preparing the SD-Card

Next we need to prepare the SD Card with an image of the operating system we are going to use. Extract the Win32DiskImager to a folder on your computer. Extract the image file zip to a folder on your computer. Load up Win32DiskImager and select the source image file and the target drive you have inserted the SD card into on your computer. Click "Write" to commence imaging the SD Card. All data on the SD Card will be wiped, so make sure you have not left anything on there you need!

Win32DiskImager

Connecting up and Boot time

The time has come to plug it in, switch it on and hope that it boots!. Hook up the HDMI, usb keyboard and mouse, plug in the newly imaged sd card, attach the ethernet cable and then plug in the power, sit back and hold your breath.........

Boot Config Menu

Success, after the usual boot messages flying past, the screen above appeared, this is the Raspi-config menu screen. A quick check of the locale and timezone was all ok. I even selected the 'update' option and it went off out to the internet and checked for available update packages, found and installed 4 of them. So it looks like the network is working.

Desktop Environment

After finishing with the config screen, at the command prompt you can load up the desktop by typing 'startx'.

Command Prompt

The image I installed comes pre-configured with 'LXDE' enabled as the gui. Once the desktop has fully loaded, you will see a typical desktop layout, icons down the left and toolbar along the bottom.

LXDE Desktop

Next thing was to confirm I had network connectivity, I opened up Midori, which is one of the configured browsers, and navigated to The Codeproject and success, it loaded up fine and I also managed to log in, and then posted a message on the site.

Image 7

Setting up Remote Desktop Access

Having to set up a second display with a additional keyboard and mouse, or having to swap over displays can be a pit of a pain. Not everyone has a spare display/mouse/keyboard lying around so being able to Remote Desktop onto the RasPi is essential.

Fortunately this is extremely easy to do.

After installing your system and getting your network working, from a terminal prompt enter the following command: sudo apt-get install xrdp

Image 8

You will see the software install and when you receive the "Done" message, we need to confirm that the RDP server will be active on a power up/reboot. To do this simply reboot the RasPi (by pulling the power or doing a CTRL-ALT-DEL).

The system will reboot and you should see the XRDP Server running message and the IP-Address that is listening for connections.

Image 9

You can now use a remote desktop client to access the RasPi. The Windows Remote Desktop works fine and simply enter the IP-Address of the machine and your connection will be established. You will be presented with a login prompt on the XRDP Server.

Image 10

Enter your normal RasPi username/password combo and you will be presented with a desktop session.

Image 11

If you are not sure what the IP-Address of the RasPi is, or you missed the messages on the screen you can use the ifconfig command at the terminal to list the available interfaces and their associated addresses.

Point Of Interest

Watch your power! I had some initial problems with the usb keyboard I had attached. The keyboard was backlit and also had an lcd display and usb hub built in. This took too much power and caused some problems. I purchased a cheap wireless Logik mouse/keyboard combo that has one of those tiny usb receivers. Works a treat and also the single receiver can handle both the keyboard and mouse, keeping one of the USB ports free.

Summary

Well that has been a very short 'get it going' intro to the Raspberry Pi. Just have to start to see what else I can do.

References

History

  • 13th September 2013 - V1.2 Added Remote Desktop info. (Meant to add this ages ago, but where did the time go!
  • 20th July 2012 - V1.1, Added additional connector detail
  • 19th July 2012 - V1.0, First submission of article

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
Scotland Scotland
I have been working in the Oil & Gas Industry for over 30 years now.

Core Discipline is Instrumentation and Control Systems.

Completed Bsc Honours Degree (B29 in Computing) with the Open University in 2012.

Currently, Offshore Installation Manager in the Al Shaheen oil field, which is located off the coast of Qatar. Prior to this, 25 years of North Sea Oil & Gas experience.

Comments and Discussions

 
GeneralMy vote 5 * * * * * Pin
Hussain Patel8-Aug-16 17:57
professionalHussain Patel8-Aug-16 17:57 
GeneralRe: My vote 5 * * * * * Pin
DaveAuld8-Aug-16 21:21
professionalDaveAuld8-Aug-16 21:21 
QuestionRaspberry Pi - uses for ... Pin
kaspencer16-Sep-13 6:58
kaspencer16-Sep-13 6:58 
AnswerRe: Raspberry Pi - uses for ... Pin
DaveAuld16-Sep-13 8:02
professionalDaveAuld16-Sep-13 8:02 
Questionbest beginners PI Article around Pin
bryce15-Sep-13 13:58
bryce15-Sep-13 13:58 
AnswerRe: best beginners PI Article around Pin
DaveAuld16-Sep-13 8:02
professionalDaveAuld16-Sep-13 8:02 
GeneralMy vote of 5 Pin
Marco Bertschi13-Sep-13 5:17
protectorMarco Bertschi13-Sep-13 5:17 
QuestionWin 32 DiskImager crashes on Win 8 x64 Pin
Marco Bertschi29-May-13 8:53
protectorMarco Bertschi29-May-13 8:53 
AnswerRe: Win 32 DiskImager crashes on Win 8 x64 Pin
DaveAuld3-Jun-13 9:34
professionalDaveAuld3-Jun-13 9:34 
GeneralRe: Win 32 DiskImager crashes on Win 8 x64 Pin
Marco Bertschi3-Jun-13 23:16
protectorMarco Bertschi3-Jun-13 23:16 
QuestionMedia Center? Pin
Marco Bertschi16-May-13 22:02
protectorMarco Bertschi16-May-13 22:02 
AnswerRe: Media Center? Pin
DaveAuld16-May-13 22:38
professionalDaveAuld16-May-13 22:38 
GeneralRe: Media Center? Pin
Marco Bertschi22-May-13 22:16
protectorMarco Bertschi22-May-13 22:16 
GeneralRe: Media Center? Pin
DaveAuld23-May-13 2:29
professionalDaveAuld23-May-13 2:29 
GeneralMy vote of 5 Pin
Kanasz Robert13-Mar-13 3:20
professionalKanasz Robert13-Mar-13 3:20 
QuestionAnybody Tried to use the GPIO Port? Pin
glennPattonWork327-Aug-12 22:21
professionalglennPattonWork327-Aug-12 22:21 
AnswerRe: Anybody Tried to use the GPIO Port? Pin
DaveAuld28-Aug-12 10:40
professionalDaveAuld28-Aug-12 10:40 
GeneralRe: Anybody Tried to use the GPIO Port? Pin
glennPattonWork328-Aug-12 22:04
professionalglennPattonWork328-Aug-12 22:04 
GeneralWireless Solutions Pin
Patrick Harris9-Aug-12 2:21
Patrick Harris9-Aug-12 2:21 
GeneralRe: Wireless Solutions Pin
John B Oliver12-Aug-12 12:08
John B Oliver12-Aug-12 12:08 
QuestionAwesome job Pin
Mike Hankey1-Aug-12 13:00
mveMike Hankey1-Aug-12 13:00 
GeneralMy vote of 5 Pin
Dr Bob23-Jul-12 11:29
Dr Bob23-Jul-12 11:29 
Very helpful contribution for us devoted tinker types! Let us know if you get the win8 version working!
GeneralNice article. Pin
Member 428156623-Jul-12 8:51
Member 428156623-Jul-12 8:51 
QuestionDebian version upgrade?? Pin
glennPattonWork323-Jul-12 6:07
professionalglennPattonWork323-Jul-12 6:07 
AnswerRe: Debian version upgrade?? Pin
DaveAuld23-Jul-12 8:52
professionalDaveAuld23-Jul-12 8:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.