coffee & pi - intro to pi workshop

73
COFFEE & PI INTRO TO PI WORKSHOP BRAD DERSTINE COFFEEANDPI.IO MEETUP.COM/COFFEE-AND-PI #COFFEEANDPI

Upload: brad-derstine

Post on 19-Mar-2017

90 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Coffee & Pi - Intro to Pi Workshop

COFFEE & PIINTRO TO PI WORKSHOP

BRAD DERSTINECOFFEEANDPI.IO

MEETUP.COM/COFFEE-AND-PI#COFFEEANDPI

Page 2: Coffee & Pi - Intro to Pi Workshop

WELCOME TO COFFEE & PI!

• Who has worked with a Raspberry Pi before?• Has anyone never touched or seen a

Raspberry Pi?• Windows or OS X?• Is anyone from the suburbs or outside Center

City?

Page 3: Coffee & Pi - Intro to Pi Workshop

RULES FOR THE WORKSHOP

• This is a beginner friendly workshop. All skill levels are welcome. We were all beginners at one time.

• There are no stupid questions, only stupid people.If you have a silly question, someone else might too. Ask anyway.

• I do not know everything. About anything.If I don’t know, I will say so. When we learn something new, please share it with anyone willing to listen.

• Even the greatest works of art started with someone learning the basics and using their knowledge to practice their craft.

Page 4: Coffee & Pi - Intro to Pi Workshop

BRAD DERSTINE

• 16+ years working in IT• Started out doing 1st level tech support• Currently DevOps Engineer for one of the

oldest and largest non-profits in the US• My story begins with… 3Geeks

Page 5: Coffee & Pi - Intro to Pi Workshop

DEMO!

Page 6: Coffee & Pi - Intro to Pi Workshop

RASPBERRY PI HARDWARERASPBERRY PI 3

Page 7: Coffee & Pi - Intro to Pi Workshop

BASIC COMPONENTS OFRASPBERRY PI 3

• A 1.2GHz 64-bit quad-core ARMv8 CPU• 802.11n Wireless LAN• Bluetooth 4.1• Bluetooth Low Energy (BLE)Like the Pi 2, it also has:• 1GB RAM• 4 USB ports• 40 GPIO pins• Full HDMI port• Ethernet port• Combined 3.5mm audio jack and composite video• Camera interface (CSI)• Display interface (DSI)• Micro SD card slot (now push-pull rather than push-

push)• VideoCore IV 3D graphics core

• The Raspberry Pi 3 has an identical form factor to the previous Pi 2 (and Pi 1 Model B+) and has complete compatibility with Raspberry Pi 1 and 2.

Page 8: Coffee & Pi - Intro to Pi Workshop

ADD-ON COMPONENTS FOR RASPBERRY PI 3

• Cases, USB power cable, HDMI cable, USB Mouse/Keyboard• Visible-light and infrared cameras based on the Sony

IMX219 8-megapixel sensor• Barometric Pressure, Temperature and Altitude Sensor • Raspberry Pi 7" Touchscreen Display • GPS Modules• PiDrive• And more!

Page 9: Coffee & Pi - Intro to Pi Workshop

DREAM KILLER SWITCH

• aka memory card is locked

• Toggle the switch to lock/unlock

Page 10: Coffee & Pi - Intro to Pi Workshop

RASPBERRY PI ZERO1GHZ, SINGLE-CORE CPU, 512MB RAMMINI HDMI AND USB ON-THE-GO PORTSMICRO USB POWER, HAT-COMPATIBLE 40-PIN HEADER

Page 11: Coffee & Pi - Intro to Pi Workshop

RASPBERRY PI OPERATING SYSTEMSRASPBERRY PI 3

Page 12: Coffee & Pi - Intro to Pi Workshop

NOOBS

• Bootable OS Installer• Can connect to Wifi,

can install configured Operating Systems

• Requires Java based tool

• Only ever got it to work when it came pre-installed on micro SD card purchased

Page 13: Coffee & Pi - Intro to Pi Workshop
Page 14: Coffee & Pi - Intro to Pi Workshop
Page 15: Coffee & Pi - Intro to Pi Workshop
Page 16: Coffee & Pi - Intro to Pi Workshop
Page 17: Coffee & Pi - Intro to Pi Workshop
Page 18: Coffee & Pi - Intro to Pi Workshop

RASPBIAN

• Has new PIXEL desktop• Pi Improved Xwindows

Environment, Lightweight

Page 19: Coffee & Pi - Intro to Pi Workshop
Page 20: Coffee & Pi - Intro to Pi Workshop

RASPBIAN

Page 21: Coffee & Pi - Intro to Pi Workshop
Page 22: Coffee & Pi - Intro to Pi Workshop

RASPBIAN

• Comes in PIXEL and LITE versions

• PIXEL is full desktop environment• LITE is command line only, bare minimum

Raspbian

Page 23: Coffee & Pi - Intro to Pi Workshop

UBUNTU MATE

• Ubuntu 16.04, uses apt-get

