SlideShare a Scribd company logo
1 of 53
Download to read offline
Exploring Raspberry Pi
http://elinux.org/images/f/f4/RaspiFront.JPG
http://upload.wikimedia.org/wikipedia/en/c/cb/Raspberry_Pi_Logo.svg
About Speakers
● Lentin Joseph, Achu Wilson and Aronin Chandu
● Experience in Robotics and Embedded systems for
last 3 years
● http://www.lentinjoseph.com
● http://www.sastrarobotics.com
Questions ???
● Why did you choose this workshop ?
● What are you expecting from this workshop ?
● What do you want to make with RaspberryPi ?
Agenda
● Introduction to Raspberry
● Hardware description
● Installation of OS
● OS Introduction
● Remote Acess using SSH,VNC
● Package Management
● GPIO,I2C,SPI
Agenda
● Python & GCC
● Wiring Pi and Python GPIO
● Hello_World demo
● LED Blink, PWM etc
● Raspberry Pi and Arduino
● Raspberry Pi and Camera
● Hackathon
Raspberry Pi & PC
Compare Raspberry Pi and a PC
Components Laptop or PC Raspberry Pi Ver B
Processor Intel 2.2 Ghz,Dual
Core
700 Mhz,Single
Core Arm 11
RAM 6GB 512 MB
Graphics Intel HD 3000 Dual core video
core IV
Ethernet Yes Yes
USB 2.0 Yes Yes
Video O/P VGA ,HDMI Composite RCA
HDMI
Audio O/P Yes Yes
Storage 500 GB Harddisk 32 GB SD Card
Operating System Linux/Windows Only Linux
Dimensions 14 inch laptop 8.6x5.4x1.7 cm
Raspberry Pi Model A&B
Raspberry Pi Components
Raspberry Pi Components
BCM 2835 SoC(System on Chip)
Raspberry Pi : GPIO
Raspberry Pi : GPIO
● 8x GPIO (General Purpose Input/Output)
● UART ,I2C ,SPI Bus
● 3.3 V and 5 V pins
Rpi Connection Diagram
Rpi Connection Diagram
Basic GNU/Linux commands
● $ls – List Files
● $cd – Change Directory
● $mkdir – Create folder
● $rmdir – Delete folder
● $clear – Clear terminal
● $nano – Text editor
Basic GNU/Linux commands
● $dmesg – Show kernel messages
● $lsusb – List connected usb devices
● $cp – Copy Files
● $ssh – Secure shell
● $scp – Copy files from one pc to other using ssh
● $vncviewer – Connect to vnc server
Basic GNU/Linux commands
● $sudo – Run in root privilage
● $ping – Pinging to ip address
● $nmap – Searching tool of IP and Ports
Installation of OS
● OS Name : Raspbian/Linux
● Download link:
http://www.raspberrypi.org/downloads
● Based on Debian operating system
● Desktop Enviornment : LXDE
● Light weight OS
Installation of OS
● Installation tools
● For Windows
● Win32DiskImager.exe
● http://sourceforge.net/projects/win32diskimager/
● For Linux
● $dd
● http://sourceforge.net/projects/win32diskimager/
Installation of OS
● Procedure in Linux
● Format SD Card in FAT 32/ext2
● sudo dd bs=4m if=<name_of_image>.img of=<device name>
● Eg: sudo dd bs=4m if=2013-02-09-wheezy-raspbian.img
of=/dev/sdb
Setting SSH
● SSH – Secure Shell
● http://en.wikipedia.org/wiki/Secure_Shell
● Direct and Remote Login methods in Rpi
● Types of remote connections
● Rpi and PC connected through router
● Rpi and PC connected through direct connection
● Rpi Wifi Hotspot
Raspi-config
● What is raspi-config
Setting VNC Server
● VNC(Virtual Network Computing)
● http://en.wikipedia.org/wiki/VNC_server
● Graphical desktop sharing system
● Installation
● $sudo apt-get install tightvncserver
● In Raspberry Pi
● $ vncserver :1 -geometry 1366x600 -depth 16 -pixelformat rgb565
●
Setting VNC Server
● In PC
● Install tightvncviewer
● $ vncviewer ip:5901
● $ vncviewer 192.168.1.3:5901
Remote Desktop
Introduction to Raspbian
Package Management
● $apt-get install
● Synaptic Package Manager : GUI of apt-get
● $dpkg
GPIO ,I2C,&SPI
GPIO ,I2C,&SPI
● GPIO Libraries
● Rpi.GPIO
● Wiring Pi
Rpi.GPIO Installation
● GPIO Library Installation
● $ sudo apt-get update
● $ sudo apt-get install python-dev
● $ sudo apt-get install python-rpi.gpio
WiringPi Installation
● Wiring Pi Library Installation
● $ sudo apt-get install git-core
● sudo apt-get update
● sudo apt-get upgrade
● git clone git://git.drogon.net/wiringPi
● cd wiringPi
● git pull origin
● cd wiringPi
● ./build
Python & GCC
● Introduction to Python ?
● Sample codes
● Introduction to GCC(Gnu C compiler)
● Sample Codes
Rpi.GPIO Basics
➢ import RPi.GPIO as GPIO #Importing GPIO Module
➢ import time # Importing Time module
➢
➢ GPIO.setmode(GPIO.BOARD) # Taking Pin number from the board
➢ GPIO.setup(12, GPIO.OUT) # Setting 12th pin as OUTPUT
➢
➢ try:
➢ while True:
➢ GPIO.output(12, GPIO.HIGH) #Setting 12th pin high
➢ time.sleep(1) # 1 sec delay
➢ GPIO.output(12, GPIO.LOW) #Setting 12th pin low
➢ time.sleep(1)
➢ finally:
➢ GPIO.cleanup() #Cleaning the configurations
WiringPi Basics
● $ man gpio
● $ gpio -g # Taking BCM GPIO Number
● $gpio [-g] mode <pin> in/out/pwm/up/down/tri
● $ gpio [-g] write <pin> <value>
● $gpio [-g] pwm <pin> <value>(0-1023)
● $ gpio [-g] read < pin>
● $ gpio readall
WiringPi Pinout
WiringPi Examples
● Setting wiring pin to HIGH
● $gpio mode 1 out
● $gpio write 1 1
● Setting PWM
● $gpio mode 1 pwm
● $gpio pwm 1 200
Demo_1:Blink Led
Demo_2:Button & Input
Demo_3:PWM
Demo_4:LCD Interfacing
Raspberry Pi & Arduino
http://blog.oscarliang.net/raspberry-pi-and-arduino-connected-serial-gpio/
Raspberry Pi & Arduino
● Direct Serial Connection
Raspberry Pi & Arduino
● USB Connection
Raspberry Pi & Arduino
// Arduino Code
int serIn;
void setup() {
Serial.begin(9600);
}
void loop () {
if(Serial.available()) {
while (Serial.available()>0){
serIn = Serial.read();
Serial.print(serIn, BYTE);
}
Serial.println();
}
delay(1000);
}
// Python Code in Raspberry Pi
import serial
import time
ser=serial.Serial('/dev/ttyACM0
',9600)
while True:
ser.write('A')
Time.sleep(1)
Raspberry Pi & Camera
Raspberry Pi & Camera
● Connection: Camera Serial Interconnect
(CSI)
● Maximum Still Resolution: 2,592×1,944
(currently limited to 1,920×1,080)
● Maximum Video Resolution:
1,920×1,080 (1080p) 30fps
Raspberry Pi & Camera
$ sudo apt-get install guvcview
Raspberry Pi & Sound
● $ sudo apt-get install mplayer
Raspberry Pi Robot demo
Questions ??
Hackathon
● Will select best 3 projects
● Duration : 2 hrs
Hackathon
● Will select best 3 projects
● Duration : 2 hrs
Happy Hacking :)

More Related Content

What's hot

lesson2 - Nodemcu course - NodeMCU dev Board
 lesson2 - Nodemcu course - NodeMCU dev Board lesson2 - Nodemcu course - NodeMCU dev Board
lesson2 - Nodemcu course - NodeMCU dev BoardElaf A.Saeed
 
Raspberrypi best ppt
Raspberrypi best ppt Raspberrypi best ppt
Raspberrypi best ppt SOMRAJ GAUTAM
 
Ins and Outs of GPIO Programming
Ins and Outs of GPIO ProgrammingIns and Outs of GPIO Programming
Ins and Outs of GPIO ProgrammingICS
 
Introduction to Raspberrypi
Introduction to  RaspberrypiIntroduction to  Raspberrypi
Introduction to RaspberrypiIheb Ben Salem
 
IoT Programming on the Raspberry Pi
IoT Programming on the Raspberry PiIoT Programming on the Raspberry Pi
IoT Programming on the Raspberry PiDamien Magoni
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentationGR Techno Solutions
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Mandeesh Singh
 
LED Blinking Using Raspberry Pi
LED Blinking Using Raspberry PiLED Blinking Using Raspberry Pi
LED Blinking Using Raspberry PiArjun R Krishna
 
Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pipraveen_23
 
Nodemcu - introduction
Nodemcu - introductionNodemcu - introduction
Nodemcu - introductionMichal Sedlak
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Mandeesh Singh
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the ArduinoCharles A B Jr
 
