Dogwood Apps Rasberry PI User manual


RASPBERRYPIFORBEGINNERS

©2013,DogwoodApps
RaspberryPi®istheregisteredtrademarkofRaspberryPiFoundation,UnitedKingdom.
Importantnote:AuthorhasnoaffiliationwithRaspberryPiFoundation,UnitedKingdom.
Allrightsarereserved.
Alltrademarkholdersareownersoftheirrespectivetrademarks.
Thecopyrightofthise-book,aswellasthemattercontainedherein(includingillustrations),restswiththeauthor(s).No
personshallcopythenameofthebook,itstitledesign,matter,andillustrationsinanyformandinanylanguage,totally
orpartially,orinanydistortedform.Anybodydoingsoshallfacelegalactionandwillberesponsiblefordamages.
CONNECTWITHUSONFACEBOOK!
ComeandjoinourFacebookpagewhereyouwillbethefirsttoknoweverythingaboutourupcomingtitles.Onour
page,wewillalsosharepromotionalinformationforourcurrentebooks.
Thisisalsoagreatplacetoaskusanyquestionsyoumayhaveconcerningourebooksaswell.
JoinourFacebookpagehere: https://www.facebook.com/DogwoodApps

Contents
Chapter1
WhatisRaspberryPi?
Chapter2
ModelsofRaspberryPi
Chapter3
WhatDoYouNeedtoGetRaspberryPiUpandRunning?
Chapter4
InstallingtheOSonRaspberryPi
Chapter5
OtherOSesforPi
Chapter6
ProgrammingYourPiUsingScratch
Chapter7
ArduinoandRaspberryPi
Chapter8
AwesomePiUses
Chapter9
RaspberryPiasStandardProductivityComputer
Chapter10
UsingRaspberryPitoDriveaMultimediaCenter
Chapter11
UsingRaspberryPiforTime-LapsePhotography
Chapter12
UsingRaspberryPiasFMTransmitter


Chapter1
WhatisRaspberryPi?
RaspberryPiisanaffordable,creditcard–sized,single-boardcomputer.RaspberryPiwas
developedforcomputerscienceeducation.
This flagship product has been developed by Raspberry Pi Foundation, a charitable
organizationbasedinUnitedKingdom.
Features
RaspberryPiisasingle-boardcomputerthatisaboutthesizeofacreditcard.Itusesa32-
bitcapableARMprocessorandFedorafromLinuxasitsdefaultoperatingsystem(OS).
Itcanbeprogrammedwithlanguages,suchasPython,thatwillcompilewithARM.

RaspberryPiisasystemonachip(SoC).Ithasconnectionports.
You canuse a Raspberry Pifor basic functionslike watching HD videos, working with
spreadsheets,andeditingdocuments.Inotherwords,youcandoeverythingthatanormal
desktopcomputeriscapableofdoing.
InChapter2,wewilllearnaboutthedifferentversionscurrentlyofferedoftheRaspberry
Pi.



Chapter2
ModelsofRaspberryPi
RaspberryPihastwomodels.Surprisingly,bothmodelsareavailableatapocket-friendly
price.
Model-A costs $25 and Model-B costs $35, excluding local taxes and shipping and
handlingcharges.Also,thisdoesnotincludechargesofpowersupplyandSDcard;you
havetobuythemseparately.
DifferencebetweenModel-AandModel-B
Model-A Model-B
Price $25 $35
SoC BroadcomBCM2835
CPU 700MHzARM1176JF-SCore
GPU VideoCoreIV,OpenGLES2,0,1080p30FullHDHP
H.264
Memory 256MB 512MB
USB2.0ports 1 2(integrated)
Videooutputs CompositeRCA,HDMI
Audiooutputs 3.5mmjack,HDMI
Onboardstorage SD/MMC/SDIOcardslot
Low-levelperipherals GPIOpins,SPI,I2C,UART
Onboardnetwork None 10/100wiredEthernet
Real-timeclock Noclockorbattery
Powerratings 500mA(2.5W) 700mA(3.5W)
Powersource 5VviamicroUSBorGPIOheader

Size 85.60mm 53.98mm
SupportedOSes DebianGNU/Linux,Fedora,ArchLinux
WheretoBuy?
Raspberry Pi Foundation has made exclusive distribution arrangement with Farnell and
RS;onecanbuyanymodelofRaspberryPifromthesedistributors.Resellersdosellon
AmazonandeBay.
ResellerssellRaspberryPiwithdifferentoffers,sopricesmayvary.
RaspberryPiModel-A

RaspberryPiModel-B



Chapter3
WhatDoYouNeedtoGetRaspberryPiUpandRunning?
Raspberry Pi is not preloaded even with important peripherals like SD card and power
supply cable unless you purchase Pi from a reseller and pay extra for these essential
peripherals.
In this chapter, you will learn about the essential peripherals that are required to get
RaspberryPiupandrunning.
First, select a model of Raspberry Pi that meets your needs, because each model of
Raspberry Pi is designed to perform different functions. Now let’s take a look at the
peripheralsrequiredtostartusingyourRaspberryPi.
SDcard
RaspberryPiOSisstoredonaSDcard.IfyouhavepurchasedfromRS,youwillgetaSD
card.Incaseifyouhavepurchaseditfromelsewhere,youcanpurchasetheSDcardfrom
Amazonorfromanyothernearestelectronicgadgetsoutlet.
Requirements:SDHCmemorycard(4GBormore)
SDHCcard
Powersupply
YouwillneedapowersupplyforyourRaspberryPi.YoucanpurchaseitfromAmazonor
fromanyothernearestelectronicgadgetsoutlet.
Requirements:MicroUSBpowersupply(5V,1.2mA[ideal],butneedstobe700mA)

ChargerforPi
HDMIcable
RaspberryPihasoneHDMIportfordigitalvideoandaudioconnection.Youwillneedto
purchaseaseparateHDMIcapabletoviewthePionanHDMImonitorortelevision.
HDMIcable
Important note: Raspberry Pi does not support VGA analog output. You can use a
converterbutwedon’trecommendusingonebecauseitmaycauseyouissueslater.Using
astraightHDMItoHDMIconnectionisbesttoavoidcompatibilityproblems.

HDMItoVGAconverter
USBkeyboardandmouse
YouneedaUSBkeyboardandamousetoestablishuserinterfaceforyourRaspberryPi.
SinceRaspberryPicomeswithlimitedports,youcanpurchaseaUSBextensionincase
youneedmorethanoneUSBports.
SinceyourPisupportsBluetooth-enabledwirelesskeyboardandmouse,youcanpurchase
themaswell.
Wirelesskeyboard
Internetconnection
UsingyourPi,youcanconnecttoInternetinmanyways.YoucanenjoywirelessInternet
via a USB–Wi-Fi dongle, and if you would like to connect with high-speed wired
connection,thenyoucanuseEthernetcable.

USBmodem
Remember,EthernetportisonlyavailableinModel-B.
Ethernetcable
BeforeyouinstallanOS,makesureyouhaveassemblednecessaryperipheralswith
yourPi.
Operatingsystem(OS)
OSisthesoulofyourRaspberryPi.SotogetyourRaspberryPiupandrunning,youneed
toinstallFedorawhichisthestandarddefaultLinuxdistributionusedastheOSforPi.
MostofthedistributorssellPiwithpreinstalledOS.But,ifincaseyouwanttoinstallthe
OSyourself,thenreadChapter4.


Table of contents