• Fully supports the built-in Bluetooth and Wifi on the Raspberry Pi 3

• You’ll need a microSD card that is 6GB or greater.

Page 24: Coffee & Pi - Intro to Pi Workshop
Page 25: Coffee & Pi - Intro to Pi Workshop

SNAPPY UBUNTU CORE

• Official Ubuntu Support• Ubuntu Core 16 for

Pi 2 & 3• Uses the “snappy” tool

for installing software, instead of apt-get

• Much smaller in size than Ubuntu 16.04 Mate

Page 26: Coffee & Pi - Intro to Pi Workshop

WINDOWS 10 IOT CORE

• Windows 10 IoT Core is the operating system.• Uses separate IoT Dashboard to manage

devices.

Page 27: Coffee & Pi - Intro to Pi Workshop

WINDOWS 10 IOT DASHBOARD

Page 28: Coffee & Pi - Intro to Pi Workshop

OTHER 3RD PARTY OPERATING SYSTEMS

• Other software can use one of these as a base• Home Assistant (home automation) uses

HASSbian a Raspberry Pi image with Home Assistant built-in• https://home-assistant.io/docs/hassbian/installati

on/• RetroPi comes with a pre-configured image• InfoSec/Kali comes with a pre-configured image

Page 29: Coffee & Pi - Intro to Pi Workshop

INSTALLING RASPBIANUSING OS X

Page 30: Coffee & Pi - Intro to Pi Workshop

ETCHER ON MAC TO FLASH MICRO SD CARD

• Download and Install Etcher - https://etcher.io• Download OS image, Insert SD memory card, Flash!

Page 31: Coffee & Pi - Intro to Pi Workshop

ETCHER ON MAC TO FLASH MICRO SD CARD

• Wait for the files to copy…

Page 32: Coffee & Pi - Intro to Pi Workshop

ETCHER ON MAC TO FLASH MICRO SD CARD

• Wait for the Validating of the image…

Page 33: Coffee & Pi - Intro to Pi Workshop

ETCHER ON MAC TO FLASH MICRO SD CARD

• When it’s finished, you can safely remove memory card, and insert into Raspberry Pi and boot!

Page 34: Coffee & Pi - Intro to Pi Workshop

INSTALLING RASPBIANUSING WINDOWS

Page 35: Coffee & Pi - Intro to Pi Workshop

ETCHER ON WINDOWS 7+ TO FLASH MICRO SD CARD

• Download and Install Etcher - https://etcher.io• Download OS image, Insert SD memory card, Flash!

Page 36: Coffee & Pi - Intro to Pi Workshop

ETCHER ON WINDOWS 7+ TO FLASH MICRO SD CARD

• Wait for the files to copy…

Page 37: Coffee & Pi - Intro to Pi Workshop

ETCHER ON WINDOWS 7+ TO FLASH MICRO SD CARD

• Wait for the Validating of the image…

Page 38: Coffee & Pi - Intro to Pi Workshop

ETCHER ON WINDOWS 7+ TO FLASH MICRO SD CARD

• I actually saw the Unmounting step…

Page 39: Coffee & Pi - Intro to Pi Workshop

ETCHER ON WINDOWS 7+ TO FLASH MICRO SD CARD

• When it’s finished, you can safely remove memory card, and insert into Raspberry Pi and boot!

Page 40: Coffee & Pi - Intro to Pi Workshop

INSTALLING WINDOWS IOT COREUSING WINDOWS

Page 41: Coffee & Pi - Intro to Pi Workshop

WINDOWS IOT CORE

• Download the Windows 10 IoT Core Dashboard

• https://developer.microsoft.com/en-us/windows/iot/Downloads.htm

• Can be used to download IoT Core and flash SD memory cards

Page 42: Coffee & Pi - Intro to Pi Workshop
Page 43: Coffee & Pi - Intro to Pi Workshop
Page 44: Coffee & Pi - Intro to Pi Workshop
Page 45: Coffee & Pi - Intro to Pi Workshop
Page 46: Coffee & Pi - Intro to Pi Workshop
Page 47: Coffee & Pi - Intro to Pi Workshop
Page 48: Coffee & Pi - Intro to Pi Workshop
Page 49: Coffee & Pi - Intro to Pi Workshop
Page 50: Coffee & Pi - Intro to Pi Workshop
Page 51: Coffee & Pi - Intro to Pi Workshop
Page 52: Coffee & Pi - Intro to Pi Workshop

PROJECT IDEASRASPBERRY PI 3

Page 53: Coffee & Pi - Intro to Pi Workshop

RASPBERRYPI.ORG RESOURCESHTTPS://WWW.RASPBERRYPI.ORG/RESOURCES/

Page 54: Coffee & Pi - Intro to Pi Workshop

MICROSOFT IOT / HACKSTER.IOHTTPS://MICROSOFT.HACKSTER.IO

Page 55: Coffee & Pi - Intro to Pi Workshop

RETROPI

