SlideShare a Scribd company logo
Shahed Mehbub
President, Robo Mechatronics Association Bangladesh(RMABD)
What we are gonna learn today
• Introduction to Raspberry Pi
• Hardware description
• OS instruction
• Linux Shell Commands
• Python Basics
What is a Raspberry Pi?
• Credit Card sized single board computer
• Plugs into a TV or a Monitor
• Based on Broadcom chips
• Runs a complete version of Linux
• Has multiple usb ports for communication
• Supports gigabit ethernet lan 10/100
• Can deliver full HD (1080P) video output
• Affordable
Why Raspberry Pi?
• Very Low Cost ($25 for Model A & $35 for Model B/B+)
• Great tool for Learning Programming, Computers & Concepts of
Embedded Linux, etc
• Support for All Age Groups (School Children, College
Undergraduates, Professional Developers, Programmers)
• Supports & runs Free and Open Source Linux OS
• Consumes less than 5W of Power
• Supports Full HD Video Output (1080p), Multiple USB Ports , etc
• Fun to learn & explore. You are limited by your imagination
Technology used in a Pi
Model A
Model B+
Model B+
Hardwares :
Arduino vs Raspberry Pi
Specs Arduino Uno Raspberry Pi Model B+
CPU type Microcontroller Microprocessor
Operating System None Linux (usually Raspbian)
Speed 16 Mhz 700 Mhz
RAM 2KB 512MB
GPU/Display None VideoCore IV GPU
Disk 32KB Depends on SD card
GPIO pins 14 digital pins (includes 6 analog) 26 digital pins
Other connectivity None USB, Ethernet, HDMI, audio
Power consumption 0.25W 3.5W
Minimum things to get started
• Raspberry Pi
• HDMI/VGA monitor
• USB Keyboard
• USB Mouse
• USB WiFi adapter (If isn't built-in)
• 2.0+ Amp USB Power Adapter
• Micro-USB cable
• 8GB+ Micro-SD card
• A Computer to load initial card image
Raspberry Pi Desktop
A tour to Raspbian
• Web Browser: Epiphany
• Office Applications: Libreoffice
• Media Player: VLC
• Run: sudo apt-get install vlc
• Programming:
• Geany (an IDE)
• IDLE, IDLE3 (python IDE)
• Sonic Pi
• Scratch
A Little bit of linux
• Bash (Linux Shell)
• Terminal Commands
• Linux File Systems
Linux Shell
• To interact with the Operating System or
Hardware we need to enter some
commands in the “Shell”.
• Simply put, the shell is a program that
takes your commands from the
keyboard and gives them to the
operating system to perform.
Basic Linux Commands
• Show directory contents:
• (Do this after every command below to see what has changed)
• ls or ls -l
• Make directory:
• mkdir lesson
• Change directory:
• cd lesson
• Create an empty file:
• touch myfile
• Edit file with nano:
• nano myfile
• Type something random inside the text editor then press Ctrl+X to save and quit.
• View file quickly:
• cat myfile
• Copy file
• cp myfile myfile2
• Remove file:
• rm myfile
• Move file
• mv myfile2 myfile
More Useful Commands
Command Purpose
man Get information about a particular
command. Eg: man ls
ifconfig Get network information like IP
address
adduser Create user
passwd Change password
uname –a, uname -r Show OS information
history Shows past commands you ran
chmod Change permissions of a file/directory
File System Directory Layout
• /home/pi or “~”
• Your “Home” directory
• Removable Drives at
• /media/pi/….
Programming on Raspberry Pi
• Raspberry Pi supports several Programming Languages like : Python,
C, C++, JAVA, Perl, HTML5, JavaScript, JQuery etc.
• Python is supported as the principal or main user programming
language.
• Extremely powerful and flexible language.
• Can also be used to control hardware on the Pi.
• Compiled using gcc (GNU Compiler Collection)
** Learning Programming = Practice Writing Programs
Programming on Raspberry Pi
Time to do Python!
Why Python!
• General Purpose Language
• Large Standard Code Library
• Can be compiled to Machine Language
• Can call C code (ctypes)
• Cleaner Coding Style
• Lots of libraries
Life is short…
(Learn Python)
Python Basics – Where to write Python
• IDLE
• Spyder
• Atom
• PyCharm
Python Basics – What to learn
• Print Statements
• Indentation
• Variables
• Comments
• Lists, Dictionaries
• Conditionals – if, elif
• Loops
• Iteration and Range
• Functions
• Exception Handling
Python Basics – Print Statements
print(“Hello World!!!”)
Python Basics – Indentation
Python Basics – Variables
• Numbers(int, float, long, complex)
• Strings
• Boolean
• List
• Tuple
• Dictionary
Python Basics – Comments
Python Basics – Lists and Dictionaries
Python Basics – Conditionals
Python Basics – Loops
Python Basics – Iteration and Range
Python Basics – Functions
Python Basics – Exception Handling
Questions!
Exploring the ABC's of Raspberry Pi with Python

More Related Content

PPTX
Up and running with Raspberry Pi
PPTX
Exploring the abc's of raspberry pi and python(day 2)
PPTX
Raspberry pi : how to get started
PPTX
Pi Is For Python
PPTX
Raspberry Pi (Introduction)
ODP
Connecting Hardware to the Web with the BeagleBone
ODP
Raspberry Pi and Amateur Radio
PDF
Polstra 44con2012
Up and running with Raspberry Pi
Exploring the abc's of raspberry pi and python(day 2)
Raspberry pi : how to get started
Pi Is For Python
Raspberry Pi (Introduction)
Connecting Hardware to the Web with the BeagleBone
Raspberry Pi and Amateur Radio
Polstra 44con2012

What's hot (20)

PDF
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
PPTX
Introduction to raspberry pi
ODP
DigiPinguïns: demo Raspberry Pi (Koen De Smet)
ODP
Introduction to Raspberry Pi and GPIO
ODP
Debian & the BeagleBone Black
PDF
BeagleBone Black Using Python
PDF
Single Board Computers & Raspberry Pi Basics
PDF
Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...
PPTX
Getting Started with Raspberry Pi
PDF
BeagleBone Workshop
PDF
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
ODP
Thotcon2013
PPSX
Low Cost HD Surveillance Camera using Raspberry PI
PDF
Hands On Embedded Linux with BeagleBone Black
PPTX
Getting Started with Raspberry Pi and Arduino
PDF
LCA2018 Open Hardware MiniConference: LoliBot Software
PPTX
Raspberry Pi Using Python
PDF
My presentation raspberry pi
PDF
Introduction to the rapid prototyping with python and linux for embedded systems
PPTX
Beagle bone black by Boddukuri venkata saiteja
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
Introduction to raspberry pi
DigiPinguïns: demo Raspberry Pi (Koen De Smet)
Introduction to Raspberry Pi and GPIO
Debian & the BeagleBone Black
BeagleBone Black Using Python
Single Board Computers & Raspberry Pi Basics
Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...
Getting Started with Raspberry Pi
BeagleBone Workshop
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Thotcon2013
Low Cost HD Surveillance Camera using Raspberry PI
Hands On Embedded Linux with BeagleBone Black
Getting Started with Raspberry Pi and Arduino
LCA2018 Open Hardware MiniConference: LoliBot Software
Raspberry Pi Using Python
My presentation raspberry pi
Introduction to the rapid prototyping with python and linux for embedded systems
Beagle bone black by Boddukuri venkata saiteja
Ad

Similar to Exploring the ABC's of Raspberry Pi with Python (20)

ODP
Raspberry Pi introduction
PPTX
Raspberry pi
PPTX
Raspberry Pi Free Session - 20_09_2014
PPTX
Raspberry Pi Session - 22_11_2014
PDF
Raspberry pi overview
PPTX
RaspberryPi & Python Workshop Day - 01.pptx
PDF
Raspberry pi: Conceptos básicos de la arquitectura de la computadora raspberr...
PPTX
Raspberry pi
PDF
Raspberry pi Board Hardware & Software Setup
PPTX
Raspberry Pi Introductory Lecture
PPTX
Raspberry Pi ppt.pptx
PPTX
Raspberry Pi ppt.pptx
PPTX
Introduction To Raspberry Pi with Simple GPIO pin Control
PPTX
Configuring Raspberry Pi as a Dev Environment
PPTX
introduction to Raspberry pi
PPTX
Raspberry pi
PPTX
Raspberry pi
PDF
Introduction to Raspberry Pi
PPTX
Raspberry Pi - Unlocking New Ideas for Your Library
PDF
Introduction to Raspberry PI
Raspberry Pi introduction
Raspberry pi
Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Session - 22_11_2014
Raspberry pi overview
RaspberryPi & Python Workshop Day - 01.pptx
Raspberry pi: Conceptos básicos de la arquitectura de la computadora raspberr...
Raspberry pi
Raspberry pi Board Hardware & Software Setup
Raspberry Pi Introductory Lecture
Raspberry Pi ppt.pptx
Raspberry Pi ppt.pptx
Introduction To Raspberry Pi with Simple GPIO pin Control
Configuring Raspberry Pi as a Dev Environment
introduction to Raspberry pi
Raspberry pi
Raspberry pi
Introduction to Raspberry Pi
Raspberry Pi - Unlocking New Ideas for Your Library
Introduction to Raspberry PI
Ad

Recently uploaded (20)

PPTX
"Fundamentals of Digital Image Processing: A Visual Approach"
PDF
Chapter -24-By Dr Sajid Ali Ansari 2021.pdf
PPTX
Embedded for Artificial Intelligence 1.pptx
PPTX
Lecture-3-Computer-programming for BS InfoTech
PPTX
Sem-8 project ppt fortvfvmat uyyjhuj.pptx
PPTX
figurative-languagepowerpoint-150309132252-conversion-gate01.pptx
PDF
Cableado de Controladores Logicos Programables
PPT
chapter_1_a.ppthduushshwhwbshshshsbbsbsbsbsh
PPTX
title _yeOPC_Poisoning_Presentation.pptx
PDF
Layer23-Switch.com The Cisco Catalyst 9300 Series is Cisco’s flagship stackab...
PPTX
5. MEASURE OF INTERIOR AND EXTERIOR- MATATAG CURRICULUM.pptx
PPTX
KVL KCL ppt electrical electronics eee tiet
PPTX
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
PPTX
STEEL- intro-1.pptxhejwjenwnwnenemwmwmwm
PPTX
ERP good ERP good ERP good ERP good good ERP good ERP good
PPT
Lines and angles cbse class 9 math chemistry
PPTX
quadraticequations-111211090004-phpapp02.pptx
PPTX
Operating System Processes_Scheduler OSS
PPTX
了解新西兰毕业证(Wintec毕业证书)怀卡托理工学院毕业证存档可查的
PDF
How NGOs Save Costs with Affordable IT Rentals
"Fundamentals of Digital Image Processing: A Visual Approach"
Chapter -24-By Dr Sajid Ali Ansari 2021.pdf
Embedded for Artificial Intelligence 1.pptx
Lecture-3-Computer-programming for BS InfoTech
Sem-8 project ppt fortvfvmat uyyjhuj.pptx
figurative-languagepowerpoint-150309132252-conversion-gate01.pptx
Cableado de Controladores Logicos Programables
chapter_1_a.ppthduushshwhwbshshshsbbsbsbsbsh
title _yeOPC_Poisoning_Presentation.pptx
Layer23-Switch.com The Cisco Catalyst 9300 Series is Cisco’s flagship stackab...
5. MEASURE OF INTERIOR AND EXTERIOR- MATATAG CURRICULUM.pptx
KVL KCL ppt electrical electronics eee tiet
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
STEEL- intro-1.pptxhejwjenwnwnenemwmwmwm
ERP good ERP good ERP good ERP good good ERP good ERP good
Lines and angles cbse class 9 math chemistry
quadraticequations-111211090004-phpapp02.pptx
Operating System Processes_Scheduler OSS
了解新西兰毕业证(Wintec毕业证书)怀卡托理工学院毕业证存档可查的
How NGOs Save Costs with Affordable IT Rentals

Exploring the ABC's of Raspberry Pi with Python

  • 1. Shahed Mehbub President, Robo Mechatronics Association Bangladesh(RMABD)
  • 2. What we are gonna learn today • Introduction to Raspberry Pi • Hardware description • OS instruction • Linux Shell Commands • Python Basics
  • 3. What is a Raspberry Pi? • Credit Card sized single board computer • Plugs into a TV or a Monitor • Based on Broadcom chips • Runs a complete version of Linux • Has multiple usb ports for communication • Supports gigabit ethernet lan 10/100 • Can deliver full HD (1080P) video output • Affordable
  • 4. Why Raspberry Pi? • Very Low Cost ($25 for Model A & $35 for Model B/B+) • Great tool for Learning Programming, Computers & Concepts of Embedded Linux, etc • Support for All Age Groups (School Children, College Undergraduates, Professional Developers, Programmers) • Supports & runs Free and Open Source Linux OS • Consumes less than 5W of Power • Supports Full HD Video Output (1080p), Multiple USB Ports , etc • Fun to learn & explore. You are limited by your imagination
  • 5. Technology used in a Pi Model A Model B+ Model B+
  • 7. Arduino vs Raspberry Pi Specs Arduino Uno Raspberry Pi Model B+ CPU type Microcontroller Microprocessor Operating System None Linux (usually Raspbian) Speed 16 Mhz 700 Mhz RAM 2KB 512MB GPU/Display None VideoCore IV GPU Disk 32KB Depends on SD card GPIO pins 14 digital pins (includes 6 analog) 26 digital pins Other connectivity None USB, Ethernet, HDMI, audio Power consumption 0.25W 3.5W
  • 8. Minimum things to get started • Raspberry Pi • HDMI/VGA monitor • USB Keyboard • USB Mouse • USB WiFi adapter (If isn't built-in) • 2.0+ Amp USB Power Adapter • Micro-USB cable • 8GB+ Micro-SD card • A Computer to load initial card image
  • 10. A tour to Raspbian • Web Browser: Epiphany • Office Applications: Libreoffice • Media Player: VLC • Run: sudo apt-get install vlc • Programming: • Geany (an IDE) • IDLE, IDLE3 (python IDE) • Sonic Pi • Scratch
  • 11. A Little bit of linux • Bash (Linux Shell) • Terminal Commands • Linux File Systems
  • 12. Linux Shell • To interact with the Operating System or Hardware we need to enter some commands in the “Shell”. • Simply put, the shell is a program that takes your commands from the keyboard and gives them to the operating system to perform.
  • 13. Basic Linux Commands • Show directory contents: • (Do this after every command below to see what has changed) • ls or ls -l • Make directory: • mkdir lesson • Change directory: • cd lesson • Create an empty file: • touch myfile • Edit file with nano: • nano myfile • Type something random inside the text editor then press Ctrl+X to save and quit. • View file quickly: • cat myfile • Copy file • cp myfile myfile2 • Remove file: • rm myfile • Move file • mv myfile2 myfile
  • 14. More Useful Commands Command Purpose man Get information about a particular command. Eg: man ls ifconfig Get network information like IP address adduser Create user passwd Change password uname –a, uname -r Show OS information history Shows past commands you ran chmod Change permissions of a file/directory
  • 15. File System Directory Layout • /home/pi or “~” • Your “Home” directory • Removable Drives at • /media/pi/….
  • 16. Programming on Raspberry Pi • Raspberry Pi supports several Programming Languages like : Python, C, C++, JAVA, Perl, HTML5, JavaScript, JQuery etc. • Python is supported as the principal or main user programming language. • Extremely powerful and flexible language. • Can also be used to control hardware on the Pi. • Compiled using gcc (GNU Compiler Collection) ** Learning Programming = Practice Writing Programs
  • 18. Time to do Python!
  • 19. Why Python! • General Purpose Language • Large Standard Code Library • Can be compiled to Machine Language • Can call C code (ctypes) • Cleaner Coding Style • Lots of libraries Life is short… (Learn Python)
  • 20. Python Basics – Where to write Python • IDLE • Spyder • Atom • PyCharm
  • 21. Python Basics – What to learn • Print Statements • Indentation • Variables • Comments • Lists, Dictionaries • Conditionals – if, elif • Loops • Iteration and Range • Functions • Exception Handling
  • 22. Python Basics – Print Statements print(“Hello World!!!”)
  • 23. Python Basics – Indentation
  • 24. Python Basics – Variables • Numbers(int, float, long, complex) • Strings • Boolean • List • Tuple • Dictionary
  • 25. Python Basics – Comments
  • 26. Python Basics – Lists and Dictionaries
  • 27. Python Basics – Conditionals
  • 29. Python Basics – Iteration and Range
  • 30. Python Basics – Functions
  • 31. Python Basics – Exception Handling