SlideShare a Scribd company logo
Raspberry Pi 101
Getting Started
A little history…
Pre-history
• The wonder-
computers of the
1980s were easy
enough for youth to
get started with
(BASIC at boot) and
get experience with
CS before going onto
college
The 90’s dark ages…
• Systems evolved beyond the
comprehension of younger
enthusiasts
• BASIC no longer shipped with
computers
• Gaming systems attracted
more attention than 8-bit
computers
Why are we here?
• Eben Upton started investigating bare bones computers
in 2006 while director of studies in CS at Cambridge
University. Noticing a decline in skills of those applying.
• Because Eben moved from Cambridge to Broadcom,
his 8-bit prototypes evolved into designs using modern
arm based system-on-chip microprocessors.
• A partnership with BBC fell through due to non-
compete. A last minute cell phone video (by a senior
BBC tech journalist) of the prototypes went viral - and
interest took off.
Purpose
• Provide cheap
computers to children to
kick start the application
pipeline going into
university CS courses…
Side effects….
• While succeeding in kicking off
a resurgence in applications to
Cambridge CS - much of the
interest in the Pi has been
hobbyists and “makers”
• We can now break things
without getting in trouble!!!
• Prices have gotten weird…
• working zero board for $5
• pic16F84 chip $3.72
Performance
https://hackadaycom.files.wordpress.com/2016/02/
pispecs2.png
Feb 2016
Nov 2015
Feb 2015 Feb 2012Wireless Version
Feb 2017
• Cray X-MP in 1982 peak 400 MFLOPS for 2.38*$15=
$35,700,000 in today’s money - can fit in your data
center
• Pi3 = 462.07 MFLOPS for $35 in 2016 - can fit in your
pocket
https://www.element14.com/community/community/raspberry-pi/blog/2016/02/29/the-most-comprehensive-raspberry-pi-comparison-benchmark-ever
Getting started…
You can always start over!
Hold down shift when you boot up - and you can reinstall
raspbian
Don’t panic again!
Raspi zero wireless computers are $10 - go buy a new
one if you let the magic smoke out
The Very Basics
Set a good password for
your “pi” account
• Always a good idea to keep your pi safe
• choose a unique username (or keep “pi”) and
password that you can remember
• Docs are at https://www.raspberrypi.org/
documentation/linux/usage/users.md
Easy to remember passwords
Raspi config
Set your password
Set your host name
So you can ssh into it without having to type in the ip
address
Add another user
Use this account when not doing admin stuff - or talking
with hardware
Update software
Keep things up to date every time you work with the Pi
$ sudo apt-get update; sudo apt-get upgrade -y
Prompt
All types of hardware
Now what do I do with all this pi?
When do I use Arduino?
• Arduino is an easy to use micro controller board with cheaply available
knock-off version for a few dollars.
• Useful for when there isn’t an I2C compatible sensor where you need to
change analog to digital signals
• Useful for when you need to worry about time - the Pi isn’t very precise
when it comes to time control or time measurement because it’s busy
running an operating system (The Arduino runs only the program you put in
it)
• Useful for controlling neo-pixels (multicolor RGB LEDs)
• With specific add on hardware - you can control motors and servos nicely
• Battery powered applications that aren’t internet connected
Use Pi Zero W
• If you’re making something permanent (solder wires).
Not pulling apart after a few days
• If you want to connect your project to the internet/IOT
• If you want to store data in a database
• If it’s going to do one thing generally and not be hooked
up to a keyboard and monitor (embedded) (magic
mirrors are OK though)
• If you need A2D or neopixels - add an Arduino to the Pi
Use a Pi 3 or greater…
• If you’ll be using the computer’s desktop or using it as
a kiosk
• You want speed (don’t want your retropi games
slowing down right?)
• You’ll be using video
• You’re experimenting using a breadboard (soldered
in 40 pin header) - develop software on the PI 3 and
breadboard - then simply move the flash to the
hardwired project
Hardware Setup
Breadboards help you get started quickly with
no soldering
First project: BLINKEN-LIGHTS
Improving humanity through periodic emissions of
photons…
Raspberry pi overview
It’ll be awesome
I promise - sort of…
Popular Projects
• Retropi (video games)
• Kodi (raspi based Roku)
• Magic mirror
Things I want to learn…
• Elixir (fault tolerant functional language) - cluster
computing
• Displays
• I2C interfacing - battery powered sensing
• Halloween costumes
Other things to do…
• Install fail2ban: http://kamilslab.com/2016/12/11/
how-to-install-fail2ban-on-the-raspberry-pi/
• Install key only ssh: https://www.raspberrypi.org/
documentation/remote-access/ssh/passwordless.md
• Turn off password ssh: https://www.jaredwolff.com/
blog/passwordless-ssh-raspberry-pi/
• Connect to raspi zero w pi over usb https://
www.youtube.com/watch?v=xj3MPmJhAPU
GIT Bumper Talk
What is GIT?
• GIT is a software version
control system (VCS)
• Keeps track of your programs
changes as you “commit”
them as commits (snapshots)
in multiple branches
(timelines of snapshots)
• Makes it easy to share your
programs and work with other
people on the same software
(making cat herding easier)
What does GIT let you do?
• GIT tracks commits in different branches of a timeline (just like back
to the future)
• Lets you work on a software project while someone else is working
on the same project.
• You make changes A, B, and C on an example FOO branch
• Friend makes changes D,E, and F on example BAR branch
• GIT allows you to merge all the changes back to the MASTER branch
Don’t be afraid
• Just making changes in logical chunks and
committing at the right time can help you a lot
• Can roll back changes if you make a mistake
• Lets you download other peoples code to use
locally
Initial setup
Always Use The Cloud
• If someone karate chops your pi -
your software is still safe up on
the cloud.
• Two people can work on the same
project in collaboration.
• You can keep it private or share
with the world.
• Bitbucket lets you keep things
private or public - but isn’t very
popular
• Github is very popular - but can’t
keep private without 🤑
Set up your SSH Keys
Much easier and safer than password access to
bitbucket
Sign up for github…
Copy your public key to github
https://github.com/settings/keys
cut and paste…
Download a repo
Raspberry pi overview
Make a a new branch
Add changes to staging
• Make a file
• “Add” it to staging
• Check the status
Commit the change
Push the change to github
Shows up on GitHub
Make a “pull-request”
Merge the pull request
Pull back from GitHub
Cleaning up on the pi…
• Switch to master
• Pull master from
github
• delete matt/hello
What did we do?
git log --graph
A little practice - and the git book
helps a lot
https://git-scm.com/book/en/v2

