Slide 1

Slide 1 text

Teach, Learn and Make with Raspberry Pi Ben Nuttall Raspberry Pi Foundation UK Charity 1129409

Slide 2

Slide 2 text

Raspberry Pi Foundation ● Registered UK charity 1129409 ● Founded in 2009 to aid computing education ● On general sale since 2012, available to all worldwide – Sold to education, industry and hobbyists – Sold 6 million to date ● Free learning resources for makers and educators ● Free teacher training - Picademy (currently UK, soon USA)

Slide 3

Slide 3 text

Ben Nuttall ● Education Developer Advocate at the Raspberry Pi Foundation – Software & project development – Learning resources & teacher training – Outreach ● Hobbyist turned employee ● Based in Cambridge, UK ● @ben_nuttall on Twitter

Slide 4

Slide 4 text

Raspberry Pi ● Credit card sized computer ● $35 / €32 ● Made in the UK ● Used – in education – in industry – by hobbyists

Slide 5

Slide 5 text

Raspberry Pi: Why? ● A programmable device the price of a textbook ● Skills shortage and lack of understanding – Programming – Computer systems – Engineering ● 1980s computer era – Home computing was difficult, but created skilled users

Slide 6

Slide 6 text

29 February 2012 ● Raspberry Pi Model B on general sale ● 10, 000 in stock

Slide 7

Slide 7 text

29 February 2012 ● Raspberry Pi Model B on general sale ● 10, 000 in stock ● 100, 000 sold on first day

Slide 8

Slide 8 text

Raspberry Pi Community

Slide 9

Slide 9 text

Raspberry Jam

Slide 10

Slide 10 text

Raspberry Pi in Schools

Slide 11

Slide 11 text

6 Million Raspberry Pis sold ● Minor revisions ● Model A ● Model B+ ● Model A+ ● Raspberry Pi 2

Slide 12

Slide 12 text

Education ● Hired education team ● £1m Education Fund ● Picademy - free teacher training course ● Free learning resources ● Improvements to software

Slide 13

Slide 13 text

Raspberry Pi Setup

Slide 14

Slide 14 text

What do I need? ● USB mouse ● USB keyboard ● USB power supply ● Monitor or TV ● HDMI cable ● Micro SD card

Slide 15

Slide 15 text

Optional extras ● Case ● Ethernet cable ● USB WiFi dongle ● Camera module ● USB Bluetooth dongle ● Speakers or headphones

Slide 16

Slide 16 text

The SD Card ● This is your hard drive – Operating system – Files + programs ● Buy pre-installed or download and install using your PC ● NOOBS (New Out Of the Box Software) – Easy installer – Drag & drop – Contains Raspbian ● Raspbian – Full operating system – Lots of useful software pre-installed

Slide 17

Slide 17 text

Getting started ● Insert SD card ● Connect mouse & keyboard ● Connect HDMI cable ● Connect power supply

Slide 18

Slide 18 text

Booting the Pi ● Boot messages are shown ● Learning opportunity – What's happening? – Are there any errors? – Encourages questions ● Pi 1 = 1 Raspberry Pi 2 = 4 Raspberries Why? (hint: single core vs. quad core)

Slide 19

Slide 19 text

Logging in username: pi password: raspberry Note: password not shown when typing

Slide 20

Slide 20 text

Command line ● The Pi is ready and awaiting your command!

Slide 21

Slide 21 text

startx To boot to Desktop – and a full Graphical User Interface (GUI), type the command startx and press Enter Note: You can configure the Pi to boot to Desktop or boot to the command line

Slide 22

Slide 22 text

The Terminal ● A window with a command line prompt ● Enter commands to run while you're using the Desktop

Slide 23

Slide 23 text

raspi-config Open a Terminal window and enter sudo raspi-config sudo means “super user do” - runs the command with administrator privileges

Slide 24

Slide 24 text

raspi-config ● Enable boot to Desktop ● Internationalisation – Locale – Timezone – Keyboard layout ● Enable camera module

Slide 25

Slide 25 text

