Introduction: All-in-One Raspberry Pi Getting Started Guide

Raspberry Pi, one of the most ingenious invention for makers and hackers. Before we get started into the nitty gritty details of getting it setup, we first must ponder over the question that what the Raspberry Pi actually is?

Raspberry Pi is a linux based single board computer in a small form factor capable of fast processing (compared to Arduino) and able to interact with the physical word through inputs and outputs. It has built in hardware for USB, HDMI, Ethernet etc providing great connectivity options and ease of use.

In this instructable i will focussing on the very basics including the following:

  1. Understanding the Pi
  2. Building a sturdy base
  3. Setting up the Pi
  4. Installing NOOBS
  5. Wifi Setup
  6. Picamera Guide

If you found my ible helpful or up to the mark, please vote for me.

Step 1: About the Pi

The Raspberry Pi is the size of a credit card. It is developed by the Raspberry Foundation in UK. The first Pi series was commercially launched in 2012 after which the design was improved and upgraded in the following years.

There are two distinct and popular designs, Model A and Model B. Both have different versions with different Specifications but the design and features are common in all the version.

Above all the Pi is ridiculously cheap. Starting from a mere $20 and going up to $45 according to the version, it truly is a dream come true for makers on a budget.

General Specifications:
700 Mhz or 900 Mhz ARM Processor
256 MB or 512 MB or 1 GB Ram
Dual Core Videocore GPU
SD Card or MicroSD Card slot
2 to 4 USB Ports
HDMI Port
Micro USB Power Jack
3.5 Audio Jack
10/100 Ethernet Jack

There are some key interfaces i will talk about:

  1. GPIO Connector
  2. USB Ports
  3. HDMI Port
  4. Ethernet Port
  5. Display Port
  6. Camera Port
  7. Composite Video Jack
  8. Power Connector

1. GPIO Connector: The GPIO Connector on the Pi is a male header which can be used to interface hardware with the Pi. It has 8 and above GPIO(General Purpose Input Output) pins on which led's etc can be connected. These pins are very sensitive and can only handle small currents.

2. USB Ports: The Pi has 2 to 4 USB ports. They work the same way as any other USB port and can be used to connect Mouse, Keyboard, Wifi dongle, Flash Drive etc.

3. HDMI Port: The HDMI port is used to connect the Pi to a display. It is pretty straightforward but may require some configuration. I will delve into that later on.

4. Ethernet Port: The ethernet port is used to connect the Pi to an internet connection. Its just plug and play. Although Wifi is much more convenient hence i will tell you about installing that as well.

5. Display Port: The display port is a ribbon connector port used to connect the Pi to its dedicated LCD display which is available in the market.

6. Camera Port: This camera port is also a ribbon connector port used to connect the PI camera to the Pi. I will show you how to do that later on.

7. Composite Video Jack: this is used to connect the Pi to a composite video display. It requires some configuration to it started.

8. Power Jack : The Pi is powered using a Micro USB Adapter of 5V with minimum current capacity of 500 mA but its better to use a good quality mobile charger rated at 1 A for smooth performance.

Step 2: Materials for Getting Started

These are the absolute basics required without which the Pi cant be setup

  1. Raspberry Pi (Obviously)
  2. USB Keyboard
  3. USB Mouse
  4. HDMI Monitor + HDMI Cable OR VGA Monitor + VGA to HDMI Converter + VGA Cable
  5. 5V Micro USB Power Adapter
  6. 8GB or above Micro SD Card
  7. Card Reader
  8. Computer with Internet Connection
  9. Ethernet Cable

These are the addons i will explain in my tutorial

  1. Wifi Dongle
  2. Raspberry Pi Camera Module
  3. Ethernet Cable

Step 3: Base Building

Well at this point I guess you have a Pi in your hand. I mean a Raspberry Pi. :P So the Pi is small and when you connect all the cables it goes out of control. Its hard to keep it at one place. This can be frustrating and dangerous hence before starting to work on it we will mount the Pi on a plexiglass base.

Materials

  1. Piece of plexiglass
  2. Screws x 4
  3. Nuts x 12

To build the base cut the plexiglass if required using the score and snap technique. Mark the center of the plexiglass and place the Pi in the center. Mark the four holes on the base using a sharpie. Drill holes using a drill bit of the right size according to your screws. You may need to run the drill through the holes in the Pi as well. Don't use larger diameter screws as it may damage the Pi. Place the screws in the four holes and nut it down. Then add more nuts a little higher. Place the Pi and add nuts above it to clamp everything down.

