SlideShare una empresa de Scribd logo
1 de 26
Descargar para leer sin conexión
Introduction to the
 Raspberry Pi board

Thierry GAYET – 22/10/2012
Agenda
• A Little history
   
• More device specifics

• What a Raspberry Pi  can do for you ?
   
• Other Emerging Embeded Platforms

• Development Options

• Possible live/video demo. 

• Questions
A Little history 
The Raspberry Pi was created by the Raspberry Pi Foundation to
inspire a new generation of children to become programmers.

Foundation trustee Eben Upton, a lecturer at Cambridge at the time,
saw that the skillset of applicants to CS courses had been steadily
decreasing for a number of years. This is mostly due to the way that
education has been geared more towards using office applications and
less on understanding the hardware.

The Debian images available have lots of tools for both kids and adults
alike. so almost any age 4-50+ can enjoy learning about programming
and electronics.
Price

Model A - $ 25

Model B - $ 35

Why so cheap ?

      SoC - System on a chip, a computer on a single   low voltage chip

      Linux OS
More device specifics
Model A
256Mb RAM
1 x USB
no Ethernet

Model B
256Mb RAM
2 x USB
1 x Ethernet


Both models have a
700MHz Armv6 (Arm11)
Quad-Core Graphics chip



                                     Diagram of Model B
What a RaspberryPi can do for you
• Xbmc @ Full 1080p HD

• Linux desktop - just add keyboard and mouse.

• Linux low powered server (fileserver etc..)

• Attach webcam and monitoring software

• Interface with electronics from
  leds, solenoids,switches,mosfets etc..

• Almost anything else you can imagine
Other Emerging Embeded Platforms

• VIA APC is powered by a VIA WonderMedia 8750 800 MHz ARM11
  processor, 512MB of DDR3 memory, and 2GB of flash storage. The
  chip supports 1080p HD video playback, H.264 video encoding, and
  OpenGL ES 2.0 graphics.

• Android Mk802 A10 AllWinner Mini Computer
  The little computer looks like a portable storage device, but it has a
  1.5 GHz Allwiner A10 processor, 512MB(1Gb spotted) of RAM, and
  4GB of storage. It ships with Google Android 4.0 software

• Beagle Board (1GHZ ARM 7) and Beagle bone (720MHz ARM 7)
  also PandaBoard (all ~$80-$180)
Development Options

• Python (Quick2wire),C(WiringPi), Bash, Basic, etc..

• Scratch
  Geared to students and non-developers

• Various Other Linux environments including
  Aros (Linux based port), Arch, Debian, Gentoo etc..

• Many open-source libraries being ported to arm.

• Cross-compiler tool-chains available.
  (both soft and hard float)
Scratch

The MIT program Scratch is designed to provide an accessible way for
kids to learn about coding.

The program's interface makes it easy to build and change software by
dragging and dropping commands and changing variable values
through simple menus.

The version installed on the Pi comes loaded with a simple car-racing
game. Users can add and remove commands from the game, then
press play and immediately see the effect of those changes - for
instance, tweaking how cars handle or adjusting the animation for car
crashes.
Scratch Example
Quick2Wire (Python GPIO)
quick2wire have released a python api to safely access the gpio pins
from user land. eg. anyone in the gpio group. as well as allowing clean
import and export of pins.

Here’s the code that drives an LED:
from quick2wire.gpio import Pin
from time import sleep

out_pin = Pin(12, Pin.Out)
  for i in range(0, 10):
  out_pin.value = 1
  sleep(1)
  out_pin.value = 0
  sleep(1)
out_pin.unexport()




http://quick2wire.com/
https://github.com/quick2wire/quick2wire-python-api
https://github.com/quick2wire/quick2wire-gpio-admin
 My Raspberry Pi Demo
My demo focuses on input and output from python script through the gpio pins to
some simple electronics components.

This simple demo takes input from a switch
which illuminates a red led to confirm it was
pressed.