More Related Content

What's hot (8)

PPTX
Automating with the Internet of Things
Justin Denton
 
PPTX
Raspberry Pi Training in Amritsar
E2MATRIX
 
PPTX
Raspberry Pi Training in Chandigarh
E2MATRIX
 
PPTX
Raspberry Pi Training in Phagwara
E2MATRIX
 
PPTX
Raspberry Pi Training in Jalandhar
E2MATRIX
 
KEY
Fun with Linux Telephony
Donald Burr
 
PDF
Raspberry pi Update - Encourage your IOT
LF Events
 
PPTX
Abc book final
bcsengage
 
Automating with the Internet of Things
Justin Denton
 
Raspberry Pi Training in Amritsar
E2MATRIX
 
Raspberry Pi Training in Chandigarh
E2MATRIX
 
Raspberry Pi Training in Phagwara
E2MATRIX
 
Raspberry Pi Training in Jalandhar
E2MATRIX
 
Fun with Linux Telephony
Donald Burr
 
Raspberry pi Update - Encourage your IOT
LF Events
 
Abc book final
bcsengage
 

Similar to Raspberry pi overview (20)

PDF
ch4-Software is Everywhere
ssuser06ea42
 
PPTX
Raspberry pi
Pravesh Sahu
 
PPTX
Coffee & Pi - Getting Started with Python
Brad ☼ Derstine
 
PPTX
Unit 6 - PART2.pptx
BLACKSPAROW
 
PDF
Let's play mini card-sized computer boards on the business!
Masafumi Ohta
 
PPTX
Raspberry pi
Shubham singh
 
PPTX
IoT for data science Module 5 - Raspberry Pi.pptx
MadhurimaDas52
 
PPTX
Raspberry pi. mini computer networks science ppt
harshit762481
 
PPTX
Up and running with Raspberry Pi
Shahed Mehbub
 
PDF
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
Ahmed El-Arabawy
 
PPT
Raspberrypi best ppt
SOMRAJ GAUTAM
 
PDF
Everyone wants (someone else) to do it: writing documentation for open source...
Jody Garnett
 
PPTX
Internet of Things, TYBSC IT, Semester 5, Unit II
Arti Parab Academics
 
PPTX
Build IoT Applications with C#
Ken Samson, MISM
 