Step 4: Installing the NOOBS on SD Card

We will be installing the Linux OS in the SD card.

First of all we will have to download the Linux Distribution named NOOBS (New Out of The Box Software) from the following link

ZIP File

Torrent

SD card should be 8GB or above. For Model A standard SD Card and for Model B Micro SD Card.

Follow these instructions for proper installation of NOOBS on the SD card

  1. Format an SD card that is 4GB or larger as FAT. See instructions on how to do this below.
  2. Download and extract the files from the NOOBS zip file.
  3. Copy the extracted files onto the SD card that you just formatted so that this file is at the root directory of the SD card. Please note that in some cases it may extract the files into a folder; if this is the case then please copy across the files from inside the folder rather than the folder itself.
  4. On first boot the "RECOVERY" FAT partition will be automatically resized to a minimum, and a list of OSs that are available to install will be displayed.

Formatting the SD Card

Use the following software to format the SD Card. Install it on your system following the instructions.

SD Formatter for Windows

SD Formatter for Mac OS

Step 5: Making All the Connections

Now you have to set up the Pi. It is all pretty straightforward.

  1. First connect the USB Keyboard and USB Mouse into the USB ports of the Pi.
  2. Then connect the HDMI Cable or HDMI to VGA adapter depending on the monitor you are using.
  3. Next plug in the (Micro) SD Card into its slot. Its contacts will be facing upward when you plug it in while the Pi is upright.
  4. Lastly connect the power adapter into the power connector.

Step 6: First Boot Up and Installation of Raspbian

Now the first boot is simple. As the Pi is powered you will see the display showing you a menu of OS to choose from. You will choose the first option which is Raspbian and click on Install. And then Ok on the prompt box. The setup will work its magic and install the OS. So sit back and be patient as it will take about 10 to 15 minutes. You can read the information being displayed on the setup window to get insight into what is Raspbian and how you go about it.

Once installed it will tell you that OS is installed. After that you will click OK and then reboot the Pi by removing the power and reconnecting it. It will boot up and after going through some initialization process it will show the Configuration Setup. There you will select the third option and select Boot to Desktop.

Then again reboot the Pi like before. You may not get booted into the Graphical Interface the first time. If that is the case then Reboot again. I got it in the third try while making this Ible.

So you are done. You have successfully installed Raspbian on you Raspberry Pi

Step 7: Inside the Raspbian

Well I am not much experienced into the details of the Raspbian and how it works. But there are some simple games and softwares pre-installed for you.

The most basic is the command line interface from where you can change your Pi such as activating Outputs or changing settings.

Then there is Python which is used for programming and developing softwares. It has a lot of depth and you can really learn a lot from it. There are like a gazillion tutorials on Instructables which show you how to write softwares and stuff.

There is an internet browser allowing you to browse the internet. You can also connect a flash drive and view stuff from it including documents, images etc.

Go to this link for more info.

Step 8: Connecting Your Pi to the Internet

Well you need to connect your Pi to the internet using ethernet cable before you can proceed to installing the Wifi. But you must be thinking that it is very difficult to connect the Pi to ethernet because your router is located somewhere remote. Well i have a solution for that. This is my very own little hack for this problem and i think you will find it very helpful.

What we are going to do is that we will use our laptop's ethernet port to share our Wifi connection with the Pi. For that you will need to go to Control Panel on you laptop and click on Network and Internet. Then open the Network and Sharing Center. On the left menu click change adapter settings.

Now you will right click your wireless adapter which i assume is connected to a network. Go to the sharing tab and check both the lines. Click Ok to save the settings.

Connect the Pi and your Laptop using a standard ethernet cable and you should see the Pi automatically connecting to the internet.

Now you can proceed to making this connection wireless.

Step 9: Upgrade You Raspbian

Now you will have to upgrade you Raspbian. This is not mandatory but if you want you Pi to function properly, this is a must. Its pretty simple. Once you have connected you Pi to the internet, check your internet connection using the browser.

After confirming that the internet is connected, you will open the terminal and type in the following command

"sudo apt-get update"

and press enter. It will start to work and download all the required updates. Then you will type in the following command

"sudo apt-get upgrade"