LAS16-406: Android Widevine on OP-TEE
LAS16-406: Android Widevine on OP-TEELAS16-406: Android Widevine on OP-TEE
LAS16-406: Android Widevine on OP-TEELinaro
 
Internet of things aktu lab file
Internet of things  aktu lab fileInternet of things  aktu lab file
Internet of things aktu lab fileNitesh Dubey
 

What's hot (20)

lesson2 - Nodemcu course - NodeMCU dev Board
 lesson2 - Nodemcu course - NodeMCU dev Board lesson2 - Nodemcu course - NodeMCU dev Board
lesson2 - Nodemcu course - NodeMCU dev Board
 
Esp8266 basics
Esp8266 basicsEsp8266 basics
Esp8266 basics
 
Raspberrypi best ppt
Raspberrypi best ppt Raspberrypi best ppt
Raspberrypi best ppt
 
Ins and Outs of GPIO Programming
Ins and Outs of GPIO ProgrammingIns and Outs of GPIO Programming
Ins and Outs of GPIO Programming
 
Introduction to Raspberrypi
Introduction to  RaspberrypiIntroduction to  Raspberrypi
Introduction to Raspberrypi
 
IoT Programming on the Raspberry Pi
IoT Programming on the Raspberry PiIoT Programming on the Raspberry Pi
IoT Programming on the Raspberry Pi
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentation
 
Rasp berry Pi
Rasp berry PiRasp berry Pi
Rasp berry Pi
 
Raspberry-Pi
Raspberry-PiRaspberry-Pi
Raspberry-Pi
 
Raspberry pi 3
Raspberry pi 3Raspberry pi 3
Raspberry pi 3
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
 
LED Blinking Using Raspberry Pi
LED Blinking Using Raspberry PiLED Blinking Using Raspberry Pi
LED Blinking Using Raspberry Pi
 
Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pi
 
Nodemcu - introduction
Nodemcu - introductionNodemcu - introduction
Nodemcu - introduction
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
 
Raspberry pi complete setup
Raspberry pi complete setupRaspberry pi complete setup
Raspberry pi complete setup
 
LAS16-406: Android Widevine on OP-TEE
LAS16-406: Android Widevine on OP-TEELAS16-406: Android Widevine on OP-TEE
LAS16-406: Android Widevine on OP-TEE
 
Internet of Things Using Arduino
Internet of Things Using ArduinoInternet of Things Using Arduino
Internet of Things Using Arduino
 
Internet of things aktu lab file
Internet of things  aktu lab fileInternet of things  aktu lab file
Internet of things aktu lab file
 

Viewers also liked

Raspberry Pi Presentation
Raspberry Pi PresentationRaspberry Pi Presentation
Raspberry Pi PresentationGeekizer
 
Raspberry pi : an introduction
Raspberry pi : an introductionRaspberry pi : an introduction
Raspberry pi : an introductionLTG Oxford
 
Raspberry-PI introduction
Raspberry-PI introductionRaspberry-PI introduction
Raspberry-PI introductionBasavaraj Sagar
 
A seminar report on Raspberry Pi
A seminar report on Raspberry PiA seminar report on Raspberry Pi
A seminar report on Raspberry Pinipunmaster
 
Raspberry Pi 3 Latest PPT - Robomart
Raspberry Pi 3 Latest PPT - RobomartRaspberry Pi 3 Latest PPT - Robomart
Raspberry Pi 3 Latest PPT - RobomartRobomart
 
IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3Mohammad Qasim Malik
 
Introduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIOIntroduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIOKris Findlay
 
Smart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PISmart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PIKrishna Kumar
 
Raspberry Pi - HW/SW Application Development
Raspberry Pi - HW/SW Application DevelopmentRaspberry Pi - HW/SW Application Development
Raspberry Pi - HW/SW Application DevelopmentCorley S.r.l.
 
Internet of things using Raspberry Pi
Internet of things using Raspberry PiInternet of things using Raspberry Pi
Internet of things using Raspberry PiYash Gajera
 
Raspberry pi based project abstracts
Raspberry pi based project abstractsRaspberry pi based project abstracts
Raspberry pi based project abstractsSoftroniics india
 
Home Automation Using RPI
Home Automation Using  RPIHome Automation Using  RPI
Home Automation Using RPIAnkara JUG
 
Introduction to Windows IoT via Raspberry Pi 3
Introduction to Windows IoT via Raspberry Pi 3Introduction to Windows IoT via Raspberry Pi 3
Introduction to Windows IoT via Raspberry Pi 3Lee Richardson
 
Introduction to Bluetooth Low Energy
Introduction to Bluetooth Low EnergyIntroduction to Bluetooth Low Energy
Introduction to Bluetooth Low Energyyeokm1
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduinoAhmed Sakr
 

Viewers also liked (20)

Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Raspberry Pi Presentation
Raspberry Pi PresentationRaspberry Pi Presentation
Raspberry Pi Presentation
 
Raspberry pi : an introduction
Raspberry pi : an introductionRaspberry pi : an introduction
Raspberry pi : an introduction
 
Raspberry-PI introduction
Raspberry-PI introductionRaspberry-PI introduction
Raspberry-PI introduction
 
A seminar report on Raspberry Pi
A seminar report on Raspberry PiA seminar report on Raspberry Pi
A seminar report on Raspberry Pi
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Raspberry Pi 3 Latest PPT - Robomart
Raspberry Pi 3 Latest PPT - RobomartRaspberry Pi 3 Latest PPT - Robomart
Raspberry Pi 3 Latest PPT - Robomart
 
IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3
 
Introduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIOIntroduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIO
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Smart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PISmart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PI
 
Raspberry Pi - HW/SW Application Development
Raspberry Pi - HW/SW Application DevelopmentRaspberry Pi - HW/SW Application Development
Raspberry Pi - HW/SW Application Development
 
Abstract pi
Abstract piAbstract pi
Abstract pi
 
Internet of things using Raspberry Pi
Internet of things using Raspberry PiInternet of things using Raspberry Pi
Internet of things using Raspberry Pi
 
OpenCV Workshop
OpenCV WorkshopOpenCV Workshop
OpenCV Workshop
 
Raspberry pi based project abstracts
Raspberry pi based project abstractsRaspberry pi based project abstracts
Raspberry pi based project abstracts
 
Home Automation Using RPI
Home Automation Using  RPIHome Automation Using  RPI
Home Automation Using RPI
 
Introduction to Windows IoT via Raspberry Pi 3
Introduction to Windows IoT via Raspberry Pi 3Introduction to Windows IoT via Raspberry Pi 3
Introduction to Windows IoT via Raspberry Pi 3
 
Introduction to Bluetooth Low Energy
Introduction to Bluetooth Low EnergyIntroduction to Bluetooth Low Energy
Introduction to Bluetooth Low Energy
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 

Similar to Exploring Raspberry Pi

Raspberry Pi GPIO Tutorial - Make Your Own Game Console
Raspberry Pi GPIO Tutorial - Make Your Own Game ConsoleRaspberry Pi GPIO Tutorial - Make Your Own Game Console
Raspberry Pi GPIO Tutorial - Make Your Own Game ConsoleRICELEEIO
 
introduction to Raspberry pi
introduction to Raspberry pi introduction to Raspberry pi
introduction to Raspberry pi Mohamed Ali May
 
Raspberry Pi and Amateur Radio - 2020 update
Raspberry Pi and Amateur Radio - 2020 updateRaspberry Pi and Amateur Radio - 2020 update
Raspberry Pi and Amateur Radio - 2020 updateKevin Hooke
 