PPTX
Raspberry Pi - Unlocking New Ideas for Your Library
Brian Pichman
 
PPTX
Introduction to Raspberry Pi
ehrenbrav
 
PDF
Introduction to the rapid prototyping with python and linux for embedded systems
Naohiko Shimizu
 
PPTX
Raspberry pi
Aradhya Kundu
 
PPT
Raspberry Pi Technology
Ravi Basil
 
PPTX
IOT notes ....,.........
taetaebts431
 
ch4-Software is Everywhere
ssuser06ea42
 
Raspberry pi
Pravesh Sahu
 
Coffee & Pi - Getting Started with Python
Brad ☼ Derstine
 
Unit 6 - PART2.pptx
BLACKSPAROW
 
Let's play mini card-sized computer boards on the business!
Masafumi Ohta
 
Raspberry pi
Shubham singh
 
IoT for data science Module 5 - Raspberry Pi.pptx
MadhurimaDas52
 
Raspberry pi. mini computer networks science ppt
harshit762481
 
Up and running with Raspberry Pi
Shahed Mehbub
 
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
Ahmed El-Arabawy
 
Raspberrypi best ppt
SOMRAJ GAUTAM
 
Everyone wants (someone else) to do it: writing documentation for open source...
Jody Garnett
 
Internet of Things, TYBSC IT, Semester 5, Unit II
Arti Parab Academics
 
Build IoT Applications with C#
Ken Samson, MISM
 
Raspberry Pi - Unlocking New Ideas for Your Library
Brian Pichman
 
Introduction to Raspberry Pi
ehrenbrav
 
Introduction to the rapid prototyping with python and linux for embedded systems
Naohiko Shimizu
 
Raspberry pi
Aradhya Kundu
 
Raspberry Pi Technology
Ravi Basil
 
IOT notes ....,.........
taetaebts431
 
Ad

Recently uploaded (20)

PDF
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PDF
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
PDF
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
PPTX
Introduction to Internal Combustion Engines - Types, Working and Camparison.pptx
UtkarshPatil98
 
PDF
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PPTX
Water Resources Engineering (CVE 728)--Slide 3.pptx
mohammedado3
 
PPTX
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
PPTX
Knowledge Representation : Semantic Networks
Amity University, Patna
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PPTX
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PPT
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
PPTX
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PPT
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PDF
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
Introduction to Internal Combustion Engines - Types, Working and Camparison.pptx
UtkarshPatil98
 
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
Water Resources Engineering (CVE 728)--Slide 3.pptx
mohammedado3
 
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
Knowledge Representation : Semantic Networks
Amity University, Patna
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
Ad