and then press y and enter when asked. It will do all the upgrades required. You need to upgrade because in the new version there is a larger support for Wifi dongles. Bugs have been fixed and overall performance is enhanced. So all in all you should not miss this step. After rebooting check the version.

You can check your version with the following command

"uname -a"

It will only show a change once you reboot your Pi.

Step 10: Wifi Setup

First what you need to do is visit this page to see the list of supported Wifi dongles. The list is pretty elaborate but i would recommend you to buy a dongle which is completely compatible and doesn't require additional drivers as those are not easy to install. Also look for a adapter that doesn't require additional powered USB Hub.

I bought the TP Link TL-WN725 with the Realtek RTL8188CUS.

Now that you have upgraded everything installing the dongles should be a breeze. If you havnt it will be next to impossible to figure it out.

So all you have to do it plug in the Dongle and reboot the Pi from the Menu. Once rebooted it will automatically install the drivers and show the available connection when you click on the double computer icon. Select the desired network and connect to it by entering the password. It will connect and now you can browse the internet.

So a bit of history. When i first bought the dongle, it wasn't supported by Raspbian but in the latest upgrades they have added its support and now i can use it very easily.

Step 11: Camera Setup

I recently won a contest on instructables and one of the prizes was the Raspberry Pi Camera so i thought to include it in my ible too. I am only going to show you the basics of getting started with the Pi Camera.

First you have to enable the camera. Open the terminal and type "sudo raspi-config" and press enter. Select the Enable Camera option and select Enable.

Turn off the Pi and connect the camera. Lift the base one the Pi and insert the ribbon with the contacts facing the HDMI side. Push the base back in to fit everything nice and snug.

Turn on the Pi and open Python 2 from the Menu. Type and enter the following comands

"import picamera"

"camera = picamera.PiCamera()"

Then you will see the red light on the camera to go on.

Use this command to preview the camera feed.

"camera.start_preview()"

and this to stop the feed

"camera.stop_preview()"

There are a whole range of commands you can use to change setting and take images. I wont go into their detail but you find them on this link.

Step 12: Concluding Remarks

Well I hope after going through this guide you will have much ease to set up your Pi. Let me remind you that this is for the beginners getting started with the Pi. I just wanted to provide an easy guide to follow to save a lot of time which I spent on figuring out problems in the most basic setup.

Thank you for viewing and do comment any problems or point out any mistakes because like I said, I am not a Pro in the Pi myself.

If you found my ible helpful or up to the mark, please vote for me.

Comments

author
PradeepG30 (author)2017-01-09

Very straight forward,Thank you.

author
wEiRd LOAD (author)2016-03-06

can I program a chip with a pi?
specifically the Atiny85?
I want to build the lucid dream mask. on ible.

author
BabarS1 (author)2015-09-23

brother i want to connect raspberry pi with my Dell Crt Monitor but blank screen appear when i boot the raspberry pi kindly help me.

author
bjkayani (author)BabarS12015-09-23

connect the sd card with you laptop and find a text file named "config" and uncomment a phrase. it will be some thing like "hdmi safe mode= ...." something like that. remove the "#" sign from both sides. save and try

author
plusco (author)2015-09-07

Great post!

author
Stew2 (author)2015-09-05

Good ible! :)

Not related to your article, but what brand of HDMI to VGA adapter are you using? I bought one off of Amazon for $10 and it would only work for about 5 minutes, then the screen would go all artifacty and black out on me... Lol, I ended up buying an HDMI monitor (for about 4 times the cost of the pi).

author
Raphango (author)2015-09-03

Great!! =D

As the time passes, you could add more things! ;D

author
NashA2 (author)2015-09-02

The cheapest Single Board PC you'll find anywhere. I have 5 of these puppies and is probably the absolute best way to learn Linux!! And if you are a hardware person, this will keep you busy for a good while. Remember an idle processor is the devil's playground. Happy Building!!

author
bjkayani (author)NashA22015-09-02

that is very true. there are endless possibilities.

author
JacoG1 (author)2015-09-01

Good guide. I like your perspex base idea. Never thought of that. Getting a Pi case is also a good idea. Also, get a cordless keyboard/mouse combo that share a single dongle. That way you gain a USB port and you can sit further away if you use you TV as a monitor.

You can add the login procedure and startx command to you guide as well. For many people the RPi is their first exposure to Linux.

author
bjkayani (author)JacoG12015-09-02

Thanks. The combo is a good idea. Well i could but it is not required if you follow the method i have. Nevertheless it is also something people should know.

