SlideShare a Scribd company logo
An Introductory Session 
on 
Raspberry-Pi 
By Team B.M.E.S. And Updated By 
SmartProjects
What / Why ? 
Technical specs 
Vs Arduino 
Models 
Vs PC 
Projects 
Setup 
Boot it up 
Blink
What is Raspberry Pi ? 
Credit card size single board computer or a 
Programmable PC 
Developed in U.K. by Raspberry - Pi foundation in 
2009 
Concept Initiated by Eben Upton who works at 
Broadcom 
Supported by “University of Cambridge Computer 
Laboratory & Broadcom” 
To promote the study of basic computer science in 
schools & to develop interest among kids and adults 
Has been a revolution in the market with over 3 
million units sold 
Video Demo (www.raspberrypi.org)
Why Raspberry Pi ? 
Very Low Cost ($25 – Rs 1550/- for Model A & $35 – 
Rs 2200/- 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
Raspberry Pi VS Arduino
Raspberry Pi – Models 
3 Main Models/Versions released till date with Model 
B+ being the latest in the series.
Raspberry Pi (Model A)
Raspberry Pi (Model B)
Raspberry Pi (Model B+)
Technical Specs. 
Processor : Broadcom BCM2835 SoC (System on 
Chip) 
Core : ARM11 (700 MHz ARM1176JZF-S) 
Memory (RAM) : 256 Mb (Model A) or 512 Mb (Model 
B/B+) 
GPU : Broadcom Videocore IV 
USB 2.0 : 1 (Model A) / 2 (Model B) / 4 (Model B+) 
On Board Storage : SD Card (Model A/B) / Micro SD 
(Model B+) 
Video Input : Camera Support via CSI Connector 
Video Output : Composite Video (RCA) or HDMI or 
LCD Support via DSI
Technical Specs. (Cont.) 
Networking : 10/100 Mbit/s Ethernet Support on 
Model B/B+ 
Audio Outputs : 3.5 mm Jack 
I.O. Lines : 26 Pin GPIO Connector on Model A/B and 
40 Pin GPIO Connector on Model B+ (GPIO, UART, 
SPI, I2C, Power Rails, I2S, etc) 
Power Source : 5V/2A DC Adapter via Micro USB 
Power Ratings : 300 mA (1.5W – Model A), 700 mA 
(3.5W – Model B) & 600 mA (3W – Model B+) 
Operating Systems : Raspbian, Debian, Pidora, 
Fedora, OpenELEC, ArchLinux ARM, FreeBSD,etc
Raspberry Pi VS PC
Raspberry Pi VS PC
Questions ?
Raspberry Pi - Projects 
1) Rpi In the Sky
Raspberry Pi - Projects 
2) Raspberry Pi Wall Mounted Google Calendar – 
On Instructables
Raspberry Pi - Projects 
3) PiPad: Tablet Using Raspberry Pi
Raspberry Pi - Projects 
4) PiPhone : Using Raspberry Pi
Raspberry Pi - Projects 
5) Pi as a Media Centre : Using Open Source XBMC
Raspberry Pi - Projects 
6) Running a Web server on Raspberry Pi
Raspberry Pi - Projects 
7) Games on Raspberry Pi
Raspberry Pi - Projects 
8) Iridis-Pi : Supercomputer using Raspberry Pi (64 
Processors, 1 TB of Memory
Raspberry Pi - Projects 
9) Low Cost HD Surveillance Camera
Raspberry Pi - Learning 
10) Learning Programming : Learn Python, C/C++, 
Java, Ruby, Basic, etc.
Raspberry Pi - Projects 
11) SmartProjects PhotoBooth
Raspberry Pi - Projects 
12) InternetRadio
Raspberry Pi - Projects 
13) Wearable computer
Raspberry Pi - Projects 
13) 3D Scanner
Raspberry Pi - Setup 
Raspberry Pi : Model A/B/B+ (recommended B+) 
Power Source : 5V/2A DC Micro USB Adapter 
Display : VGA Monitor/HDMI Screen or TV/LCD 
SD Card : Minimum 4 GB (8GB - Class 4 recommended) 
USB Mouse and Keyboard 
Internet (If required) : Wi-Fi Dongle/ via Ethernet 
Audio : 3.5 mm Stereo Input
Raspberry Pi - Setup
Lets Boot it up !
Preparing a SD Card 
Format a SD card that is 4GB or larger as FAT. 
Use the Tool – SDFormatter (How ?) 
Download and extract the files from the image (or 
noobs) zip file. 
Copy the extracted files onto the SD card that you just 
formatted so that this file is at the root directory of the SD 
card. 
When this process has finished, safely remove the SD 
card and insert it into your Raspberry Pi and Power it up. 
Raspberry Pi will boot, and a window will appear with a list 
of different operating systems that you can install. We 
recommend that you use Raspbian – tick the box next to 
Raspbian and click on Install. 
Wait for it to finish. (15 – 20 mins)
First Boot Up 
When the install process has completed, the Raspberry Pi 
configuration menu (raspi-config) will load. 
Here you are able to set the time and date for your region 
and enable a Raspberry Pi camera board, or even create 
users. 
To enter the Graphical environment enter the Command 
startx 
Default Login ID : pi, Default Password : raspberry
Operating System 
A System Program that controls the execution of 
Application Programs and is an interface b/w Applications & 
Hardware. 
It manages System Memory and Other resources of the 
system. 
It makes computer convenient to use and allows system 
resources to be used in an efficient manner.
GNU/Linux 
Raspbian is a free operating system based on Debian 
optimized for the Raspberry Pi hardware. 
Debian is one of the most popular Linux Distribution or 
Flavour or Distro. 
GNU/Linux – Free, Open Source, UNIX like Operating 
System that runs on diverse computing Hardware Platforms. 
It has Ample Support for Software development, whether 
kernel or applications. 
GNU : Provides the shell, library, compilers 
Linux : Provides the Kernel 
Examples of Major Free Distros : Fedora, Ubuntu, 
Mandriva, Suse, etc
Embedded Linux 
Linux running on Embedded Systems. 
Due to its low cost and ease of customization, Linux has 
been shipped in many consumer devices. 
Even Android is a Linux Based Operating System which 
is the leading OS platform in Smartphone, Tablet Market. 
Other examples include Set Top Boxes, Wireless 
Routers, smart TV’s, Industrial Automation, PDA’s, etc. 
It has immense scope and endless opportunities . 
The advantages of embedded Linux are multiple 
suppliers for software, development and support; no 
royalties or licensing fees; a stable kernel; the ability to 
read, modify and redistribute the source code.
Linux File System 
The arrangement of Files in Linux.
Directory Description 
bin : Essential command binaries 
boot : Static files of the boot loader 
dev : Device files 
etc : Host-specific system config 
home : User login and data folders 
lib : Essential shared libraries and kernel modules 
mnt : Mount point for mounting a file system or media 
opt : Add-on application software packages 
proc : Virtual folder that has information about system
Directory Description 
root : Home folder of the Linux super user 
sbin : Essential system binaries 
tmp : Temporary files 
usr : Secondary hierarchy 
var : Variable data
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. 
In the old days, it was the only user interface available 
on a Unix computer. 
Nowadays, we have graphical user interfaces 
(GUIs) in addition to command line interfaces 
(CLIs) such as the shell. 
In GUI, we have "terminal emulators” or “consoles” 
which are programs that put a window up and let us 
interact with the shell.
Important Commands 
1) ls 
“ls” command displays the list of files present in a 
given directory. 
2) cd 
“cd” or change directory command allows the user to 
traverse through the directories and file paths. 
3) cp 
“cp” command is used to copy file(s) from a source to 
a destination. 
4) mv 
Move files from source to destination.
Important Commands 
5) rm 
“rm” command is used to remove file/files. 
6) mkdir 
“mkdir” command is used to make a new directory or 
folder in the current path. 
7) rmdir 
“rmdir” command is used to remove a directory or 
folder in the current path. 
8) clear 
“clear” command is used to clear the contents on the 
terminal window.
Important Commands 
9) cat 
“cat” command is used to concatenate and output the 
contents of the given files. 
10) pwd 
“pwd” command is used to check the present working 
directory. 
11) sudo 
“sudo” allows users to run programs with the security 
privileges of super user or root or administrator. 
12) chmod 
“chmod” allows users to change access modes on 
files.
Remote Login (ssh) 
Secure Shell (ssh) is a network protocol which allows 
remote control of Raspberry Pi from another computer 
over the network. 
Provides access to the Command Line and not to the 
Full Desktop Environment. 
You can enable or disable the SSH server on your 
Raspberry Pi (it is enabled by default). 
To Enable SSH, in the Terminal, enter sudo raspi-config, 
enable the ssh, finish and exit the menu. 
Use a third-party SSH client software on your 
Windows System (like puTTy or TeraTerm) and access 
Raspberry Pi by entering it’s I.P. Address, user (pi) and 
password (raspberry). 
To check Raspberry Pi’s I.P. Address, enter ifconfig in 
the terminal.
Desktop Sharing (VNC) 
VNC (Virtual Network Computing) is a graphical 
desktop sharing system that allows you to remotely 
control the desktop interface of one computer from 
another. 
It transmits the keyboard and mouse events from 
the controller, and receives updates to the screen over 
the network from the remote host. 
This one is D.I.Y. and T.I.Y.. 
Links on the Text file with the steps.
Programming on R.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. 
Demo of Python Program on IDLE. 
Demo of C Program on Raspberry Pi. 
Compiled using gcc (GNU Compiler Collection) 
Learning Programming = Practice Writing Programs
GPIO on Raspberry Pi 
26 GPIO Header in Model A/B and 40 GPIO Header in 
Model B 
These pins are a physical interface between the Pi 
and the outside world. 
Out of 26, 8 are dedicated IO Lines, 2 are for UART, 4 
are for SPI (+1 for Another Chip Select) , and another 2 
for the I2C Interface (Total 17 out of 26) 
Rest are Supply Rails. 
Model B+ has 9 additional GPIO including a extra SPI 
(Total 17 + 9 = 26 out of 40) 
WiringPi : Easy to use C Library for accessing the 
GPIO Lines via Programming (Arduino Style 
Programming)
Let’s Do Blinky ! 
import RPi.GPIO as GPIO 
import time 
pin = 7 
GPIO.setmode(GPIO.BOARD) 
GPIO.setup(pin, GPIO.OUT) 
GPIO.output(pin, GPIO.HIGH) 
time.sleep(1) 
GPIO.output(pin, GPIO.LOW) 
time.sleep(1) 
GPIO.cleanup()
Questions?
Thanks :D