Raspberry pi overview

  • 3. Pre-history • The wonder- computers of the 1980s were easy enough for youth to get started with (BASIC at boot) and get experience with CS before going onto college
  • 4. The 90’s dark ages… • Systems evolved beyond the comprehension of younger enthusiasts • BASIC no longer shipped with computers • Gaming systems attracted more attention than 8-bit computers
  • 5. Why are we here? • Eben Upton started investigating bare bones computers in 2006 while director of studies in CS at Cambridge University. Noticing a decline in skills of those applying. • Because Eben moved from Cambridge to Broadcom, his 8-bit prototypes evolved into designs using modern arm based system-on-chip microprocessors. • A partnership with BBC fell through due to non- compete. A last minute cell phone video (by a senior BBC tech journalist) of the prototypes went viral - and interest took off.
  • 6. Purpose • Provide cheap computers to children to kick start the application pipeline going into university CS courses…
  • 7. Side effects…. • While succeeding in kicking off a resurgence in applications to Cambridge CS - much of the interest in the Pi has been hobbyists and “makers” • We can now break things without getting in trouble!!! • Prices have gotten weird… • working zero board for $5 • pic16F84 chip $3.72
  • 9. • Cray X-MP in 1982 peak 400 MFLOPS for 2.38*$15= $35,700,000 in today’s money - can fit in your data center • Pi3 = 462.07 MFLOPS for $35 in 2016 - can fit in your pocket https://www.element14.com/community/community/raspberry-pi/blog/2016/02/29/the-most-comprehensive-raspberry-pi-comparison-benchmark-ever
  • 11. You can always start over! Hold down shift when you boot up - and you can reinstall raspbian
  • 12. Don’t panic again! Raspi zero wireless computers are $10 - go buy a new one if you let the magic smoke out
  • 14. Set a good password for your “pi” account • Always a good idea to keep your pi safe • choose a unique username (or keep “pi”) and password that you can remember • Docs are at https://www.raspberrypi.org/ documentation/linux/usage/users.md
  • 15. Easy to remember passwords
  • 18. Set your host name So you can ssh into it without having to type in the ip address
  • 19. Add another user Use this account when not doing admin stuff - or talking with hardware
  • 20. Update software Keep things up to date every time you work with the Pi $ sudo apt-get update; sudo apt-get upgrade -y Prompt
  • 21. All types of hardware Now what do I do with all this pi?
  • 22. When do I use Arduino? • Arduino is an easy to use micro controller board with cheaply available knock-off version for a few dollars. • Useful for when there isn’t an I2C compatible sensor where you need to change analog to digital signals • Useful for when you need to worry about time - the Pi isn’t very precise when it comes to time control or time measurement because it’s busy running an operating system (The Arduino runs only the program you put in it) • Useful for controlling neo-pixels (multicolor RGB LEDs) • With specific add on hardware - you can control motors and servos nicely • Battery powered applications that aren’t internet connected
  • 23. Use Pi Zero W • If you’re making something permanent (solder wires). Not pulling apart after a few days • If you want to connect your project to the internet/IOT • If you want to store data in a database • If it’s going to do one thing generally and not be hooked up to a keyboard and monitor (embedded) (magic mirrors are OK though) • If you need A2D or neopixels - add an Arduino to the Pi
  • 24. Use a Pi 3 or greater… • If you’ll be using the computer’s desktop or using it as a kiosk • You want speed (don’t want your retropi games slowing down right?) • You’ll be using video • You’re experimenting using a breadboard (soldered in 40 pin header) - develop software on the PI 3 and breadboard - then simply move the flash to the hardwired project
  • 25. Hardware Setup Breadboards help you get started quickly with no soldering
  • 26. First project: BLINKEN-LIGHTS Improving humanity through periodic emissions of photons…
  • 28. It’ll be awesome I promise - sort of…
  • 29. Popular Projects • Retropi (video games) • Kodi (raspi based Roku) • Magic mirror
  • 30. Things I want to learn… • Elixir (fault tolerant functional language) - cluster computing • Displays • I2C interfacing - battery powered sensing • Halloween costumes
  • 31. Other things to do… • Install fail2ban: http://kamilslab.com/2016/12/11/ how-to-install-fail2ban-on-the-raspberry-pi/ • Install key only ssh: https://www.raspberrypi.org/ documentation/remote-access/ssh/passwordless.md • Turn off password ssh: https://www.jaredwolff.com/ blog/passwordless-ssh-raspberry-pi/ • Connect to raspi zero w pi over usb https:// www.youtube.com/watch?v=xj3MPmJhAPU
  • 33. What is GIT? • GIT is a software version control system (VCS) • Keeps track of your programs changes as you “commit” them as commits (snapshots) in multiple branches (timelines of snapshots) • Makes it easy to share your programs and work with other people on the same software (making cat herding easier)
  • 34. What does GIT let you do? • GIT tracks commits in different branches of a timeline (just like back to the future) • Lets you work on a software project while someone else is working on the same project. • You make changes A, B, and C on an example FOO branch • Friend makes changes D,E, and F on example BAR branch • GIT allows you to merge all the changes back to the MASTER branch
  • 35. Don’t be afraid • Just making changes in logical chunks and committing at the right time can help you a lot • Can roll back changes if you make a mistake • Lets you download other peoples code to use locally
  • 37. Always Use The Cloud • If someone karate chops your pi - your software is still safe up on the cloud. • Two people can work on the same project in collaboration. • You can keep it private or share with the world. • Bitbucket lets you keep things private or public - but isn’t very popular • Github is very popular - but can’t keep private without 🤑
  • 38. Set up your SSH Keys Much easier and safer than password access to bitbucket
  • 39. Sign up for github…
  • 40. Copy your public key to github https://github.com/settings/keys cut and paste…
  • 43. Make a a new branch
  • 44. Add changes to staging • Make a file • “Add” it to staging • Check the status
  • 46. Push the change to github
  • 47. Shows up on GitHub
  • 49. Merge the pull request
  • 50. Pull back from GitHub
  • 51. Cleaning up on the pi… • Switch to master • Pull master from github • delete matt/hello
  • 52. What did we do? git log --graph
  • 53. A little practice - and the git book helps a lot https://git-scm.com/book/en/v2