Slide 1

Slide 1 text

Raspberry Pi Ben Nuttall Raspberry Pi Foundation UK Charity 1129409

Slide 2

Slide 2 text

Raspberry Pi ● Credit card sized computer ● €32 ● Made in the UK ● 6 million sold

Slide 3

Slide 3 text

Raspberry Pi Community

Slide 4

Slide 4 text

Raspberry Jam

Slide 5

Slide 5 text

Raspberry Pi Setup

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

The SD Card ● This is your hard drive – Operating system – Files + programs

Slide 9

Slide 9 text

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

Slide 10

Slide 10 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 11

Slide 11 text

Sonic Pi

Slide 12

Slide 12 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 13

Slide 13 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 14

Slide 14 text

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

Slide 15

Slide 15 text

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

Slide 16

Slide 16 text

GPIO Pins – General Purpose Input/Output rasp.io

Slide 17

Slide 17 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 18

Slide 18 text

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

Slide 19

Slide 19 text

3V3 = always on

Slide 20

Slide 20 text

GPIO = user controllable

Slide 21

Slide 21 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 22

Slide 22 text

Traffic Lights green.on() yellow.off() red.off() sleep(10)

Slide 23

Slide 23 text

Traffic Lights green.off() yellow.on() sleep(1)

Slide 24

Slide 24 text

Traffic Lights yellow.off() red.on() sleep(10)

Slide 25

Slide 25 text

Traffic Lights yellow.on() sleep(1)

Slide 26

Slide 26 text

Traffic Lights green.on() yellow.off() red.off()

Slide 27

Slide 27 text

Pi in the Sky

Slide 28

Slide 28 text

The sky is the limit...

Slide 29

Slide 29 text

...or is it?

Slide 30

Slide 30 text

Astro Pi

Slide 31

Slide 31 text

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

Slide 32

Slide 32 text

Raspberry Pi Ben Nuttall Raspberry Pi Foundation UK Charity 1129409