More Related Content

What's hot

Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
VipulKumar300
 
Raspberry-Pi
Raspberry-PiRaspberry-Pi
Raspberry-Pi
Rehan Fazal
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
Prashant Kumar
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
Akash Kr Sinha
 
Raspberry pi : an introduction
Raspberry pi : an introductionRaspberry pi : an introduction
Raspberry pi : an introduction
LTG Oxford
 
Simple Presentation On Raspberry pi
Simple Presentation On Raspberry piSimple Presentation On Raspberry pi
Simple Presentation On Raspberry pi
Sakkar Chowdhury
 
Seminar Presentation on raspberry pi
Seminar Presentation on raspberry piSeminar Presentation on raspberry pi
Seminar Presentation on raspberry pi
Georgekutty Francis
 
Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pi
praveen_23
 
Introduction to Raspberrypi
Introduction to  RaspberrypiIntroduction to  Raspberrypi
Introduction to Raspberrypi
Iheb Ben Salem
 
Rasberry pi
 Rasberry pi Rasberry pi
Rasberry pi
GANESH GOVIND BHOR
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
Mandeesh Singh
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
Mandeesh Singh
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
Vigyat Tripathi
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
Anirudh Chauhan
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
Rishabh Sharma
 
Presentation on Raspberry Pi by Sazzad H. IIUC
Presentation on Raspberry Pi by Sazzad H. IIUCPresentation on Raspberry Pi by Sazzad H. IIUC
Presentation on Raspberry Pi by Sazzad H. IIUC
shssn7
 
