Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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. What do I need? • USB mouse • USB keyboard

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

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

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

    keyboard • Connect HDMI cable • Connect power supply
  5. 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
  6. 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
  7. 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
  8. Physical computing • Flashy lights • Motors & robots •

    Photo & video • Sensors • Internet of Things • Engaging and empowering
  9. 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)
  10. 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)
  11. Sense HAT • 8x8 RGB LED matrix • Mini joystick

    • Gyroscope • Accelerometer • Magnetometer • Temperature sensor • Barometric pressure sensor • Humidity sensor