Main Menu ● Launch programming applications ● Web browser ● Preferences and settings ● Shutdown & reboot

Slide 26

Slide 26 text

Internet connection ● Connect ethernet cable before boot and it just works ● Connect ethernet cable after boot usually works too ● WiFi dropdown menu ● Check your IP address – Hover over WiFi icon – hostname -I (in terminal)

Slide 27

Slide 27 text

Scratch ● Drag & drop block interface to programming ● Logic ● Computational thinking ● Easy to make games ● Impossible to create a program that fails to run! ● Recommended for young children

Slide 28

Slide 28 text

Sonic Pi ● Sound synthesiser for creating music ● Audible computing ● Uses simple syntax text-based programming language Ruby ● Used for compositions and live coding performances ● Introduce computing concepts through music ● Created especially for education

Slide 29

Slide 29 text

Python ● Powerful extensible programming language ● Easy to read and write ● Make software, games, GUIs, websites, robots and more ● Ideal for physical computing ● Extensive library of additional modules for Raspberry Pi hardware ● Recommended for education

Slide 30

Slide 30 text

Minecraft: Pi Edition ● Free version of Minecraft on Raspberry Pi ● Python programming interface ● Learn Python by building things and making games in Minecraft ● Creative computing

Slide 31

Slide 31 text

Mathematica ● Expensive proprietary software – free on Raspberry Pi ● Powerful scientific programming

Slide 32

Slide 32 text

Physical computing ● Flashy lights ● Motors & robots ● Photo & video ● Sensors ● Internet of Things ● Engaging and empowering

Slide 33

Slide 33 text

GPIO Pins – General Purpose Input/Output rasp.io

Slide 34

Slide 34 text

Python library - RPi.GPIO ● Included in Raspbian ● Features: – Configure pins as input/output – Read inputs (high/low) – Set outputs (high/low) – Wait for edge (wait for input to go high/low) – Pin event detection (callback on input pin change)

Slide 35

Slide 35 text

Scratch GPIO ● Third-party download gives access to GPIO pins ● Soon to be implemented in default Scratch ● Drag & drop programming for robots and more!

Slide 36

Slide 36 text

Flash an LED ● “Hello world” program of physical computing

Slide 37

Slide 37 text

3V3 = always on

Slide 38

Slide 38 text

GPIO = user controllable

Slide 39

Slide 39 text

Flash LED with Python from RPi import GPIO from time import sleep GPIO.setmode(GPIO.BCM) led = 2 GPIO.setup(led, GPIO.OUT) while True: GPIO.output(led, True) sleep(1) GPIO.output(led, False) sleep(1)

Slide 40

Slide 40 text

CamJam EduKit ● £5 starter kit ● £7 sensors kit ● Free worksheets ● Very reusable

Slide 41

Slide 41 text

HATs

Slide 42

Slide 42 text

Pi in the Sky

Slide 43

Slide 43 text

The sky is the limit...

Slide 44

Slide 44 text

...or is it?

Slide 45

Slide 45 text

Astro Pi

Slide 46

Slide 46 text

Sense HAT ● 8x8 RGB LED matrix ● Mini joystick ● Gyroscope ● Accelerometer ● Magnetometer ● Temperature sensor ● Barometric pressure sensor ● Humidity sensor

Slide 47

Slide 47 text

www.raspberrypi.org ● Daily blog articles – news, projects and stories ● Downloads ● Help pages ● Documentation ● Community sites ● Forums

Slide 48

Slide 48 text

Raspberry Pi Learning Resources ● Teach, Learn and Make ● Free ● Creative Commons ● Created by Raspberry Pi Education Team

Slide 49

Slide 49 text

piweekly.net ● Free weekly email newsletter ● Raspberry Pi news, projects and articles ● 2 years of issues on the website

Slide 50

Slide 50 text

The MagPi ● Community magazine established in 2012 ● Now the official Raspberry Pi magazine ● Paper copies on sale in UK shops and online

Slide 51

Slide 51 text

Teach, Learn and Make with Raspberry Pi Ben Nuttall Raspberry Pi Foundation UK Charity 1129409