author
rocky_pty (author)2015-09-01

inspired me to buy one

author
niccarpy (author)rocky_pty2015-09-01

They are awesome little gadgets!

author
bjkayani (author)rocky_pty2015-09-01

Awesome.

author
anjumali (author)2015-09-01

SUPERB

author
Onixgato (author)2015-09-01

Thanks. I am interested in audio applications and kinda was scared of getting a Pi and then screwing things up. Now I feel safe getting one and using your ible. I'll report when I actually do something with it.

author
bjkayani (author)Onixgato2015-09-01

That is great news. Dont forget to hit the vote button. :P

author
rodrunner (author)2015-09-01

Nice. I bought recently a Raspberry Pi 2.

I would add to your list a KVM switch so that you can share the same Monitor, Mouse and Keyboard between your desktop and your Rasp.

author
bjkayani (author)rodrunner2015-09-01

Good idea. Thanks

author
embeddedmicro (author)2015-09-01

Last time I checked the Internet Connection Sharing did not allow dns service to flow through from the router to the pi to give it a TCP/IP address. So this is dealt with by either running a DNS service on the Laptop for the 100BT Lan connection or running per this article.

https://anwaarullah.wordpress.com/2013/08/12/sharing-wifi-internet-connection-with-raspberry-pi-through-lanethernet-headless-mode/

Additionally Meltwater Direct Connect article:

https://pihw.wordpress.com/guides/direct-network-connection/

Also W8.1 (W10?) do not make any of this easy. Kaspersky does not allow internet connection sharing. There is considerable to and fro on most forums regarding this point. Best thing is just do a direct wire connect to the router if in doubt. I have done this extensively and used anwaarullah's approach with W7Pro and Norton. The cool thing to do instead of a KVM switch a HDMI to HDMI or Digital cable and use the monitor to switch from one source to the other.

author
SirMac27 (author)2015-09-01

I got one and will be making a PiBoy very very soon!

author
gopalchandnani (author)2015-09-01

thank you

author
rsingh33 (author)2015-09-01

very interesting for students for doing projects

author
bjkayani (author)rsingh332015-09-01

Thank you. Please vote for me

author
SamJ13 (author)2015-09-01

Loved the guide. Inspired me to buy my first Pi tonight!

author
bjkayani (author)SamJ132015-09-01

Thanks. Please vote for me.

author
prabhulingam (author)2015-08-31

hi,

i am new to repberry pi so i have a few questions. if we use tor browser on rapberry pi, will the ISP be able to view the websites being visited by us

author
bjkayani (author)prabhulingam2015-08-31

I dont think so as tor browser will use proxy to browse so technically it they shouldnt.

author
caperjack (author)2015-08-30

great job , didn't read it all ,but you said noobs is a Linux distribution .when actually it is a sot of bootloaded tool with multiple different linux distributions, but only one can be installed at a time on the same sdcard ,, I use noobs on one of my pi's but use Berryboot on the other ,I can install multiple version of raspian and other Linux os and media players like openelec on the same microsd card ,choose what one you want to use on startup .. great job and good luck I will vote for you also

http://www.berryterminal.com/doku.php/berryboot

author
bjkayani (author)caperjack2015-08-30

Thank you for the correction. I will edit it. Thanks

author
AbigailE2 (author)2015-08-30

This looks amazing! It's really detailed and should help me out a lot when I do Raspberry Pi at school :)

author
Saiyam (author)2015-08-29

Omg!! This guide is gonna be so helpful for me. Thank you so much for this awesome instructable. I just wanted a guide like this :)

I had also won a prize along with you which included a gopigo kit and a pi along with some other shields and pi camera. But the problem is that the prize is delivered in my relatives' house and I am still dyeing to see it. The possibilities with this thing are endless!

author
Saiyam (author)Saiyam2015-08-29

P.S.- Voted for you!

author
bjkayani (author)Saiyam2015-08-29

Thanks Man.

author
Northrrn_Joe (author)2015-08-29

I love my raspberry!

About This Instructable

49,230views

962favorites

License:

Bio: I am an 19 year old DIY ist and Tinkerer with a deep interest in the field of robotics, electronic and cooking. I am skilled ... More »
More by bjkayani:$2000 Quality Prints From a $200 Printer : an Upgrade Guide for the Anet A8 3D PrinterBed Table from a PalletLaser Cut Door Mat
Add instructable to: