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

Automating with the Internet of Things
Automating with the Internet of ThingsAutomating with the Internet of Things
Automating with the Internet of Things
Justin Denton
 
Raspberry Pi Training in Amritsar
Raspberry Pi Training in AmritsarRaspberry Pi Training in Amritsar
Raspberry Pi Training in Amritsar
E2MATRIX
 
Raspberry Pi Training in Chandigarh
Raspberry Pi Training in ChandigarhRaspberry Pi Training in Chandigarh
Raspberry Pi Training in Chandigarh
E2MATRIX
 
Raspberry Pi Training in Phagwara
Raspberry Pi Training in PhagwaraRaspberry Pi Training in Phagwara
Raspberry Pi Training in Phagwara
E2MATRIX
 
Raspberry Pi Training in Jalandhar
Raspberry Pi Training in JalandharRaspberry Pi Training in Jalandhar
Raspberry Pi Training in Jalandhar
E2MATRIX
 
Fun with Linux Telephony
Fun with Linux TelephonyFun with Linux Telephony
Fun with Linux Telephony
Donald Burr
 
Raspberry pi Update - Encourage your IOT
Raspberry pi Update - Encourage your IOTRaspberry pi Update - Encourage your IOT
Raspberry pi Update - Encourage your IOT
LF Events
 
Abc book final
Abc book finalAbc book final
Abc book final
bcsengage
 

What's hot (8)

Automating with the Internet of Things
Automating with the Internet of ThingsAutomating with the Internet of Things
Automating with the Internet of Things
 
Raspberry Pi Training in Amritsar
Raspberry Pi Training in AmritsarRaspberry Pi Training in Amritsar
Raspberry Pi Training in Amritsar
 
Raspberry Pi Training in Chandigarh
Raspberry Pi Training in ChandigarhRaspberry Pi Training in Chandigarh
Raspberry Pi Training in Chandigarh
 
Raspberry Pi Training in Phagwara
Raspberry Pi Training in PhagwaraRaspberry Pi Training in Phagwara
Raspberry Pi Training in Phagwara
 
Raspberry Pi Training in Jalandhar
Raspberry Pi Training in JalandharRaspberry Pi Training in Jalandhar
Raspberry Pi Training in Jalandhar
 
Fun with Linux Telephony
Fun with Linux TelephonyFun with Linux Telephony
Fun with Linux Telephony
 
Raspberry pi Update - Encourage your IOT
Raspberry pi Update - Encourage your IOTRaspberry pi Update - Encourage your IOT
Raspberry pi Update - Encourage your IOT
 
Abc book final
Abc book finalAbc book final
Abc book final
 

Similar to Raspberry pi overview

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

Similar to Raspberry pi overview (20)

ch4-Software is Everywhere
ch4-Software is Everywherech4-Software is Everywhere
ch4-Software is Everywhere
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Coffee & Pi - Getting Started with Python
Coffee & Pi - Getting Started with PythonCoffee & Pi - Getting Started with Python
Coffee & Pi - Getting Started with Python
 
Unit 6 - PART2.pptx
Unit 6 - PART2.pptxUnit 6 - PART2.pptx
Unit 6 - PART2.pptx
 
Let's play mini card-sized computer boards on the business!
Let's play mini card-sized computer boards on the business!Let's play mini card-sized computer boards on the business!
Let's play mini card-sized computer boards on the business!
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
IoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptxIoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptx
 
Raspberry pi. mini computer networks science ppt
Raspberry pi. mini computer networks science pptRaspberry pi. mini computer networks science ppt
Raspberry pi. mini computer networks science ppt
 
Up and running with Raspberry Pi
Up and running with Raspberry PiUp and running with Raspberry Pi
Up and running with Raspberry Pi
 
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux BoxEmbedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
 
Raspberrypi best ppt
Raspberrypi best ppt Raspberrypi best ppt
Raspberrypi best ppt
 
Everyone wants (someone else) to do it: writing documentation for open source...
Everyone wants (someone else) to do it: writing documentation for open source...Everyone wants (someone else) to do it: writing documentation for open source...
Everyone wants (someone else) to do it: writing documentation for open source...
 
Internet of Things, TYBSC IT, Semester 5, Unit II
Internet of Things, TYBSC IT, Semester 5, Unit IIInternet of Things, TYBSC IT, Semester 5, Unit II
Internet of Things, TYBSC IT, Semester 5, Unit II
 
Build IoT Applications with C#
Build IoT Applications with C#Build IoT Applications with C#
Build IoT Applications with C#
 
What is Raspberry Pi
What is Raspberry PiWhat is Raspberry Pi
What is Raspberry Pi
 
Raspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your LibraryRaspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your Library
 
Introduction to Raspberry Pi
Introduction to Raspberry PiIntroduction to Raspberry Pi
Introduction to Raspberry Pi
 
Introduction to the rapid prototyping with python and linux for embedded systems
Introduction to the rapid prototyping with python and linux for embedded systemsIntroduction to the rapid prototyping with python and linux for embedded systems
Introduction to the rapid prototyping with python and linux for embedded systems
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry Pi Technology
Raspberry Pi TechnologyRaspberry Pi Technology
Raspberry Pi Technology
 

Recently uploaded

Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 

Recently uploaded (20)

Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 

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…
  • 27.
  • 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…
  • 42.
  • 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