Having fun with Raspberry(s) and Apache projects
Having fun with Raspberry(s) and Apache projectsHaving fun with Raspberry(s) and Apache projects
Having fun with Raspberry(s) and Apache projectsJean-Frederic Clere
 
Free5 gc installation
Free5 gc installationFree5 gc installation
Free5 gc installationChia-An Lee
 
pcDuino Presentation at SparkFun
pcDuino Presentation at SparkFunpcDuino Presentation at SparkFun
pcDuino Presentation at SparkFunJingfeng Liu
 
Introduction to Raspberry Pi
Introduction to Raspberry PiIntroduction to Raspberry Pi
Introduction to Raspberry PiIsuru Jayarathne
 
Hands-on Labs: Raspberry Pi 2 + Windows 10 IoT Core
Hands-on Labs: Raspberry Pi 2 + Windows 10 IoT CoreHands-on Labs: Raspberry Pi 2 + Windows 10 IoT Core
Hands-on Labs: Raspberry Pi 2 + Windows 10 IoT CoreAndri Yadi
 
Raspberry Pi a la CFML
Raspberry Pi a la CFMLRaspberry Pi a la CFML
Raspberry Pi a la CFMLdevObjective
 
Python-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxPython-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxTuynLCh
 
Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021Jian-Hong Pan
 
Debugging Hung Python Processes With GDB
Debugging Hung Python Processes With GDBDebugging Hung Python Processes With GDB
Debugging Hung Python Processes With GDBbmbouter
 
