Raspberry Pi in Estonia - Secondary

A1995c9abe48450ce2f82d93ca0b863f?s=47 Ben Nuttall
September 08, 2015

Raspberry Pi in Estonia - Secondary

Intro to Raspberry Pi for Estonian school students

A1995c9abe48450ce2f82d93ca0b863f?s=128

Ben Nuttall

September 08, 2015
Tweet

Transcript

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

  2. Raspberry Pi • Credit card sized computer • €32 •

    Made in the UK • 6 million sold
  3. Raspberry Pi Community

  4. Raspberry Jam

  5. Raspberry Pi Setup

  6. What do I need? • USB mouse • USB keyboard

    • USB power supply • Monitor or TV • HDMI cable • Micro SD card
  7. Optional extras • Case • Ethernet cable • USB WiFi

    dongle • Camera module • USB Bluetooth dongle • Speakers or headphones
  8. The SD Card • This is your hard drive –

    Operating system – Files + programs
  9. Getting started • Insert SD card • Connect mouse &

    keyboard • Connect HDMI cable • Connect power supply
  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
  11. Sonic Pi

  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
  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
  14. Mathematica • Expensive proprietary software – free on Raspberry Pi

    • Powerful scientific programming
  15. Physical computing • Flashy lights • Motors & robots •

    Photo & video • Sensors • Internet of Things • Engaging and empowering
  16. GPIO Pins – General Purpose Input/Output rasp.io

  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)
  18. Flash an LED • “Hello world” program of physical computing

  19. 3V3 = always on

  20. GPIO = user controllable

  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)
  22. Traffic Lights green.on() yellow.off() red.off() sleep(10)

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

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

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

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

  27. Pi in the Sky

  28. The sky is the limit...

  29. ...or is it?

  30. Astro Pi

  31. Sense HAT • 8x8 RGB LED matrix • Mini joystick

    • Gyroscope • Accelerometer • Magnetometer • Temperature sensor • Barometric pressure sensor • Humidity sensor
  32. Raspberry Pi Ben Nuttall Raspberry Pi Foundation UK Charity 1129409