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

Raspberry Pi for developers and makers

Raspberry Pi for developers and makers

Talk given at All Things Open 2018

A1995c9abe48450ce2f82d93ca0b863f?s=128

Ben Nuttall

October 23, 2018
Tweet

More Decks by Ben Nuttall

Other Decks in Technology

Transcript

  1. Raspberry Pi for developers and makers Ben Nuttall Raspberry Pi

    Foundation UK Charity 1129409
  2. @ben_nuttall #AllThingsOpen Ben Nuttall • Raspberry Pi Community Manager •

    Based in Cambridge, UK • Creator of GPIO Zero and piwheels • Columnist on opensource.com • github.com/bennuttall • twitter.com/ben_nuttall • ben@raspberrypi.org
  3. @ben_nuttall #AllThingsOpen Current Raspberry Pi models Raspberry Pi 3 Model

    B+ • 64-bit quad-core Armv8 @ 1.4GHz • 1GB RAM • $35 Raspberry Pi Zero / Zero W • 32-bit single-core Armv6 @ 1GHz • 512MB RAM • $5 / $10
  4. @ben_nuttall #AllThingsOpen 20M+ Raspberry Pis sold

  5. @ben_nuttall #AllThingsOpen Raspbian

  6. @ben_nuttall #AllThingsOpen Raspberry Pi Desktop x86

  7. @ben_nuttall #AllThingsOpen Programming options Raspbian ships with: • Python •

    Scratch • Ruby / Sonic Pi • C/C++ • Java • and more Install anything that runs on Arm
  8. @ben_nuttall #AllThingsOpen Mu

  9. @ben_nuttall #AllThingsOpen Mu • Cross-platform • Windows / Mac /

    Linux / Raspberry Pi • Multi-mode • Python 3 / Pygame Zero / MicroPython / CircuitPython • Open source • github.com/mu-editor/mu • Developed by Nicholas Tollervey & 45+ contributors • Pure Python • PyQt5 • Includes PyQtChart plotter
  10. @ben_nuttall #AllThingsOpen Mu

  11. @ben_nuttall #AllThingsOpen GPIO Pins – General Purpose Input/Output

  12. @ben_nuttall #AllThingsOpen GPIO components

  13. @ben_nuttall #AllThingsOpen Add-on boards / HATs

  14. @ben_nuttall #AllThingsOpen GPIO Zero – a friendly API for GPIO

    devices from gpiozero import LED led = LED(2) led.blink()
  15. @ben_nuttall #AllThingsOpen GPIO Zero – a friendly API for GPIO

    devices • Zero-boilerplate Pythonic library • Intended for use in education • Simple, guessable API with commonly used names and sensible default values • Simple introduction, smooth learning curve • Multi-paradigm • Extendable
  16. @ben_nuttall #AllThingsOpen Multi-paradigm: procedural (polling) from gpiozero import LED, Button

    led = LED(17) button = Button(4) while True: if button.is_pressed: led.on() else: led.off()
  17. @ben_nuttall #AllThingsOpen Multi-paradigm: procedural (blocking) from gpiozero import LED, Button

    led = LED(17) button = Button(4) while True: button.wait_for_press() led.on() button.wait_for_release() led.off()
  18. @ben_nuttall #AllThingsOpen Multi-paradigm: event-driven (callbacks) from gpiozero import LED, Button

    led = LED(17) button = Button(4) button.when_pressed = led.on button.when_released = led.off
  19. @ben_nuttall #AllThingsOpen Multi-paradigm: declarative from gpiozero import LED, Button led

    = LED(17) button = Button(4) led.source = button.values
  20. @ben_nuttall #AllThingsOpen Picamera • 8 megapixels • Visible light &

    infra-red versions available • 1080p30, 720p60 and VGA90 video • Command line interface and Python library
  21. @ben_nuttall #AllThingsOpen Sense HAT • 8x8 RGB LED matrix •

    Mini joystick • Temperature sensor • Humidity sensor • Pressure sensor • Accelerometer • Gyroscope • Magnetometer
  22. @ben_nuttall #AllThingsOpen Astro Pi • 2x Raspberry Pis on the

    International Space Station • Space grade aluminium case • Sense HAT • RTC • Camera (Vis / IR) • Astro Pi competitions • Mission Space Lab • Mission Zero
  23. @ben_nuttall #AllThingsOpen Astro Pi • 2x Raspberry Pis on the

    International Space Station • Space grade aluminium case • Sense HAT • RTC • Camera (Vis / IR) • Astro Pi competitions • Mission Space Lab • Mission Zero
  24. @ben_nuttall #AllThingsOpen piwheels • Python package repository providing Arm platform

    wheels for Raspberry Pi • Builds automated from PyPI releases, plus manual builds e.g. opencv & tensorflow • Raspbian is pre-configured to use piwheels.org as an additional index to PyPI • Massively reduces pip install time for Raspberry Pi users (saved 30 years of build time in 11 months) • Natively compiled on Raspberry Pi 3 hardware (Mythic Beasts Pi cloud) • Repo hosted on single Raspberry Pi serving over 500k packages per month
  25. @ben_nuttall #AllThingsOpen openCV

  26. @ben_nuttall #AllThingsOpen Tensorflow

  27. @ben_nuttall #AllThingsOpen Tensorflow

  28. @ben_nuttall #AllThingsOpen Tensorflow

  29. @ben_nuttall #AllThingsOpen Google AIY Voice kit

  30. @ben_nuttall #AllThingsOpen Google AIY Vision kit

  31. @ben_nuttall #AllThingsOpen Media centre

  32. @ben_nuttall #AllThingsOpen RetroPiE

  33. @ben_nuttall #AllThingsOpen SSH gateway

  34. @ben_nuttall #AllThingsOpen Pet cam

  35. @ben_nuttall #AllThingsOpen Onion-Pi

  36. @ben_nuttall #AllThingsOpen pi-hole

  37. @ben_nuttall #AllThingsOpen Pi in the sky

  38. @ben_nuttall #AllThingsOpen The MagPi

  39. @ben_nuttall #AllThingsOpen HackSpace

  40. @ben_nuttall #AllThingsOpen Raspberry Jam • Independently organised community events around

    the world • Family-friendly • Mix of meetup / conference / workshop styles • Makers, hackers, programmers & beginners come together • Find one near you – or start your own! • raspberrypi.org/jam
  41. @ben_nuttall #AllThingsOpen Raspberry Jam Big Birthday Weekend • Celebrate Raspberry

    Pi’s 7th birthday • Part of a global weekend event • Great reason to start a new Jam in your area • rpf.io/piparty
  42. @ben_nuttall #AllThingsOpen CoderDojo • Free coding clubs for young people

    • Find one near you and volunteer as a mentor – or start a new Dojo in your area • coderdojo.com
  43. @ben_nuttall #AllThingsOpen Coolest Projects • Technology fair for young people

    • Manchester, UK – March 2019 • California, USA - March 2019 • Dublin, Ireland – May 2019 • coolestprojects.org
  44. Raspberry Pi for developers and makers Ben Nuttall Raspberry Pi

    Foundation UK Charity 1129409