Rete di casa e raspberry pi - Home network and Raspberry Pi
Rete di casa e raspberry pi - Home network and Raspberry Pi Rete di casa e raspberry pi - Home network and Raspberry Pi
Rete di casa e raspberry pi - Home network and Raspberry Pi Daniele Albrizio
 
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi [Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi Tomomi Imura
 
Developing Android Platform Tools
Developing Android Platform ToolsDeveloping Android Platform Tools
Developing Android Platform ToolsOpersys inc.
 
Getting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitGetting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitSulamita Garcia
 

Similar to Exploring Raspberry Pi (20)

Raspberry Pi GPIO Tutorial - Make Your Own Game Console
Raspberry Pi GPIO Tutorial - Make Your Own Game ConsoleRaspberry Pi GPIO Tutorial - Make Your Own Game Console
Raspberry Pi GPIO Tutorial - Make Your Own Game Console
 
introduction to Raspberry pi
introduction to Raspberry pi introduction to Raspberry pi
introduction to Raspberry pi
 
Raspberry Pi and Amateur Radio - 2020 update
Raspberry Pi and Amateur Radio - 2020 updateRaspberry Pi and Amateur Radio - 2020 update
Raspberry Pi and Amateur Radio - 2020 update
 
Having fun with Raspberry(s) and Apache projects
Having fun with Raspberry(s) and Apache projectsHaving fun with Raspberry(s) and Apache projects
Having fun with Raspberry(s) and Apache projects
 
Free5 gc installation
Free5 gc installationFree5 gc installation
Free5 gc installation
 
pcDuino Presentation at SparkFun
pcDuino Presentation at SparkFunpcDuino Presentation at SparkFun
pcDuino Presentation at SparkFun
 
Introduction to Raspberry Pi
Introduction to Raspberry PiIntroduction to Raspberry Pi
Introduction to Raspberry Pi
 
Hands-on Labs: Raspberry Pi 2 + Windows 10 IoT Core
Hands-on Labs: Raspberry Pi 2 + Windows 10 IoT CoreHands-on Labs: Raspberry Pi 2 + Windows 10 IoT Core
Hands-on Labs: Raspberry Pi 2 + Windows 10 IoT Core
 
Raspberry Pi a la CFML
Raspberry Pi a la CFMLRaspberry Pi a la CFML
Raspberry Pi a la CFML
 
Raspberry pi a la cfml
Raspberry pi a la cfmlRaspberry pi a la cfml
Raspberry pi a la cfml
 
Python-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptxPython-in-Embedded-systems.pptx
Python-in-Embedded-systems.pptx
 
Beyond Puppet
Beyond PuppetBeyond Puppet
Beyond Puppet
 
Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021
 
Debugging Hung Python Processes With GDB
Debugging Hung Python Processes With GDBDebugging Hung Python Processes With GDB
Debugging Hung Python Processes With GDB
 
Rete di casa e raspberry pi - Home network and Raspberry Pi
Rete di casa e raspberry pi - Home network and Raspberry Pi Rete di casa e raspberry pi - Home network and Raspberry Pi
Rete di casa e raspberry pi - Home network and Raspberry Pi
 
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi [Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi
[Forward4 Webinar 2016] Building IoT Prototypes w/ Raspberry Pi
 
Developing Android Platform Tools
Developing Android Platform ToolsDeveloping Android Platform Tools
Developing Android Platform Tools
 
Getting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitGetting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer Kit
 
How to Hack Edison
How to Hack EdisonHow to Hack Edison
How to Hack Edison
 
NetBSD workshop
NetBSD workshopNetBSD workshop
NetBSD workshop
 

Recently uploaded

My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 

Recently uploaded (20)

My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 

Exploring Raspberry Pi

  • 2. About Speakers ● Lentin Joseph, Achu Wilson and Aronin Chandu ● Experience in Robotics and Embedded systems for last 3 years ● http://www.lentinjoseph.com ● http://www.sastrarobotics.com
  • 3. Questions ??? ● Why did you choose this workshop ? ● What are you expecting from this workshop ? ● What do you want to make with RaspberryPi ?
  • 4. Agenda ● Introduction to Raspberry ● Hardware description ● Installation of OS ● OS Introduction ● Remote Acess using SSH,VNC ● Package Management ● GPIO,I2C,SPI
  • 5. Agenda ● Python & GCC ● Wiring Pi and Python GPIO ● Hello_World demo ● LED Blink, PWM etc ● Raspberry Pi and Arduino ● Raspberry Pi and Camera ● Hackathon
  • 7. Compare Raspberry Pi and a PC Components Laptop or PC Raspberry Pi Ver B Processor Intel 2.2 Ghz,Dual Core 700 Mhz,Single Core Arm 11 RAM 6GB 512 MB Graphics Intel HD 3000 Dual core video core IV Ethernet Yes Yes USB 2.0 Yes Yes Video O/P VGA ,HDMI Composite RCA HDMI Audio O/P Yes Yes Storage 500 GB Harddisk 32 GB SD Card Operating System Linux/Windows Only Linux Dimensions 14 inch laptop 8.6x5.4x1.7 cm
  • 13. Raspberry Pi : GPIO ● 8x GPIO (General Purpose Input/Output) ● UART ,I2C ,SPI Bus ● 3.3 V and 5 V pins
  • 16. Basic GNU/Linux commands ● $ls – List Files ● $cd – Change Directory ● $mkdir – Create folder ● $rmdir – Delete folder ● $clear – Clear terminal ● $nano – Text editor
  • 17. Basic GNU/Linux commands ● $dmesg – Show kernel messages ● $lsusb – List connected usb devices ● $cp – Copy Files ● $ssh – Secure shell ● $scp – Copy files from one pc to other using ssh ● $vncviewer – Connect to vnc server
  • 18. Basic GNU/Linux commands ● $sudo – Run in root privilage ● $ping – Pinging to ip address ● $nmap – Searching tool of IP and Ports
  • 19. Installation of OS ● OS Name : Raspbian/Linux ● Download link: http://www.raspberrypi.org/downloads ● Based on Debian operating system ● Desktop Enviornment : LXDE ● Light weight OS
  • 20. Installation of OS ● Installation tools ● For Windows ● Win32DiskImager.exe ● http://sourceforge.net/projects/win32diskimager/ ● For Linux ● $dd ● http://sourceforge.net/projects/win32diskimager/
  • 21. Installation of OS ● Procedure in Linux ● Format SD Card in FAT 32/ext2 ● sudo dd bs=4m if=<name_of_image>.img of=<device name> ● Eg: sudo dd bs=4m if=2013-02-09-wheezy-raspbian.img of=/dev/sdb
  • 22. Setting SSH ● SSH – Secure Shell ● http://en.wikipedia.org/wiki/Secure_Shell ● Direct and Remote Login methods in Rpi ● Types of remote connections ● Rpi and PC connected through router ● Rpi and PC connected through direct connection ● Rpi Wifi Hotspot
  • 23. Raspi-config ● What is raspi-config
  • 24. Setting VNC Server ● VNC(Virtual Network Computing) ● http://en.wikipedia.org/wiki/VNC_server ● Graphical desktop sharing system ● Installation ● $sudo apt-get install tightvncserver ● In Raspberry Pi ● $ vncserver :1 -geometry 1366x600 -depth 16 -pixelformat rgb565 ●
  • 25. Setting VNC Server ● In PC ● Install tightvncviewer ● $ vncviewer ip:5901 ● $ vncviewer 192.168.1.3:5901
  • 28. Package Management ● $apt-get install ● Synaptic Package Manager : GUI of apt-get ● $dpkg
  • 30. GPIO ,I2C,&SPI ● GPIO Libraries ● Rpi.GPIO ● Wiring Pi
  • 31. Rpi.GPIO Installation ● GPIO Library Installation ● $ sudo apt-get update ● $ sudo apt-get install python-dev ● $ sudo apt-get install python-rpi.gpio
  • 32. WiringPi Installation ● Wiring Pi Library Installation ● $ sudo apt-get install git-core ● sudo apt-get update ● sudo apt-get upgrade ● git clone git://git.drogon.net/wiringPi ● cd wiringPi ● git pull origin ● cd wiringPi ● ./build
  • 33. Python & GCC ● Introduction to Python ? ● Sample codes ● Introduction to GCC(Gnu C compiler) ● Sample Codes
  • 34. Rpi.GPIO Basics ➢ import RPi.GPIO as GPIO #Importing GPIO Module ➢ import time # Importing Time module ➢ ➢ GPIO.setmode(GPIO.BOARD) # Taking Pin number from the board ➢ GPIO.setup(12, GPIO.OUT) # Setting 12th pin as OUTPUT ➢ ➢ try: ➢ while True: ➢ GPIO.output(12, GPIO.HIGH) #Setting 12th pin high ➢ time.sleep(1) # 1 sec delay ➢ GPIO.output(12, GPIO.LOW) #Setting 12th pin low ➢ time.sleep(1) ➢ finally: ➢ GPIO.cleanup() #Cleaning the configurations
  • 35. WiringPi Basics ● $ man gpio ● $ gpio -g # Taking BCM GPIO Number ● $gpio [-g] mode <pin> in/out/pwm/up/down/tri ● $ gpio [-g] write <pin> <value> ● $gpio [-g] pwm <pin> <value>(0-1023) ● $ gpio [-g] read < pin> ● $ gpio readall
  • 37. WiringPi Examples ● Setting wiring pin to HIGH ● $gpio mode 1 out ● $gpio write 1 1 ● Setting PWM ● $gpio mode 1 pwm ● $gpio pwm 1 200
  • 42. Raspberry Pi & Arduino http://blog.oscarliang.net/raspberry-pi-and-arduino-connected-serial-gpio/
  • 43. Raspberry Pi & Arduino ● Direct Serial Connection
  • 44. Raspberry Pi & Arduino ● USB Connection
  • 45. Raspberry Pi & Arduino // Arduino Code int serIn; void setup() { Serial.begin(9600); } void loop () { if(Serial.available()) { while (Serial.available()>0){ serIn = Serial.read(); Serial.print(serIn, BYTE); } Serial.println(); } delay(1000); } // Python Code in Raspberry Pi import serial import time ser=serial.Serial('/dev/ttyACM0 ',9600) while True: ser.write('A') Time.sleep(1)
  • 46. Raspberry Pi & Camera
  • 47. Raspberry Pi & Camera ● Connection: Camera Serial Interconnect (CSI) ● Maximum Still Resolution: 2,592×1,944 (currently limited to 1,920×1,080) ● Maximum Video Resolution: 1,920×1,080 (1080p) 30fps
  • 48. Raspberry Pi & Camera $ sudo apt-get install guvcview
  • 49. Raspberry Pi & Sound ● $ sudo apt-get install mplayer
  • 52. Hackathon ● Will select best 3 projects ● Duration : 2 hrs
  • 53. Hackathon ● Will select best 3 projects ● Duration : 2 hrs Happy Hacking :)