Raspberry pi complete setup
Raspberry pi complete setupRaspberry pi complete setup
Raspberry pi complete setup
Santosh Kumar Kar
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
Naga Srinivas
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
Anija Nair
 
Raspberry Pi
Raspberry PiRaspberry Pi

What's hot (20)

Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry-Pi
Raspberry-PiRaspberry-Pi
Raspberry-Pi
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry pi : an introduction
Raspberry pi : an introductionRaspberry pi : an introduction
Raspberry pi : an introduction
 
Simple Presentation On Raspberry pi
Simple Presentation On Raspberry piSimple Presentation On Raspberry pi
Simple Presentation On Raspberry pi
 
Seminar Presentation on raspberry pi
Seminar Presentation on raspberry piSeminar Presentation on raspberry pi
Seminar Presentation on raspberry pi
 
Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pi
 
Introduction to Raspberrypi
Introduction to  RaspberrypiIntroduction to  Raspberrypi
Introduction to Raspberrypi
 
Rasberry pi
 Rasberry pi Rasberry pi
Rasberry pi
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Presentation on Raspberry Pi by Sazzad H. IIUC
Presentation on Raspberry Pi by Sazzad H. IIUCPresentation on Raspberry Pi by Sazzad H. IIUC
Presentation on Raspberry Pi by Sazzad H. IIUC
 
Raspberry pi complete setup
Raspberry pi complete setupRaspberry pi complete setup
Raspberry pi complete setup
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 

Viewers also liked

Who we are Smart Projects !
Who we are Smart Projects !Who we are Smart Projects !
Who we are Smart Projects !
Lotfi Messaoudi
 
Initiation à Wordpress
Initiation à Wordpress Initiation à Wordpress
Initiation à Wordpress
Lotfi Messaoudi
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
mkarlin14
 
Arduino Workshop Day 2
Arduino  Workshop Day 2Arduino  Workshop Day 2
Arduino Workshop Day 2
Yogendra Tamang
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
atuline
 
BURO Arduino Workshop
BURO Arduino WorkshopBURO Arduino Workshop
BURO Arduino Workshop
Omer Kilic
 
Présentation d'Arduino
Présentation d'ArduinoPrésentation d'Arduino
Présentation d'Arduino
Olivier NOEL
 
Speed Control of DC Motor using Microcontroller
Speed Control of DC Motor using MicrocontrollerSpeed Control of DC Motor using Microcontroller
Speed Control of DC Motor using Microcontroller
Sudip Mondal
 
Speed Control of DC Motor
Speed Control of DC MotorSpeed Control of DC Motor
Speed Control of DC Motor
Mafaz Ahmed
 
Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051
embdnew
 
Marketing Apple
Marketing AppleMarketing Apple
Marketing Apple
Walid SERIR
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Ahmed Sakr
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
SlideShare
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
SlideShare
 

Viewers also liked (15)

Who we are Smart Projects !
Who we are Smart Projects !Who we are Smart Projects !
Who we are Smart Projects !
 
PE
PEPE
PE
 
Initiation à Wordpress
Initiation à Wordpress Initiation à Wordpress
Initiation à Wordpress
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
 
Arduino Workshop Day 2
Arduino  Workshop Day 2Arduino  Workshop Day 2
Arduino Workshop Day 2
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
 
BURO Arduino Workshop
BURO Arduino WorkshopBURO Arduino Workshop
BURO Arduino Workshop
 
Présentation d'Arduino
Présentation d'ArduinoPrésentation d'Arduino
Présentation d'Arduino
 
Speed Control of DC Motor using Microcontroller
Speed Control of DC Motor using MicrocontrollerSpeed Control of DC Motor using Microcontroller
Speed Control of DC Motor using Microcontroller
 
Speed Control of DC Motor
Speed Control of DC MotorSpeed Control of DC Motor
Speed Control of DC Motor
 
Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051
 
Marketing Apple
Marketing AppleMarketing Apple
Marketing Apple
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
 

Similar to Raspberry Pi introduction

Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014
Mandeesh Singh
 
Raspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRaspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software Setup
RANAALIMAJEEDRAJPUT
 
Beagle board101 esc-boston-2009b
Beagle board101 esc-boston-2009bBeagle board101 esc-boston-2009b
Beagle board101 esc-boston-2009b
Michael Hallak-Stamler
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PI
Cliff Samuels Jr.
 
Iaetsd the universal brain for all robots
Iaetsd the universal brain for all robotsIaetsd the universal brain for all robots
Iaetsd the universal brain for all robots
Iaetsd Iaetsd
 
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
 
Raspberry pi glossary of terms dictionary extended
Raspberry pi glossary of terms dictionary extendedRaspberry pi glossary of terms dictionary extended
Raspberry pi glossary of terms dictionary extended
WiseNaeem
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
HusainBhaldar21
 
Single Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsSingle Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi Basics
Eueung Mulyana
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
Ekansh Purwar
 
2.Accessing the Pi
2.Accessing the Pi2.Accessing the Pi
2.Accessing the Pi
Mayank Joneja
 
Ubuntu and Linux Terminal Server Project
Ubuntu and Linux Terminal Server ProjectUbuntu and Linux Terminal Server Project
Ubuntu and Linux Terminal Server Project
Sameer Verma
 
Raspberry pi technology
Raspberry pi technologyRaspberry pi technology
Raspberry pi technology
Zeeshan Aslam
 
Iaetsd the world’s smallest computer for programmers and app developers
Iaetsd the world’s smallest computer for programmers and app developersIaetsd the world’s smallest computer for programmers and app developers
Iaetsd the world’s smallest computer for programmers and app developers
Iaetsd Iaetsd
 
Rapid IoT Prototyping with Tizen on Raspberry Pi
Rapid IoT Prototyping with Tizen on Raspberry PiRapid IoT Prototyping with Tizen on Raspberry Pi
Rapid IoT Prototyping with Tizen on Raspberry Pi
Leon Anavi
 
Making Open Source Hardware IoT with Raspberry Pi
Making Open Source Hardware IoT with Raspberry PiMaking Open Source Hardware IoT with Raspberry Pi
Making Open Source Hardware IoT with Raspberry Pi
Leon Anavi
 
RaspberryPi & Python Workshop Day - 01.pptx
RaspberryPi & Python Workshop Day - 01.pptxRaspberryPi & Python Workshop Day - 01.pptx
RaspberryPi & Python Workshop Day - 01.pptx
ShivanshSeth6
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMoore
Benjamin Moore
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentation
GR Techno Solutions
 
introduction to Raspberry pi
introduction to Raspberry piintroduction to Raspberry pi
introduction to Raspberry pi
luckyanks1992
 

Similar to Raspberry Pi introduction (20)

Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014
 
Raspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRaspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software Setup
 
Beagle board101 esc-boston-2009b
Beagle board101 esc-boston-2009bBeagle board101 esc-boston-2009b
Beagle board101 esc-boston-2009b
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PI
 
Iaetsd the universal brain for all robots
Iaetsd the universal brain for all robotsIaetsd the universal brain for all robots
Iaetsd the universal brain for all robots
 
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
 
