44
MOBILE RASPBERRY PI presented by Giorgio Natili MOBILE TEA #5 ROME, 10 JULY 2013 (WAT? It's raining again?!)

Mobile raspberry pi

Embed Size (px)

Citation preview

Page 1: Mobile raspberry pi

MOBILERASPBERRYPI

presentedbyGiorgioNatiliMOBILETEA#5

ROME,10JULY2013(WAT?It'srainingagain?!)

Page 2: Mobile raspberry pi

Aboutmee-mail:[email protected]

twitter:@giorgionatiliblog:webplatform.io(comingsoon!)

community:codeinvaders.net

Page 3: Mobile raspberry pi

Agenda• WhatisWebRTCandwhatwecandowithit

• Whatislibjingle• ExplorethelibjingleGYPfiles

• MakeabuildforiOS• Demo

Page 4: Mobile raspberry pi

WHATISWEBRTC

Page 5: Mobile raspberry pi

WhatisWebRTC• AccordinglytogoogleWebRTCisanewwayyodorealtime

communicationonthewebwithoutusinganyplugin.• WebRTCisafree,openprojectthatenableswebbrowserswith

Real-TimeCommunications(RTC)capabilitiesviasimpleJavascriptAPIs.

• WebRTCAPIareavailableinChrome24+,Firefox22+andOpera12+.

• Don'tconfuseWebRTCAPIandthethe<device>API.

InternetExplorer

Page 6: Mobile raspberry pi

InternetExplorerWhat'saboutourgoodfriendIE?• It'sunclearhowandwhenthesupportwillbeavailable• SofaryoucanuseChromeFrametosupportWebRTC(moreinfoabouttheChromeFrameextensionareavailableontheofficialwebpageoftheprojectdevelopers.google.com/chrome/chrome-frame/)• Youguess?Microsoftisworkingonitsownstandard:)

Page 7: Mobile raspberry pi

Modela/Modelb-Theethernetportisavailableonlyonmodelb

-Themodelahasonly256mbofmemory(SDRAM)-ThemodelbhasadualUSBconnector

-Alltheotherfeaturesarethesameinmodelaandb-Adetalidcomparisonisavailableonelement14

Page 8: Mobile raspberry pi

Modelbcomponents

Page 9: Mobile raspberry pi

DidacticalUsage-Generalcomputerusage

-Programming(python,java,etc.)-Understandhardwarecomponents

-LinuxandBash

Page 10: Mobile raspberry pi

PracticalUsages-MediaCenter(HDMI)

-Electronics(micro)controller-Surveillancesystems(i.e.cameramodule)

-ArcadeGameCoffeeTableusingMAME-Supercomputers(attheUniversityofSouthamptonlinkedup64

RaspberryPis)

Page 11: Mobile raspberry pi

Performances-AttheheartoftheRaspberryPiisthesameprocessoryou

wouldhavefoundintheiPhone3GandtheKindle2-ThereisastandardRCA-typejackthatprovidescomposite

NTSCorPALvideosignalsinadditiontotheHDMIoutput-There’snoharddriveonthePi,everythingisstoredonan

SDCard

WhereandHowto

Page 12: Mobile raspberry pi

WhereandHowtoGetIt?

-PremierFarnell/Element14-RSComponents

-EgomanTechnologyCorp-RobotItaly

Thenyouhavetobereallypatient,waitandprayitwillarriveintime...

Page 13: Mobile raspberry pi
Page 14: Mobile raspberry pi

ExploretheBoard

Page 15: Mobile raspberry pi

Theprocessor

Page 16: Mobile raspberry pi
Page 17: Mobile raspberry pi
Page 18: Mobile raspberry pi
Page 19: Mobile raspberry pi
Page 20: Mobile raspberry pi
Page 21: Mobile raspberry pi
Page 22: Mobile raspberry pi

RASPBERRYPERIPHERALS

Page 23: Mobile raspberry pi

WhatYouCanConnect