• Popular emulators like Nintendo, Sega, Playstation, Atari

• pre-made image of RetroPie v4.1released on the 5th November 2016.

• https://retropie.org.uk

Page 56: Coffee & Pi - Intro to Pi Workshop

ROBOT CAR/GOPIGO

• GoPiGo is a robot car!• https://www.dexterindustries.com/gopigo/

Page 57: Coffee & Pi - Intro to Pi Workshop

MAGIC MIRROR

Page 58: Coffee & Pi - Intro to Pi Workshop

MAGIC MIRROR

• Intelligent mirror displaying dynamic content using double sided mirror, monitor, & Raspberry Pi

• http://lifehacker.com/build-a-magic-mirror-with-a-raspberry-pi-and-an-old-mon-1750468358

• https://magicmirror.builders/ - Community of Magic Mirror makers and modules, start here!

Page 59: Coffee & Pi - Intro to Pi Workshop

HOME AUTOMATION

Page 60: Coffee & Pi - Intro to Pi Workshop

HOME AUTOMATION

• Open source Nest-like central home automation

• Uses “HASSbian”, Raspberry Pi image with Home Assistant built-in

• https://home-assistant.io/docs/hassbian/installation/

Page 61: Coffee & Pi - Intro to Pi Workshop

LEGO/MINDSTORM/BRICKPI

• BrickPi is best for someone who already has LEGO MINDSTORMS sensors and motors.

• https://www.dexterindustries.com/shop/brickpi-starter-kit/

Page 62: Coffee & Pi - Intro to Pi Workshop

DIGITAL PHOTO FRAME

• Use a Raspberry Pi and monitor/display as a digital photo frame

• http://www.instructables.com/id/How-to-Make-a-Raspberry-Pi-Media-Panel-fka-Digita/

Page 63: Coffee & Pi - Intro to Pi Workshop

INFOSEC/KALI/TOR

• Kali Linux on Raspberry Pi — Pre-built Version• Get a fast SD card with at least 8 GB capacity.• http://docs.kali.org/kali-on-arm/install-kali-linux

-arm-raspberry-pi• Raspberry Pi into a Anonymizing Tor Proxy!

https://learn.adafruit.com/onion-pi/overview• Mr Robot!!!

Page 64: Coffee & Pi - Intro to Pi Workshop

WEATHER/ENVIRONMENT/FARMING

• Can setup Raspberry Pi to collect data from weather station you build yourself!

• https://www.raspberrypi.org/learning/weather-station-guide/

Page 65: Coffee & Pi - Intro to Pi Workshop

OTHER USEFUL RESOURCESFOUND THESE WHILE DOING RESEARCH

Page 66: Coffee & Pi - Intro to Pi Workshop

BERRYBOOT

• bootloader / universal operating system installer

• run multiple OS install on single memory card• http://www.berryterminal.com/doku.php/berryb

oot

Page 67: Coffee & Pi - Intro to Pi Workshop

ETCHER

• Burn images to SD cards & USB drives, safe & easy.

• Supports Windows, OS X, Linux• https://etcher.io

Page 68: Coffee & Pi - Intro to Pi Workshop

PHILLY PUG MEETUP

• Philly Python User Group, very active!!!• https://www.meetup.com/phillypug/• Free demo and project nights to learn and share• SOLD OUT - $30 Intro to Python Course

https://www.meetup.com/phillypug/events/232030203/

• Next Free Meetup: How to Test and Deploy Python Web App - March 30, Thurshttps://www.meetup.com/phillypug/events/237877302/

Page 69: Coffee & Pi - Intro to Pi Workshop

THE HACKTORY MEETUP

• Active makerspace in Philly, 3645 Lancaster Ave

• https://www.meetup.com/The-Hacktory-Exploring-Creativity-Technology-in-Philly/

• Free project nights, soldering courses on Saturdays, sewing courses on Sundays

Page 70: Coffee & Pi - Intro to Pi Workshop

PHILLY MAKERS MEETUP

• Hosted at NextFab in Philly, 2025 Washington Ave

• https://www.meetup.com/Philly-Makers/• Electro-Makers (Open Workshop) meets every

2 weeks on Wednesdays 6-8pm• “If you're interested in making, hacking,

designing, programming, or simply learning more about Electronics”

Page 71: Coffee & Pi - Intro to Pi Workshop
Page 72: Coffee & Pi - Intro to Pi Workshop

BEFORE WE CLOSE• I am asking you to build a project or your own idea!

Use #CoffeeAndPi• I am asking you to share your excitement and

knowledge with those around you!• I am challenging you to inspire others and use

technology to change the world!• You are never too old to learn, or too young to

teach!• If you are interested in hosting or starting a

Coffee & Pi meetup, let me know!

Page 73: Coffee & Pi - Intro to Pi Workshop

THANK YOU! QUESTIONS?GRAB MORE COFFEE AND

PIE!

COFFEEANDPI.IOMEETUP.COM/COFFEE-AND-PI

#COFFEEANDPI