Raspberry pi glossary of terms dictionary extended
Raspberry pi glossary of terms dictionary extendedRaspberry pi glossary of terms dictionary extended
Raspberry pi glossary of terms dictionary extended
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
 
Single Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsSingle Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi Basics
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
2.Accessing the Pi
2.Accessing the Pi2.Accessing the Pi
2.Accessing the Pi
 
Ubuntu and Linux Terminal Server Project
Ubuntu and Linux Terminal Server ProjectUbuntu and Linux Terminal Server Project
Ubuntu and Linux Terminal Server Project
 
Raspberry pi technology
Raspberry pi technologyRaspberry pi technology
Raspberry pi technology
 
Iaetsd the world’s smallest computer for programmers and app developers
Iaetsd the world’s smallest computer for programmers and app developersIaetsd the world’s smallest computer for programmers and app developers
Iaetsd the world’s smallest computer for programmers and app developers
 
Rapid IoT Prototyping with Tizen on Raspberry Pi
Rapid IoT Prototyping with Tizen on Raspberry PiRapid IoT Prototyping with Tizen on Raspberry Pi
Rapid IoT Prototyping with Tizen on Raspberry Pi
 
Making Open Source Hardware IoT with Raspberry Pi
Making Open Source Hardware IoT with Raspberry PiMaking Open Source Hardware IoT with Raspberry Pi
Making Open Source Hardware IoT with Raspberry Pi
 
RaspberryPi & Python Workshop Day - 01.pptx
RaspberryPi & Python Workshop Day - 01.pptxRaspberryPi & Python Workshop Day - 01.pptx
RaspberryPi & Python Workshop Day - 01.pptx
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMoore
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentation
 
introduction to Raspberry pi
introduction to Raspberry piintroduction to Raspberry pi
introduction to Raspberry pi
 

Recently uploaded

Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Precisely
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 

Recently uploaded (20)

Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 

