$30 off During Our Annual Pro Sale. View Details »

Raspberry Pi in Estonia - Secondary

Ben Nuttall
September 08, 2015

Raspberry Pi in Estonia - Secondary

Intro to Raspberry Pi for Estonian school students

Ben Nuttall

September 08, 2015
Tweet

More Decks by Ben Nuttall

Other Decks in Education

Transcript

  1. Raspberry Pi
    Ben Nuttall
    Raspberry Pi Foundation
    UK Charity 1129409

    View Slide

  2. Raspberry Pi

    Credit card sized computer

    €32

    Made in the UK

    6 million sold

    View Slide

  3. Raspberry Pi Community

    View Slide

  4. Raspberry Jam

    View Slide

  5. Raspberry Pi Setup

    View Slide

  6. What do I need?

    USB mouse

    USB keyboard

    USB power supply

    Monitor or TV

    HDMI cable

    Micro SD card

    View Slide

  7. Optional extras

    Case

    Ethernet cable

    USB WiFi dongle

    Camera module

    USB Bluetooth dongle

    Speakers or headphones

    View Slide

  8. The SD Card

    This is your hard drive
    – Operating system
    – Files + programs

    View Slide

  9. Getting started

    Insert SD card

    Connect mouse & keyboard

    Connect HDMI cable

    Connect power supply

    View Slide

  10. 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

    View Slide

  11. Sonic Pi

    View Slide

  12. 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

    View Slide

  13. 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

    View Slide

  14. Mathematica

    Expensive proprietary
    software – free on Raspberry
    Pi

    Powerful scientific
    programming

    View Slide

  15. Physical computing

    Flashy lights

    Motors & robots

    Photo & video

    Sensors

    Internet of Things

    Engaging and empowering

    View Slide

  16. GPIO Pins – General Purpose Input/Output
    rasp.io

    View Slide

  17. 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)

    View Slide

  18. Flash an LED

    “Hello world” program of
    physical computing

    View Slide

  19. 3V3 = always on

    View Slide

  20. GPIO = user controllable

    View Slide

  21. 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)

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  25. Traffic Lights
    yellow.on()
    sleep(1)

    View Slide

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

    View Slide

  27. Pi in the Sky

    View Slide

  28. The sky is the limit...

    View Slide

  29. ...or is it?

    View Slide

  30. Astro Pi

    View Slide

  31. Sense HAT

    8x8 RGB LED matrix

    Mini joystick

    Gyroscope

    Accelerometer

    Magnetometer

    Temperature sensor

    Barometric pressure sensor

    Humidity sensor

    View Slide

  32. Raspberry Pi
    Ben Nuttall
    Raspberry Pi Foundation
    UK Charity 1129409

    View Slide