SlideShare a Scribd company logo
1 of 17
Raspberry Pi 

A Slice For Education 
     http://www.raspberrypi.org
Who Am I ?
My Name is Kris Findlay. Also known in the community as Azmodie.

I have been using the Open Source Linux operating system for over 10 years. 

IT Manager for Animation Company 
(makers of oscar nominated The Illusionist 2010) 

I am also the Webmaster for The Software Society and The UK Adhesions
Society (Charity) which are both implemented, hosted and developed with open
source software. ( currently Django, apache, nginx, mysql )

Email address : azmodie@gmail.com  or  kris.findlay@gmail.com
Identi.ca/Twitter : azmodie
Google Plus : http://gplus.to/azmodie
LinkedIn : Kris Findlay

    
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.
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
 My Raspberry Pi Demo
 My 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
Links to More Details / Projects
A coffee machine controlled by Raspberry Pi
http://moccapi.blogspot.co.uk/

Solinoid based glockenspiel
http://www.thebox.myzen.co.uk/Raspberry/Buffer_Board.html

Simple Guide to the RPi GPIO Header and Pins
http://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-the-rpi-gpio-header-and-pins/

Raspberry Pi – Driving a Relay using GPIO
http://www.susa.net/wordpress/2012/06/raspberry-pi-relay-using-gpio/

Hardware Ladder Game
http://www.raspberrypi.org/archives/1488

Speach Recognition
https://sites.google.com/site/observing/Home/speech-recognition-with-the-raspberry-pi

Ideas for model railways
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=37&t=5993
Contact Details  & Any Questions ?

 
    Email address : azmodie@gmail.com / kris.findlay@gmail.com
 
                        Twitter : azmodie

                       Facebook : azmodie
 
                      LinkedIn : Kris Findlay

More Related Content

What's hot

Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Mandeesh Singh
 
Raspberry Pi - Lecture 6 Working on Raspberry Pi
Raspberry Pi - Lecture 6 Working on Raspberry PiRaspberry Pi - Lecture 6 Working on Raspberry Pi
Raspberry Pi - Lecture 6 Working on Raspberry PiMohamed Abdallah
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentationGR Techno Solutions
 
Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Mandeesh Singh
 
Raspberry Pi in Education (English)
Raspberry Pi in Education (English)Raspberry Pi in Education (English)
Raspberry Pi in Education (English)Beregszászi István
 
Single Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsSingle Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsEueung Mulyana
 
Raspberry Pi and Amateur Radio
Raspberry Pi and Amateur RadioRaspberry Pi and Amateur Radio
Raspberry Pi and Amateur RadioKevin Hooke
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry piHusainBhaldar21
 
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick NeshRaspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick NeshTE4P
 
Low Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PILow Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PIVarun A M
 
DigiPinguïns: demo Raspberry Pi (Koen De Smet)
DigiPinguïns: demo Raspberry Pi (Koen De Smet)DigiPinguïns: demo Raspberry Pi (Koen De Smet)
DigiPinguïns: demo Raspberry Pi (Koen De Smet)Avansa Mid- en Zuidwest
 
Getting Started with Raspberry Pi and Arduino
Getting Started with Raspberry Pi and ArduinoGetting Started with Raspberry Pi and Arduino
Getting Started with Raspberry Pi and ArduinoChad Mairn
 
Raspberry Pi Using Python
Raspberry Pi Using PythonRaspberry Pi Using Python
Raspberry Pi Using PythonSeggy Segaran
 
Raspberry Pi in education, resource presentation.
Raspberry Pi in education, resource presentation.Raspberry Pi in education, resource presentation.
Raspberry Pi in education, resource presentation.Mike Stringer
 
introduction to Raspberry pi
introduction to Raspberry piintroduction to Raspberry pi
introduction to Raspberry piluckyanks1992
 
Raspberry Pi Zero
Raspberry Pi ZeroRaspberry Pi Zero
Raspberry Pi ZeroBaoshi Zhu
 
Exploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with PythonExploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with PythonShahed Mehbub
 

