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

Ben Nuttall

October 23, 2018
Tweet

More Decks by Ben Nuttall

Other Decks in Technology

Transcript

  1. @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 • [email protected]
  2. @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
  3. @ben_nuttall #AllThingsOpen Programming options Raspbian ships with: • Python •

    Scratch • Ruby / Sonic Pi • C/C++ • Java • and more Install anything that runs on Arm
  4. @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
  5. @ben_nuttall #AllThingsOpen GPIO Zero – a friendly API for GPIO

    devices from gpiozero import LED led = LED(2) led.blink()
  6. @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
  7. @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()
  8. @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()
  9. @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
  10. @ben_nuttall #AllThingsOpen Picamera • 8 megapixels • Visible light &

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

    Mini joystick • Temperature sensor • Humidity sensor • Pressure sensor • Accelerometer • Gyroscope • Magnetometer
  12. @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
  13. @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
  14. @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
  15. @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
  16. @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
  17. @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
  18. @ben_nuttall #AllThingsOpen Coolest Projects • Technology fair for young people

    • Manchester, UK – March 2019 • California, USA - March 2019 • Dublin, Ireland – May 2019 • coolestprojects.org