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

Seminar Presentation on raspberry pi
Seminar Presentation on raspberry piSeminar Presentation on raspberry pi
Seminar Presentation on raspberry piGeorgekutty Francis
 
Raspberry Pi Technology
Raspberry Pi TechnologyRaspberry Pi Technology
Raspberry Pi TechnologyRavi Basil
 
Introduction to Raspberrypi
Introduction to  RaspberrypiIntroduction to  Raspberrypi
Introduction to RaspberrypiIheb Ben Salem
 
Raspberry Pi Introduction
Raspberry Pi IntroductionRaspberry Pi Introduction
Raspberry Pi IntroductionMichal Sedlak
 
Getting Started with Raspberry Pi
Getting Started with Raspberry PiGetting Started with Raspberry Pi
Getting Started with Raspberry Piyeokm1
 
Andes building a secure platform with the enhanced iopmp
Andes building a secure platform with the enhanced iopmpAndes building a secure platform with the enhanced iopmp
Andes building a secure platform with the enhanced iopmpRISC-V International
 
Raspberry Pi Presentation
Raspberry Pi PresentationRaspberry Pi Presentation
Raspberry Pi PresentationGeekizer
 
Introduction to open_sbi
Introduction to open_sbiIntroduction to open_sbi
Introduction to open_sbiNylon
 
Raspberrypi best ppt
Raspberrypi best ppt Raspberrypi best ppt
Raspberrypi best ppt SOMRAJ GAUTAM
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Mandeesh Singh
 
U-Boot presentation 2013
U-Boot presentation  2013U-Boot presentation  2013
U-Boot presentation 2013Wave Digitech
 

What's hot (20)

Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry pi ppt
Raspberry pi pptRaspberry pi ppt
Raspberry pi ppt
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Seminar Presentation on raspberry pi
Seminar Presentation on raspberry piSeminar Presentation on raspberry pi
Seminar Presentation on raspberry pi
 
Raspberry Pi Technology
Raspberry Pi TechnologyRaspberry Pi Technology
Raspberry Pi Technology
 
Introduction to Raspberrypi
Introduction to  RaspberrypiIntroduction to  Raspberrypi
Introduction to Raspberrypi
 
Raspberry Pi Introduction
Raspberry Pi IntroductionRaspberry Pi Introduction
Raspberry Pi Introduction
 
Getting Started with Raspberry Pi
Getting Started with Raspberry PiGetting Started with Raspberry Pi
Getting Started with Raspberry Pi
 
Andes building a secure platform with the enhanced iopmp
Andes building a secure platform with the enhanced iopmpAndes building a secure platform with the enhanced iopmp
Andes building a secure platform with the enhanced iopmp
 
Raspberry-Pi
Raspberry-PiRaspberry-Pi
Raspberry-Pi
 
Raspberry Pi Presentation
Raspberry Pi PresentationRaspberry Pi Presentation
Raspberry Pi Presentation
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Rasp berry Pi
Rasp berry PiRasp berry Pi
Rasp berry Pi
 
Introduction to open_sbi
Introduction to open_sbiIntroduction to open_sbi
Introduction to open_sbi
 
Introduction to Raspberry PI
Introduction to Raspberry PIIntroduction to Raspberry PI
Introduction to Raspberry PI
 
Raspberrypi best ppt
Raspberrypi best ppt Raspberrypi best ppt
Raspberrypi best ppt
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
U-Boot presentation 2013
U-Boot presentation  2013U-Boot presentation  2013
U-Boot presentation 2013
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 

Viewers also liked

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
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino ProgrammingJames Lewis
 

Viewers also liked (20)

Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
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
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino Programming
 

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

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
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
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
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
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
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
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Recently uploaded (20)

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
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
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
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
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
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
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
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!
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 

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