What's hot (20)

Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
 
Raspberry Pi - Lecture 6 Working on Raspberry Pi
Raspberry Pi - Lecture 6 Working on Raspberry PiRaspberry Pi - Lecture 6 Working on Raspberry Pi
Raspberry Pi - Lecture 6 Working on Raspberry Pi
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentation
 
Pi Is For Python
Pi Is For PythonPi Is For Python
Pi Is For Python
 
Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014
 
Raspberry Pi in Education (English)
Raspberry Pi in Education (English)Raspberry Pi in Education (English)
Raspberry Pi in Education (English)
 
Single Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsSingle Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi Basics
 
Raspberry Pi and Amateur Radio
Raspberry Pi and Amateur RadioRaspberry Pi and Amateur Radio
Raspberry Pi and Amateur Radio
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
 
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick NeshRaspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
 
IPv6: A Digital Game Changer
IPv6: A Digital Game ChangerIPv6: A Digital Game Changer
IPv6: A Digital Game Changer
 
Low Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PILow Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PI
 
DigiPinguïns: demo Raspberry Pi (Koen De Smet)
DigiPinguïns: demo Raspberry Pi (Koen De Smet)DigiPinguïns: demo Raspberry Pi (Koen De Smet)
DigiPinguïns: demo Raspberry Pi (Koen De Smet)
 
Getting Started with Raspberry Pi and Arduino
Getting Started with Raspberry Pi and ArduinoGetting Started with Raspberry Pi and Arduino
Getting Started with Raspberry Pi and Arduino
 
Raspberry Pi Using Python
Raspberry Pi Using PythonRaspberry Pi Using Python
Raspberry Pi Using Python
 
Raspberry Pi in education, resource presentation.
Raspberry Pi in education, resource presentation.Raspberry Pi in education, resource presentation.
Raspberry Pi in education, resource presentation.
 
introduction to Raspberry pi
introduction to Raspberry piintroduction to Raspberry pi
introduction to Raspberry pi
 
Raspberry Pi Zero
Raspberry Pi ZeroRaspberry Pi Zero
Raspberry Pi Zero
 
Exploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with PythonExploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with Python
 

Similar to Introduction to Raspberry Pi and GPIO

Intro to the raspberry pi board
Intro to the raspberry pi boardIntro to the raspberry pi board
Intro to the raspberry pi boardThierry Gayet
 
