Coffee & Pi - Intro to Pi Workshop

Post on 19-Mar-2017

90 views 0 download

Transcript of Coffee & Pi - Intro to Pi Workshop

COFFEE & PIINTRO TO PI WORKSHOP

BRAD DERSTINECOFFEEANDPI.IO

MEETUP.COM/COFFEE-AND-PI#COFFEEANDPI

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?

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.

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

DEMO!

RASPBERRY PI HARDWARERASPBERRY PI 3

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.

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!

DREAM KILLER SWITCH

• aka memory card is locked

• Toggle the switch to lock/unlock

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

RASPBERRY PI OPERATING SYSTEMSRASPBERRY PI 3

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

RASPBIAN

• Has new PIXEL desktop• Pi Improved Xwindows

Environment, Lightweight

RASPBIAN

RASPBIAN

• Comes in PIXEL and LITE versions

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

Raspbian

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.

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

WINDOWS 10 IOT CORE

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

devices.

WINDOWS 10 IOT DASHBOARD

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

INSTALLING RASPBIANUSING OS X

ETCHER ON MAC TO FLASH MICRO SD CARD

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

ETCHER ON MAC TO FLASH MICRO SD CARD

• Wait for the files to copy…

ETCHER ON MAC TO FLASH MICRO SD CARD

• Wait for the Validating of the image…

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!

INSTALLING RASPBIANUSING WINDOWS

ETCHER ON WINDOWS 7+ TO FLASH MICRO SD CARD

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

ETCHER ON WINDOWS 7+ TO FLASH MICRO SD CARD

• Wait for the files to copy…

ETCHER ON WINDOWS 7+ TO FLASH MICRO SD CARD

• Wait for the Validating of the image…

ETCHER ON WINDOWS 7+ TO FLASH MICRO SD CARD

• I actually saw the Unmounting step…

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!

INSTALLING WINDOWS IOT COREUSING WINDOWS

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

PROJECT IDEASRASPBERRY PI 3

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

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

RETROPI

• Popular emulators like Nintendo, Sega, Playstation, Atari

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

• https://retropie.org.uk

ROBOT CAR/GOPIGO

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

MAGIC MIRROR

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!

HOME AUTOMATION

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/

LEGO/MINDSTORM/BRICKPI

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

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

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/

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!!!

WEATHER/ENVIRONMENT/FARMING

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

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

OTHER USEFUL RESOURCESFOUND THESE WHILE DOING RESEARCH

BERRYBOOT

• bootloader / universal operating system installer

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

oot

ETCHER

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

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

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/

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

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”

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!

THANK YOU! QUESTIONS?GRAB MORE COFFEE AND

PIE!

COFFEEANDPI.IOMEETUP.COM/COFFEE-AND-PI

#COFFEEANDPI