using the quick2wire api for python.
when the switch is pressed a counter is
increased by 1 until it reaches 16 at which
point it will reset counter to 0.

the corospoding value of counter at any one
time is then convirted to binary value and
displayed on the 4 green and yellow leds.

eg. counter = 3 bin outpit = 0011 led pin = 0011
 Raspberry Pi Demo
 Raspberry Pi Demo
#!/usr/bin/python3

import time                             # outputs binary reprisentation to 4 leds
import string                           # that matches count.
from quick2wire.gpio import Pin            binvalue = bin(i)[2:].zfill(4)
                                           out_pin4.value = binvalue[-1]
# import pins for output                   out_pin3.value = binvalue[-2]
out_pin1 = Pin(11, Pin.Out)                out_pin2.value = binvalue[-3]
out_pin2 = Pin(13, Pin.Out)                out_pin1.value = binvalue[-4]
out_pin3 = Pin(15, Pin.Out)                time.sleep(.2)
out_pin4 = Pin(16, Pin.Out)
                                        # trap ctrl+c to cleanly unexport pins
# import pins for input                 except KeyboardInterrupt:
in_pin = Pin(7, Pin.In)                    out_pin1.unexport()
                                           out_pin2.unexport()
# init count                               out_pin3.unexport()
count = 0                                  out_pin4.unexport()
                                           in_pin.unexport()
try:
while True:
          # get input value of button
          mybutton = in_pin.value
          if mybutton == False:
             count = count + 1
             # reset at 16
             if count == 16:
                count = 0


                                rpi-count.py @ https://github.com/azmodie/rpi-scripts
 expEYES Project
The expEYES (“experiments for Young Engineers and Scientists”) aims to
provide a low cost platform for experimentation and education in electronics and
physics.

The device has 12 bit Analog I/O, Digital I/O,
time interval measurements, & other features
accessible from Python. It is packaged with a
number of accessories & software which can
be used to perform a large number of
experiments.

For example, the device can be used to study
electromagnetic induction, the conductivity of
water, to measure gravity by time of flight,
alongside many other applications. It aims to
enable anybody to develop new experiments.
http://expeyes.in/articles/54/expeyes-meets-raspberry-pi
Linux distro(s)
http://www.raspberrypi.org/downloads

Raspian “wheezy” : newbies get this one!

Soft-float Debian “wheezy” : for Oracle JVM

Arch Linux ARM : down to the metal

QtonPi : For Qt 5

http://www.raspberrypi.org/quick-start-guide
Play Doom

http://www.sparkfun.com/tutorials/372
Extra
        Item           Price
Raspbery Pi                    $35.00
Keyboard and Mouse             $21.00
Pretty Box                     $14.95
USB Power Supply                $5.95
USB A/MicroB for
Power                           $3.95
HDMI Cable                      $5.95
Ethernet cable                  $3.95
USB Wifi                       $14.95
4GB SD Card                    $11.95
 Connect to HDMI TV            $0.00
Total                     $117.65
Related book(s)
Quick Start is Free:
http://www.raspberrypi.org/quick-start-guide
Buy the book—paper ($12.38) or ebook ($6.60)
Any Questions ?
Any Questions ?

Más contenido relacionado

Destacado

Open Source Creativity
Open Source CreativityOpen Source Creativity
Open Source CreativitySara Cannon
 
Reuters: Pictures of the Year 2016 (Part 2)
Reuters: Pictures of the Year 2016 (Part 2)Reuters: Pictures of the Year 2016 (Part 2)
Reuters: Pictures of the Year 2016 (Part 2)maditabalnco
 