[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 - 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
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureSyed Umaid Ahmed
 
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
 
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
 
Simple ETL in python 3.5+ with Bonobo - PyParis 2017
Simple ETL in python 3.5+ with Bonobo - PyParis 2017Simple ETL in python 3.5+ with Bonobo - PyParis 2017
Simple ETL in python 3.5+ with Bonobo - PyParis 2017Romain Dorgueil
 
Raspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRaspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRANAALIMAJEEDRAJPUT
 
Euro python2011 High Performance Python
Euro python2011 High Performance PythonEuro python2011 High Performance Python
Euro python2011 High Performance PythonIan Ozsvald
 
Python-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxPython-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxTuynLCh
 
arduino
arduinoarduino
arduinomurbz
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfWiseNaeem
 
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
 
AI Machine Learning Complete Course: for PHP & Python Devs
AI Machine Learning Complete Course: for PHP & Python DevsAI Machine Learning Complete Course: for PHP & Python Devs
AI Machine Learning Complete Course: for PHP & Python DevsAmr Shawqy
 
CorePy High-Productivity CellB.E. Programming
CorePy High-Productivity CellB.E. ProgrammingCorePy High-Productivity CellB.E. Programming
CorePy High-Productivity CellB.E. ProgrammingSlide_N
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfWiseNaeem
 
Dev guide to the IoT (IBM stack)
Dev guide to the IoT (IBM stack) Dev guide to the IoT (IBM stack)
Dev guide to the IoT (IBM stack) Artur Basak
 
Raspberry pi performace and program by open cv
Raspberry pi performace and program by open cvRaspberry pi performace and program by open cv
Raspberry pi performace and program by open cvKazuhiko Inaba
 

Similar to Introduction to Raspberry Pi and GPIO (20)

Intro to the raspberry pi board
Intro to the raspberry pi boardIntro to the raspberry pi board
Intro to the raspberry pi board
 
[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 - 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
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory Lecture
 
05 python.pdf
05 python.pdf05 python.pdf
05 python.pdf
 
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
 
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
 
Simple ETL in python 3.5+ with Bonobo - PyParis 2017
Simple ETL in python 3.5+ with Bonobo - PyParis 2017Simple ETL in python 3.5+ with Bonobo - PyParis 2017
Simple ETL in python 3.5+ with Bonobo - PyParis 2017
 
Raspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRaspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software Setup
 
Euro python2011 High Performance Python
Euro python2011 High Performance PythonEuro python2011 High Performance Python
Euro python2011 High Performance Python
 
Python-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxPython-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptx
 
Raaaaassspberry pi
Raaaaassspberry piRaaaaassspberry pi
Raaaaassspberry pi
 
arduino
arduinoarduino
arduino
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
 
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
 
AI Machine Learning Complete Course: for PHP & Python Devs
AI Machine Learning Complete Course: for PHP & Python DevsAI Machine Learning Complete Course: for PHP & Python Devs
AI Machine Learning Complete Course: for PHP & Python Devs
 
CorePy High-Productivity CellB.E. Programming
CorePy High-Productivity CellB.E. ProgrammingCorePy High-Productivity CellB.E. Programming
CorePy High-Productivity CellB.E. Programming
 
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdfAdvanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
Advanced View of Projects Raspberry Pi List - Raspberry PI Projects.pdf
 
Dev guide to the IoT (IBM stack)
Dev guide to the IoT (IBM stack) Dev guide to the IoT (IBM stack)
Dev guide to the IoT (IBM stack)
 
Raspberry pi performace and program by open cv
Raspberry pi performace and program by open cvRaspberry pi performace and program by open cv
Raspberry pi performace and program by open cv
 

Recently uploaded

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 

Recently uploaded (20)

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 

Introduction to Raspberry Pi and GPIO

  • 1. Raspberry Pi  A Slice For Education  http://www.raspberrypi.org
  • 2. Who Am I ? My Name is Kris Findlay. Also known in the community as Azmodie. I have been using the Open Source Linux operating system for over 10 years.  IT Manager for Animation Company  (makers of oscar nominated The Illusionist 2010)  I am also the Webmaster for The Software Society and The UK Adhesions Society (Charity) which are both implemented, hosted and developed with open source software. ( currently Django, apache, nginx, mysql ) Email address : azmodie@gmail.com  or  kris.findlay@gmail.com Identi.ca/Twitter : azmodie Google Plus : http://gplus.to/azmodie LinkedIn : Kris Findlay     
  • 3. 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
  • 4. 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.
  • 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. 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
  • 7. 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)
  • 8. 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)
  • 9. 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.
  • 11. 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
  • 12.  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
  • 14.  My 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
  • 15.  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
  • 16. Links to More Details / Projects A coffee machine controlled by Raspberry Pi http://moccapi.blogspot.co.uk/ Solinoid based glockenspiel http://www.thebox.myzen.co.uk/Raspberry/Buffer_Board.html Simple Guide to the RPi GPIO Header and Pins http://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-the-rpi-gpio-header-and-pins/ Raspberry Pi – Driving a Relay using GPIO http://www.susa.net/wordpress/2012/06/raspberry-pi-relay-using-gpio/ Hardware Ladder Game http://www.raspberrypi.org/archives/1488 Speach Recognition https://sites.google.com/site/observing/Home/speech-recognition-with-the-raspberry-pi Ideas for model railways http://www.raspberrypi.org/phpBB3/viewtopic.php?f=37&t=5993
  • 17. Contact Details  & Any Questions ?   Email address : azmodie@gmail.com / kris.findlay@gmail.com   Twitter : azmodie Facebook : azmodie   LinkedIn : Kris Findlay