Raspberry Pi introduction

  • 1. An Introductory Session on Raspberry-Pi By Team B.M.E.S. And Updated By SmartProjects
  • 2. What / Why ? Technical specs Vs Arduino Models Vs PC Projects Setup Boot it up Blink
  • 3. What is Raspberry Pi ? Credit card size single board computer or a Programmable PC Developed in U.K. by Raspberry - Pi foundation in 2009 Concept Initiated by Eben Upton who works at Broadcom Supported by “University of Cambridge Computer Laboratory & Broadcom” To promote the study of basic computer science in schools & to develop interest among kids and adults Has been a revolution in the market with over 3 million units sold Video Demo (www.raspberrypi.org)
  • 4. Why Raspberry Pi ? Very Low Cost ($25 – Rs 1550/- for Model A & $35 – Rs 2200/- 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. Raspberry Pi VS Arduino
  • 6. Raspberry Pi – Models 3 Main Models/Versions released till date with Model B+ being the latest in the series.
  • 10. Technical Specs. Processor : Broadcom BCM2835 SoC (System on Chip) Core : ARM11 (700 MHz ARM1176JZF-S) Memory (RAM) : 256 Mb (Model A) or 512 Mb (Model B/B+) GPU : Broadcom Videocore IV USB 2.0 : 1 (Model A) / 2 (Model B) / 4 (Model B+) On Board Storage : SD Card (Model A/B) / Micro SD (Model B+) Video Input : Camera Support via CSI Connector Video Output : Composite Video (RCA) or HDMI or LCD Support via DSI
  • 11. Technical Specs. (Cont.) Networking : 10/100 Mbit/s Ethernet Support on Model B/B+ Audio Outputs : 3.5 mm Jack I.O. Lines : 26 Pin GPIO Connector on Model A/B and 40 Pin GPIO Connector on Model B+ (GPIO, UART, SPI, I2C, Power Rails, I2S, etc) Power Source : 5V/2A DC Adapter via Micro USB Power Ratings : 300 mA (1.5W – Model A), 700 mA (3.5W – Model B) & 600 mA (3W – Model B+) Operating Systems : Raspbian, Debian, Pidora, Fedora, OpenELEC, ArchLinux ARM, FreeBSD,etc
  • 15. Raspberry Pi - Projects 1) Rpi In the Sky
  • 16. Raspberry Pi - Projects 2) Raspberry Pi Wall Mounted Google Calendar – On Instructables
  • 17. Raspberry Pi - Projects 3) PiPad: Tablet Using Raspberry Pi
  • 18. Raspberry Pi - Projects 4) PiPhone : Using Raspberry Pi
  • 19. Raspberry Pi - Projects 5) Pi as a Media Centre : Using Open Source XBMC
  • 20. Raspberry Pi - Projects 6) Running a Web server on Raspberry Pi
  • 21. Raspberry Pi - Projects 7) Games on Raspberry Pi
  • 22. Raspberry Pi - Projects 8) Iridis-Pi : Supercomputer using Raspberry Pi (64 Processors, 1 TB of Memory
  • 23. Raspberry Pi - Projects 9) Low Cost HD Surveillance Camera
  • 24. Raspberry Pi - Learning 10) Learning Programming : Learn Python, C/C++, Java, Ruby, Basic, etc.
  • 25. Raspberry Pi - Projects 11) SmartProjects PhotoBooth
  • 26. Raspberry Pi - Projects 12) InternetRadio
  • 27. Raspberry Pi - Projects 13) Wearable computer
  • 28. Raspberry Pi - Projects 13) 3D Scanner
  • 29. Raspberry Pi - Setup Raspberry Pi : Model A/B/B+ (recommended B+) Power Source : 5V/2A DC Micro USB Adapter Display : VGA Monitor/HDMI Screen or TV/LCD SD Card : Minimum 4 GB (8GB - Class 4 recommended) USB Mouse and Keyboard Internet (If required) : Wi-Fi Dongle/ via Ethernet Audio : 3.5 mm Stereo Input
  • 30. Raspberry Pi - Setup
  • 31. Lets Boot it up !
  • 32. Preparing a SD Card Format a SD card that is 4GB or larger as FAT. Use the Tool – SDFormatter (How ?) Download and extract the files from the image (or noobs) zip file. Copy the extracted files onto the SD card that you just formatted so that this file is at the root directory of the SD card. When this process has finished, safely remove the SD card and insert it into your Raspberry Pi and Power it up. Raspberry Pi will boot, and a window will appear with a list of different operating systems that you can install. We recommend that you use Raspbian – tick the box next to Raspbian and click on Install. Wait for it to finish. (15 – 20 mins)
  • 33. First Boot Up When the install process has completed, the Raspberry Pi configuration menu (raspi-config) will load. Here you are able to set the time and date for your region and enable a Raspberry Pi camera board, or even create users. To enter the Graphical environment enter the Command startx Default Login ID : pi, Default Password : raspberry
  • 34. Operating System A System Program that controls the execution of Application Programs and is an interface b/w Applications & Hardware. It manages System Memory and Other resources of the system. It makes computer convenient to use and allows system resources to be used in an efficient manner.
  • 35. GNU/Linux Raspbian is a free operating system based on Debian optimized for the Raspberry Pi hardware. Debian is one of the most popular Linux Distribution or Flavour or Distro. GNU/Linux – Free, Open Source, UNIX like Operating System that runs on diverse computing Hardware Platforms. It has Ample Support for Software development, whether kernel or applications. GNU : Provides the shell, library, compilers Linux : Provides the Kernel Examples of Major Free Distros : Fedora, Ubuntu, Mandriva, Suse, etc
  • 36. Embedded Linux Linux running on Embedded Systems. Due to its low cost and ease of customization, Linux has been shipped in many consumer devices. Even Android is a Linux Based Operating System which is the leading OS platform in Smartphone, Tablet Market. Other examples include Set Top Boxes, Wireless Routers, smart TV’s, Industrial Automation, PDA’s, etc. It has immense scope and endless opportunities . The advantages of embedded Linux are multiple suppliers for software, development and support; no royalties or licensing fees; a stable kernel; the ability to read, modify and redistribute the source code.
  • 37. Linux File System The arrangement of Files in Linux.
  • 38. Directory Description bin : Essential command binaries boot : Static files of the boot loader dev : Device files etc : Host-specific system config home : User login and data folders lib : Essential shared libraries and kernel modules mnt : Mount point for mounting a file system or media opt : Add-on application software packages proc : Virtual folder that has information about system
  • 39. Directory Description root : Home folder of the Linux super user sbin : Essential system binaries tmp : Temporary files usr : Secondary hierarchy var : Variable data
  • 40. 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. In the old days, it was the only user interface available on a Unix computer. Nowadays, we have graphical user interfaces (GUIs) in addition to command line interfaces (CLIs) such as the shell. In GUI, we have "terminal emulators” or “consoles” which are programs that put a window up and let us interact with the shell.
  • 41. Important Commands 1) ls “ls” command displays the list of files present in a given directory. 2) cd “cd” or change directory command allows the user to traverse through the directories and file paths. 3) cp “cp” command is used to copy file(s) from a source to a destination. 4) mv Move files from source to destination.
  • 42. Important Commands 5) rm “rm” command is used to remove file/files. 6) mkdir “mkdir” command is used to make a new directory or folder in the current path. 7) rmdir “rmdir” command is used to remove a directory or folder in the current path. 8) clear “clear” command is used to clear the contents on the terminal window.
  • 43. Important Commands 9) cat “cat” command is used to concatenate and output the contents of the given files. 10) pwd “pwd” command is used to check the present working directory. 11) sudo “sudo” allows users to run programs with the security privileges of super user or root or administrator. 12) chmod “chmod” allows users to change access modes on files.
  • 44. Remote Login (ssh) Secure Shell (ssh) is a network protocol which allows remote control of Raspberry Pi from another computer over the network. Provides access to the Command Line and not to the Full Desktop Environment. You can enable or disable the SSH server on your Raspberry Pi (it is enabled by default). To Enable SSH, in the Terminal, enter sudo raspi-config, enable the ssh, finish and exit the menu. Use a third-party SSH client software on your Windows System (like puTTy or TeraTerm) and access Raspberry Pi by entering it’s I.P. Address, user (pi) and password (raspberry). To check Raspberry Pi’s I.P. Address, enter ifconfig in the terminal.
  • 45. Desktop Sharing (VNC) VNC (Virtual Network Computing) is a graphical desktop sharing system that allows you to remotely control the desktop interface of one computer from another. It transmits the keyboard and mouse events from the controller, and receives updates to the screen over the network from the remote host. This one is D.I.Y. and T.I.Y.. Links on the Text file with the steps.
  • 46. Programming on R.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. Demo of Python Program on IDLE. Demo of C Program on Raspberry Pi. Compiled using gcc (GNU Compiler Collection) Learning Programming = Practice Writing Programs
  • 47. GPIO on Raspberry Pi 26 GPIO Header in Model A/B and 40 GPIO Header in Model B These pins are a physical interface between the Pi and the outside world. Out of 26, 8 are dedicated IO Lines, 2 are for UART, 4 are for SPI (+1 for Another Chip Select) , and another 2 for the I2C Interface (Total 17 out of 26) Rest are Supply Rails. Model B+ has 9 additional GPIO including a extra SPI (Total 17 + 9 = 26 out of 40) WiringPi : Easy to use C Library for accessing the GPIO Lines via Programming (Arduino Style Programming)
  • 48. Let’s Do Blinky ! import RPi.GPIO as GPIO import time pin = 7 GPIO.setmode(GPIO.BOARD) GPIO.setup(pin, GPIO.OUT) GPIO.output(pin, GPIO.HIGH) time.sleep(1) GPIO.output(pin, GPIO.LOW) time.sleep(1) GPIO.cleanup()