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

What's hot (20)

Raspberry Pi presentation for Computer Architecture class
Raspberry Pi presentation for Computer Architecture classRaspberry Pi presentation for Computer Architecture class
Raspberry Pi presentation for Computer Architecture class
 
Simple Presentation On Raspberry pi
Simple Presentation On Raspberry piSimple Presentation On Raspberry pi
Simple Presentation On Raspberry pi
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentation
 
Raspberry pi complete setup
Raspberry pi complete setupRaspberry pi complete setup
Raspberry pi complete setup
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Arduino
ArduinoArduino
Arduino
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Raspberry Pi Technology
Raspberry Pi TechnologyRaspberry Pi Technology
Raspberry Pi Technology
 
Raspberry-Pi
Raspberry-PiRaspberry-Pi
Raspberry-Pi
 
Rasberry pi
 Rasberry pi Rasberry pi
Rasberry pi
 
Arduino
ArduinoArduino
Arduino
 
Rasp berry Pi
Rasp berry PiRasp berry Pi
Rasp berry Pi
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Automation using RaspberryPi and Arduino
Automation using RaspberryPi and ArduinoAutomation using RaspberryPi and Arduino
Automation using RaspberryPi and Arduino
 
Raspberry pi : an introduction
Raspberry pi : an introductionRaspberry pi : an introduction
Raspberry pi : an introduction
 
Introduction to Raspberry PI
Introduction to Raspberry PIIntroduction to Raspberry PI
Introduction to Raspberry PI
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Introduction to Raspberrypi
Introduction to  RaspberrypiIntroduction to  Raspberrypi
Introduction to Raspberrypi
 

Viewers also liked

Raspberry Pi Presentation
Raspberry Pi PresentationRaspberry Pi Presentation
Raspberry Pi PresentationGeekizer
 
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 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
 
Paper battery
Paper batteryPaper battery
Paper battery
 

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

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 

Recently uploaded (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 

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 :)