-Youcanconnectperipheralsusingthepinsontheboard-GeneralPurposeInputandOutput(GPIO)

-P2andP3headers-CameraSerialInterface(CSI)-DisplaySerialInterface(DSI)

Page 24: Mobile raspberry pi

Selectalwaystheproper

peripherals!http://elinux.org/RPi_VerifiedPeripherals

Page 25: Mobile raspberry pi

InternalPowerHub

Page 26: Mobile raspberry pi

BatteryPack

Page 27: Mobile raspberry pi

Keyboard&TouchpadMouse

Page 28: Mobile raspberry pi

ChoosetheRightDistribution

Page 29: Mobile raspberry pi

RaspbianThe“officiallyrecommended”officialdistributionfromthe

Foundation,basedonDebian

Page 30: Mobile raspberry pi

AdafruitItisaRaspbian-baseddistributionthatincludestoolsanddriversuseful

forteachingelectronics

Page 31: Mobile raspberry pi

XbianItisadistributionbasedonRaspbianforuserswhowanttousetheRaspberryPiasamediacenter(seealsoOpenELECandRaspbmc)

Page 32: Mobile raspberry pi

ArchLinuxItisadistributionspecificallytargetsARM-bssedcomputerssoit'sthe

earlyadoptedRaspberryPiOS

Page 33: Mobile raspberry pi

PreparetheSDCard

Page 34: Mobile raspberry pi

OSDiskImage-Theoperatingsystemisdistributedasadiskimage

-Itisabit-for-bitrepresentationofhowthedatashouldbewrittentotheSDcard

OSX

Page 35: Mobile raspberry pi

OSX-Opentheterminalutility

-df-h,inserttheSDcardandthentypeitagain

-Unmountthecard(diskutilunmount/dev/disk3s1)-Figureouttherawdevicename(replacediskwithriskand

leaveoffthes1)-Usetheddutilitytowritebyteperbytethediskimage

Page 36: Mobile raspberry pi

Windows-DownloadtheWin32DiskImager

(https://launchpad.net/win32-image-writer)-InserttheSDcard

-OpenWin32DiskImagerandselecttheOSimage

Page 37: Mobile raspberry pi

RuntheRaspberrypi

Page 38: Mobile raspberry pi

StepbyStep-PlugtheSDcardintothesocket-PluginanUSBkeyboardandmouse

-PlugtheHDMIoutputintoyourTVormonitor-Pluginthepowersupply

-Crossthefingersandhavefun!!!

Page 39: Mobile raspberry pi

TroubleShooting-ChecktheSDcardiscorrectlydocked

-ChetyouareusingthecorrecttypeofSDcard-Checkifthecardiswriteprotectenabled

TheConfigScreen

Page 40: Mobile raspberry pi

TheConfigScreen1/2

-Expandrootfs,enlargethefilesyteminordertousethewholeSDcard

-Overscan,enableitifthetextrunoffthescreenonanhighdefinitionmonitor

-Keyboard,setupthekeyboardstyle(thedefaultisUK)-Password,chosesomethingstrongerthanraspberry

-ChangeLocaleTheConfigScreen

Page 41: Mobile raspberry pi

-ChangeLocaleTheConfigScreen2/2

-Memorysplit,changetheamountofmemoryusedbytheCPUandtheGPU

-Overclock,speeduptheprocessorspeedto1000Mhz-SettheTimezone

-SSH,switchon/offthesecureshellserverthatallowsyoutorunheadless

-Desktopbehavior,settingupnoyourunitasCLILinux(commandline!)

Page 42: Mobile raspberry pi

(commandline!)

Don'tupdatetheOSthefirsttimeyourunthedevice!!!

PreInstalled

Page 43: Mobile raspberry pi

PreInstalledSoftware

-Midoribrowser(optionallyNetSurforDillo)-Omxplayer

-LeafpadandNano-BourneAgainShell(BASH!)

-apt-get(e.g.sudoapt-getinstallscrot)

Page 44: Mobile raspberry pi