The impact of innovation on travel and tourism industries (World Travel Marke...
The impact of innovation on travel and tourism industries (World Travel Marke...The impact of innovation on travel and tourism industries (World Travel Marke...
The impact of innovation on travel and tourism industries (World Travel Marke...Brian Solis
 
The Outcome Economy
The Outcome EconomyThe Outcome Economy
The Outcome EconomyHelge Tennø
 
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika AldabaLightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldabaux singapore
 
The Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post FormatsThe Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post FormatsBarry Feldman
 

Destacado (7)

Open Source Creativity
Open Source CreativityOpen Source Creativity
Open Source Creativity
 
Reuters: Pictures of the Year 2016 (Part 2)
Reuters: Pictures of the Year 2016 (Part 2)Reuters: Pictures of the Year 2016 (Part 2)
Reuters: Pictures of the Year 2016 (Part 2)
 
The impact of innovation on travel and tourism industries (World Travel Marke...
The impact of innovation on travel and tourism industries (World Travel Marke...The impact of innovation on travel and tourism industries (World Travel Marke...
The impact of innovation on travel and tourism industries (World Travel Marke...
 
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job? Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
 
The Outcome Economy
The Outcome EconomyThe Outcome Economy
The Outcome Economy
 
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika AldabaLightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
 
The Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post FormatsThe Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post Formats
 

Similar a Intro to the raspberry pi board

Introduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIOIntroduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIOKris Findlay
 
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi [Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi Tomomi Imura
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureSyed Umaid Ahmed
 
Raspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your LibraryRaspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your LibraryBrian Pichman
 
Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlPradip Bhandari
 
Raspberry pi pico projects raspberry pi projects
Raspberry pi pico projects raspberry pi projectsRaspberry pi pico projects raspberry pi projects
Raspberry pi pico projects raspberry pi projectsIsmailkhan77481
 
arduino
arduinoarduino
arduinomurbz
 
Got Python I/O: IoT Develoment in Python via GPIO
Got Python I/O: IoT Develoment in Python via GPIOGot Python I/O: IoT Develoment in Python via GPIO
Got Python I/O: IoT Develoment in Python via GPIOAdam Englander
 
Python-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxPython-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxTuynLCh
 
Simple ETL in python 3.5+ with Bonobo, Romain Dorgueil
Simple ETL in python 3.5+ with Bonobo, Romain DorgueilSimple ETL in python 3.5+ with Bonobo, Romain Dorgueil
Simple ETL in python 3.5+ with Bonobo, Romain DorgueilPôle Systematic Paris-Region
 
Artificial Intelligence Neural Processing Unit Hikey970
Artificial Intelligence Neural Processing Unit Hikey970Artificial Intelligence Neural Processing Unit Hikey970
Artificial Intelligence Neural Processing Unit Hikey970KnowledgeMavens
 
Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10stemplar
 
Raspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRaspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRANAALIMAJEEDRAJPUT
 
Up and running with Raspberry Pi
Up and running with Raspberry PiUp and running with Raspberry Pi
Up and running with Raspberry PiShahed Mehbub
 
Exploring the Internet of Things Using Ruby
Exploring the Internet of Things Using RubyExploring the Internet of Things Using Ruby
Exploring the Internet of Things Using RubyMike Hagedorn
 
Intoduction to physical computing using Raspberry Pi, 18-02-2016
Intoduction to physical computing using Raspberry Pi, 18-02-2016Intoduction to physical computing using Raspberry Pi, 18-02-2016
Intoduction to physical computing using Raspberry Pi, 18-02-2016Sebin Benjamin
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry piHusainBhaldar21
 

Similar a Intro to the raspberry pi board (20)

Introduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIOIntroduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIO
 
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi [Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory Lecture
 
Raspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your LibraryRaspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your Library
 
Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin Control
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry pi pico projects raspberry pi projects
Raspberry pi pico projects raspberry pi projectsRaspberry pi pico projects raspberry pi projects
Raspberry pi pico projects raspberry pi projects
 
arduino
arduinoarduino
arduino
 
Got Python I/O: IoT Develoment in Python via GPIO
Got Python I/O: IoT Develoment in Python via GPIOGot Python I/O: IoT Develoment in Python via GPIO
Got Python I/O: IoT Develoment in Python via GPIO
 
Python-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxPython-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptx
 
Simple ETL in python 3.5+ with Bonobo, Romain Dorgueil
Simple ETL in python 3.5+ with Bonobo, Romain DorgueilSimple ETL in python 3.5+ with Bonobo, Romain Dorgueil
Simple ETL in python 3.5+ with Bonobo, Romain Dorgueil
 
Artificial Intelligence Neural Processing Unit Hikey970
Artificial Intelligence Neural Processing Unit Hikey970Artificial Intelligence Neural Processing Unit Hikey970
Artificial Intelligence Neural Processing Unit Hikey970
 
Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10
 
Raaaaassspberry pi
Raaaaassspberry piRaaaaassspberry pi
Raaaaassspberry pi
 
RASPBERRY PI
RASPBERRY PIRASPBERRY PI
RASPBERRY PI
 
Raspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRaspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software Setup
 
Up and running with Raspberry Pi
Up and running with Raspberry PiUp and running with Raspberry Pi
Up and running with Raspberry Pi
 
Exploring the Internet of Things Using Ruby
Exploring the Internet of Things Using RubyExploring the Internet of Things Using Ruby
Exploring the Internet of Things Using Ruby
 
Intoduction to physical computing using Raspberry Pi, 18-02-2016
Intoduction to physical computing using Raspberry Pi, 18-02-2016Intoduction to physical computing using Raspberry Pi, 18-02-2016
Intoduction to physical computing using Raspberry Pi, 18-02-2016
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
 

Intro to the raspberry pi board

  • 1. Introduction to the Raspberry Pi board Thierry GAYET – 22/10/2012
  • 2. Agenda • A Little history   • More device specifics • What a Raspberry Pi  can do for you ?   • Other Emerging Embeded Platforms • Development Options • Possible live/video demo.  • Questions
  • 3. A Little history  The Raspberry Pi was created by the Raspberry Pi Foundation to inspire a new generation of children to become programmers. Foundation trustee Eben Upton, a lecturer at Cambridge at the time, saw that the skillset of applicants to CS courses had been steadily decreasing for a number of years. This is mostly due to the way that education has been geared more towards using office applications and less on understanding the hardware. The Debian images available have lots of tools for both kids and adults alike. so almost any age 4-50+ can enjoy learning about programming and electronics.
  • 4. Price Model A - $ 25 Model B - $ 35 Why so cheap ? SoC - System on a chip, a computer on a single low voltage chip Linux OS
  • 5. More device specifics Model A 256Mb RAM 1 x USB no Ethernet Model B 256Mb RAM 2 x USB 1 x Ethernet Both models have a 700MHz Armv6 (Arm11) Quad-Core Graphics chip Diagram of Model B
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11. What a RaspberryPi can do for you • Xbmc @ Full 1080p HD • Linux desktop - just add keyboard and mouse. • Linux low powered server (fileserver etc..) • Attach webcam and monitoring software • Interface with electronics from leds, solenoids,switches,mosfets etc.. • Almost anything else you can imagine
  • 12. Other Emerging Embeded Platforms • VIA APC is powered by a VIA WonderMedia 8750 800 MHz ARM11 processor, 512MB of DDR3 memory, and 2GB of flash storage. The chip supports 1080p HD video playback, H.264 video encoding, and OpenGL ES 2.0 graphics. • Android Mk802 A10 AllWinner Mini Computer The little computer looks like a portable storage device, but it has a 1.5 GHz Allwiner A10 processor, 512MB(1Gb spotted) of RAM, and 4GB of storage. It ships with Google Android 4.0 software • Beagle Board (1GHZ ARM 7) and Beagle bone (720MHz ARM 7) also PandaBoard (all ~$80-$180)
  • 13. Development Options • Python (Quick2wire),C(WiringPi), Bash, Basic, etc.. • Scratch Geared to students and non-developers • Various Other Linux environments including Aros (Linux based port), Arch, Debian, Gentoo etc.. • Many open-source libraries being ported to arm. • Cross-compiler tool-chains available. (both soft and hard float)
  • 14. Scratch The MIT program Scratch is designed to provide an accessible way for kids to learn about coding. The program's interface makes it easy to build and change software by dragging and dropping commands and changing variable values through simple menus. The version installed on the Pi comes loaded with a simple car-racing game. Users can add and remove commands from the game, then press play and immediately see the effect of those changes - for instance, tweaking how cars handle or adjusting the animation for car crashes.
  • 16. Quick2Wire (Python GPIO) quick2wire have released a python api to safely access the gpio pins from user land. eg. anyone in the gpio group. as well as allowing clean import and export of pins. Here’s the code that drives an LED: from quick2wire.gpio import Pin from time import sleep out_pin = Pin(12, Pin.Out) for i in range(0, 10): out_pin.value = 1 sleep(1) out_pin.value = 0 sleep(1) out_pin.unexport() http://quick2wire.com/ https://github.com/quick2wire/quick2wire-python-api https://github.com/quick2wire/quick2wire-gpio-admin
  • 17.  My Raspberry Pi Demo My demo focuses on input and output from python script through the gpio pins to some simple electronics components. This simple demo takes input from a switch which illuminates a red led to confirm it was pressed. using the quick2wire api for python. when the switch is pressed a counter is increased by 1 until it reaches 16 at which point it will reset counter to 0. the corospoding value of counter at any one time is then convirted to binary value and displayed on the 4 green and yellow leds. eg. counter = 3 bin outpit = 0011 led pin = 0011
  • 19.  Raspberry Pi Demo #!/usr/bin/python3 import time # outputs binary reprisentation to 4 leds import string # that matches count. from quick2wire.gpio import Pin binvalue = bin(i)[2:].zfill(4) out_pin4.value = binvalue[-1] # import pins for output out_pin3.value = binvalue[-2] out_pin1 = Pin(11, Pin.Out) out_pin2.value = binvalue[-3] out_pin2 = Pin(13, Pin.Out) out_pin1.value = binvalue[-4] out_pin3 = Pin(15, Pin.Out) time.sleep(.2) out_pin4 = Pin(16, Pin.Out) # trap ctrl+c to cleanly unexport pins # import pins for input except KeyboardInterrupt: in_pin = Pin(7, Pin.In) out_pin1.unexport() out_pin2.unexport() # init count out_pin3.unexport() count = 0 out_pin4.unexport() in_pin.unexport() try: while True: # get input value of button mybutton = in_pin.value if mybutton == False: count = count + 1 # reset at 16 if count == 16: count = 0 rpi-count.py @ https://github.com/azmodie/rpi-scripts
  • 20.  expEYES Project The expEYES (“experiments for Young Engineers and Scientists”) aims to provide a low cost platform for experimentation and education in electronics and physics. The device has 12 bit Analog I/O, Digital I/O, time interval measurements, & other features accessible from Python. It is packaged with a number of accessories & software which can be used to perform a large number of experiments. For example, the device can be used to study electromagnetic induction, the conductivity of water, to measure gravity by time of flight, alongside many other applications. It aims to enable anybody to develop new experiments. http://expeyes.in/articles/54/expeyes-meets-raspberry-pi
  • 21. Linux distro(s) http://www.raspberrypi.org/downloads Raspian “wheezy” : newbies get this one! Soft-float Debian “wheezy” : for Oracle JVM Arch Linux ARM : down to the metal QtonPi : For Qt 5 http://www.raspberrypi.org/quick-start-guide
  • 23. Extra Item Price Raspbery Pi $35.00 Keyboard and Mouse $21.00 Pretty Box $14.95 USB Power Supply $5.95 USB A/MicroB for Power $3.95 HDMI Cable $5.95 Ethernet cable $3.95 USB Wifi $14.95 4GB SD Card $11.95 Connect to HDMI TV $0.00 Total $117.65
  • 24. Related book(s) Quick Start is Free: http://www.raspberrypi.org/quick-start-guide Buy the book—paper ($12.38) or ebook ($6.60)