SlideShare a Scribd company logo
1 of 56
Raspberry PiRaspberry Pi
Content Layout
 Raspberry Pi
o Introduction
o Types & Specifications
o OS
o Architecture
o GPIO Pins
o Hardware & Connectivity
o Use of PI
 Wireless Display over Bluetooth using Pi and Android Phone
 Video
o Raspberry Pi based FM Transmitter
o Difference between Raspberry Pi & Arduino
What is Raspberry Pi?
Raspberry Pi is a single board computer which is the size as small as a credit card.
 Developed by Raspberry Pi foundation in UK
 Costs around US$25 to $35
KEY FEATURES
• Connect to the TV via HDMI interface
• For learning programming
• Act as a media centre for video playback or gaming functions
 The Raspberry Pi measures 85.60mm x 56mm x 21mm (or roughly 3.37″ x 2.21″ x 0.83″) & It weighs 45g
Types& Specification Of Raspberry Pi 
There are two types of Raspberry Pi :
Model A Model B
OPERATING SYSTEM USED IN RASPBERRY PI
 First you have to write it to a suitable (2GB or 4GB) SD card using the UNIX tool dd.
Windows users can use Win32 Disk Imager.
 Install NOOBS in your primary PC
 List of OS
Raspbian “wheezy”
OpenELEC
Occidentalis v0.2
Pidora
RaspBMC
RISC OS
Arch
Linux based OS
ARCHITECTURE OF RASPBERRY PI
PINSLAYOUT
• 17 GPIOpins
• most have alternated functions
• two pins for UART; two for I2C; six for
SPI
• All 17 pins can be GPIO (i.e., INPUT or
OUTPUT)
• all support interrupts
• internal pull-ups & pull-downs for each
pin
•Pins are 3.3V not 5V like on the Arduino
•They are connected directly to the
Broadcom chip
•Sending 5V to a pin may kill the Pi
•Maximum permitted current draw from a
3.3V pin is 50mA
Diagram includes BCM GPIO references (GPIO.BCM), common
functions, WiringPi pin references, and Pin numbers (GPIO.BOARD).
The Bigger Picture
Hardware & Connectivity inside the Pi
COMPONENTSOFA RASPBERRY PI
POWER
5v micro
USB
connector
(Similar to the one on a lot of mobile phones!)
A/V (AUDIO/VIDEO)
HDMI Audio & Video
(works with modern TVs and DVI monitors)
A/V (AUDIO/VIDEO)
RCA Video
(works with
most older
TVs)
HDMI Audio & Video
(works with modern TVs and DVI monitors)
A/V (AUDIO/VIDEO)
RCA Video
(works with
most older
TVs)
HDMI Audio & Video
(works with modern TVs and DVI monitors)
3.5mm Audio
Standard
headphone
socket
CONNECTIVITY
2 x USB 2.0
ports
CONNECTIVITY
2 x USB 2.0
ports
10/100Mb
Ethernet
CONECTIVITY
2 x USB 2.0
ports
10/100Mb
Ethernet
GPIO
(General
Purpose
Input &
Output)
INTERNALS
SOC (System On a Chip)
Broadcom BCM2835 700Mhz & 256Mb / 512Mb RAM
INTERNALS
LAN Controller
SOC (System On a Chip)
Broadcom BCM2835 700Mhz & 256Mb / 512Mb RAM
INTERNALS
JTAG
(debug ports)
LAN Controller
SOC (System On a Chip)
Broadcom BCM2835 700Mhz & 256Mb / 512Mb RAM
INTERNALS
JTAG
(debug ports)
LAN Controller
SOC (System On a Chip)
Broadcom BCM2835 700Mhz & 256Mb / 512Mb RAM
CSI
(camera interface)
INTERNALS
JTAG
(debug ports)
LAN
Controller
SOC (System On a Chip)
Broadcom BCM2835 700Mhz & 256Mb / 512Mb RAM
CSI
(camera interface)
DSI
(display interface)
STORAGE
SD Card Slot
(supports SD cards up to 32GB)
10 USESFORA RASPBERRY PI
10 Office
123456789
12345678910
Office
9 Programming
1234567810
12345678910
Programming
8
Games
Console
1234567910
12345678910
Games
Console
7 Minecraft
1234568910
12345678910
Minecraft
6 Tor Router
1234578910
Tor Router
12345678910
5 HTPC
1234678910
12345678910
HTPC
4 Bartender
1235678910
Bartender
12345678910
3 Camera
1245678910
12345678910
Camera
2
1345678910
Clock
12345678910
Clock
1
2345678910
PiBot!
PiBot!
12345678910
WIRELESSDISPLAY OVER BLUETOOTH
USING PI AND ANDROID PHONE
PROJECT OVERVIEW
 Goal is to build a system using Raspberry Pi and an Android phone to
get the wireless display over Bluetooth and setup a Virtual Network
connection between them
 The basic idea is to set up Bluetooth networking with the Pi, and use
SDL VNC viewer to display the X screen on the Android device
 Virtual NetworkComputing (VNC) is a graphical desktop sharing
system that uses the Remote Frame Buffer protocol (RFB) to remotely
control another computer. It transmits the keyboard and mouse events
from one computer to another, relaying the graphical screen updates
back in the other direction, over a network.
MOTIVATION
 The basic idea of connecting a raspberry pi and an android
over Bluetooth and VNC
 Give usera flexibility to access and workremotely overthe phone
 Can help save and store data over the pi and phone. The
phone can be accessed completely over the Raspberry Pi
 The Raspberry Pi is a pretty powerful device, but much of its
benefits come when it's connected to the Internet. If we want
to utilize the Pi for mobility, we should try this method of
tethering it to our smartphones to get it online anywhere we
have mobile data
SYSTEM ARCHITECTURESystem Architecture:
An overall view of the system is as below:
Ping
On Pi Android Phone
Bluetooth network setup
UtilityVNC Set-up
BLUETOOTH NETWORK SETUP
 The Raspberry pi is not equipped with the built in Bluetooth,
so we need to follow the below steps:
 Bluetooth dongle (We used version 2.0)
 Install drivers
 Commands on the command editor of pi to scan the devices
over Bluetooth. This is needed only for first time
 Connect
VNC SETUPFOR RASPBERRY PI
 Using commands, we installed
TightVNCServer over Raspberry Pi
 Set the pixel format and
geometry settings as for the
Android display screen
 Install client over android
 Connect to Raspberry pi
LEARNING
 Basic Raspberry Pi setup and connection
 Connecting Raspberry Pi and android phone over Bluetooth and access
the data and folders of Android from pi
 Establishing the Virtual Network connection between the Pi and Android
 This enables the users to remotely access the Raspberry pi system over a phone
 Once completely installed, the Pi should automatically mount and
connect to our mobile device when we plug it in, without having to fiddle
around in the command
 Can be enhanced and improved for future works like live
demonstrations, programming and learning
SERVO WITH THE PI
Controlling a Servo with the Pi
• Controlling the servos requires PWM, aka Pulse Width Modulation
– The Arduino program has complete control of the microcontroller
• when it is running loop() nothing else can use the CPU
– Except for interrupt handlers written as part of the Arduino
program
– On the Raspberry Pi, your program runs within a Linux OS
• The Linux OS may switch to running another program!
– But you can change your program’s scheduling priority
• Some ways of getting the Pi to give the impression that it is a real time
system and to do PWM ‘properly’:
Connect a Parallax Servo
Servo Connector:
Black – Pi’s ground
Red – Pi’s 5V
White – signal on GPIO 17
Image credit: http://www.parallax.com/
NOTE: For a single small servo you can take the 5 volts for it from the Pi header,
but doing anything non-trivial with four servos connected pulls the 5 volts down
far enough to crash the Pi
Using WiringPi’s servo example
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <wiringPi.h>
#include <softServo.h>
int main () {
if (wiringPiSetup () == -1) { // setup to use Wiring pin numbers
fprintf (stdout, "oops: %sn", strerror (errno)) ;
return 1 ;
}
softServoSetup (0, 1, 2, 3, 4, 5, 6, 7) ; // wiringPi pin numbers
for (;;) {
softServoWrite (0, 0) ; // wiringPi pin 0 is BCM_GPIO 17
delay (1000) ;
softServoWrite (0, 500) ;
delay (1000);
softServoWrite (0, 1000) ;
delay (1000);
}
Running servo.c
• To compile: gcc -Wall -o servo servo.c
wiringPi/wiringPi/softServo.c  compile softServo.c
-IwiringPi/wiringPi  path to softServo.c
-lwiringPi  include wiring library
• To run: sudo ./servo
• Calling softServoWrite () ;
– The 1st
input is the pin number
– The 2nd
input refers to the number of microseconds of the pulse.
• An input of 0 produces a 1000uSec (1mSec) pulse (hard left)
• An input of 1000 produces a 2000uSec (2mSec) pulse (hard right)
• An input of 500 produces a 1500uSec (1.5 mSec) pulse (stop)
Raspberry-Pi

More Related Content

What's hot

Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pipraveen_23
 
Presentation on Raspberry pi
Presentation on Raspberry piPresentation on Raspberry pi
Presentation on Raspberry piOpenDev
 
Raspberry Pi Technology
Raspberry Pi TechnologyRaspberry Pi Technology
Raspberry Pi TechnologyRavi Basil
 
Raspberry pi : an introduction
Raspberry pi : an introductionRaspberry pi : an introduction
Raspberry pi : an introductionLTG Oxford
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Mandeesh Singh
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Mandeesh Singh
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino MicrocontrollerShyam Mohan
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry piHusainBhaldar21
 
Raspberry Pi Introduction
Raspberry Pi IntroductionRaspberry Pi Introduction
Raspberry Pi IntroductionMichal Sedlak
 
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 classMichael Gordon
 
Raspberry Pi Presentation
Raspberry Pi PresentationRaspberry Pi Presentation
Raspberry Pi PresentationGeekizer
 

What's hot (20)

Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pi
 
Raspberry PI
Raspberry PIRaspberry PI
Raspberry PI
 
Presentation on Raspberry pi
Presentation on Raspberry piPresentation on Raspberry pi
Presentation on Raspberry pi
 
Raspberry Pi Technology
Raspberry Pi TechnologyRaspberry Pi Technology
Raspberry Pi Technology
 
Raspberry pi : an introduction
Raspberry pi : an introductionRaspberry pi : an introduction
Raspberry pi : an introduction
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino Microcontroller
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
 
Raspberry Pi Introduction
Raspberry Pi IntroductionRaspberry Pi Introduction
Raspberry Pi Introduction
 
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
 
Raspberry Pi Presentation
Raspberry Pi PresentationRaspberry Pi Presentation
Raspberry Pi Presentation
 
Raspberry pi ppt
Raspberry pi pptRaspberry pi ppt
Raspberry pi ppt
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry Pi
 Raspberry Pi  Raspberry Pi
Raspberry Pi
 

Viewers also liked

LCA13: ARMv8 Status and Updates
LCA13: ARMv8 Status and UpdatesLCA13: ARMv8 Status and Updates
LCA13: ARMv8 Status and UpdatesLinaro
 
A seminar report on Raspberry Pi
A seminar report on Raspberry PiA seminar report on Raspberry Pi
A seminar report on Raspberry Pinipunmaster
 
Getting Started with Raspberry Pi
Getting Started with Raspberry PiGetting Started with Raspberry Pi
Getting Started with Raspberry Piyeokm1
 
AKIBAX2010 新ブーム「電子工作」を体験しよう!
AKIBAX2010 新ブーム「電子工作」を体験しよう!AKIBAX2010 新ブーム「電子工作」を体験しよう!
AKIBAX2010 新ブーム「電子工作」を体験しよう!encafe
 
How I Learned To Stop Worrying (And Love The KiCad)
How I Learned To Stop Worrying (And Love The KiCad)How I Learned To Stop Worrying (And Love The KiCad)
How I Learned To Stop Worrying (And Love The KiCad)ChrisGammell
 
Iphoneで良い音楽を聞く方法
Iphoneで良い音楽を聞く方法Iphoneで良い音楽を聞く方法
Iphoneで良い音楽を聞く方法Kyohei Morimoto
 
これからの音楽はハイレゾだ!
これからの音楽はハイレゾだ!これからの音楽はハイレゾだ!
これからの音楽はハイレゾだ!Courslide
 
ビル・ゲイツ「学校では教えてくれない人生に役立つ11のルール」
ビル・ゲイツ「学校では教えてくれない人生に役立つ11のルール」ビル・ゲイツ「学校では教えてくれない人生に役立つ11のルール」
ビル・ゲイツ「学校では教えてくれない人生に役立つ11のルール」Courslide
 
Why (and how) to switch to KiCad
Why (and how) to switch to KiCadWhy (and how) to switch to KiCad
Why (and how) to switch to KiCadBaoshi Zhu
 
Designing with KiCAD of 64-bit ARM board
Designing with KiCAD of 64-bit ARM boardDesigning with KiCAD of 64-bit ARM board
Designing with KiCAD of 64-bit ARM boardOlimex Bulgaria
 
PCB Business Card
PCB Business CardPCB Business Card
PCB Business Cardyeokm1
 
Picademy 5 Picamera Intro Workshop
Picademy 5 Picamera Intro WorkshopPicademy 5 Picamera Intro Workshop
Picademy 5 Picamera Intro Workshopbennuttall
 
Raspberry PiのUSB OTGを試す
Raspberry PiのUSB OTGを試すRaspberry PiのUSB OTGを試す
Raspberry PiのUSB OTGを試すKenichiro MATOHARA
 
技適なBluetooth GNSS/GPSレシーバーをRaspberryPiで作りたい
技適なBluetooth GNSS/GPSレシーバーをRaspberryPiで作りたい技適なBluetooth GNSS/GPSレシーバーをRaspberryPiで作りたい
技適なBluetooth GNSS/GPSレシーバーをRaspberryPiで作りたいKenichiro MATOHARA
 
プログラミング言語の理念いろいろ
プログラミング言語の理念いろいろプログラミング言語の理念いろいろ
プログラミング言語の理念いろいろTomoki Suzuki
 
Raspberry Piで 初心者が 半日でできる電子工作 を考えてみた
Raspberry Piで 初心者が 半日でできる電子工作 を考えてみたRaspberry Piで 初心者が 半日でできる電子工作 を考えてみた
Raspberry Piで 初心者が 半日でできる電子工作 を考えてみたVirtualTech Japan Inc./Begi.net Inc.
 
Raspberry pi technology
Raspberry pi technologyRaspberry pi technology
Raspberry pi technologyZeeshan Aslam
 
Raspberry Pi Zero
Raspberry Pi ZeroRaspberry Pi Zero
Raspberry Pi ZeroBaoshi Zhu
 

Viewers also liked (20)

LCA13: ARMv8 Status and Updates
LCA13: ARMv8 Status and UpdatesLCA13: ARMv8 Status and Updates
LCA13: ARMv8 Status and Updates
 
Introduction to Raspberry PI
Introduction to Raspberry PIIntroduction to Raspberry PI
Introduction to Raspberry PI
 
A seminar report on Raspberry Pi
A seminar report on Raspberry PiA seminar report on Raspberry Pi
A seminar report on Raspberry Pi
 
Rassberry pi
Rassberry piRassberry pi
Rassberry pi
 
Getting Started with Raspberry Pi
Getting Started with Raspberry PiGetting Started with Raspberry Pi
Getting Started with Raspberry Pi
 
AKIBAX2010 新ブーム「電子工作」を体験しよう!
AKIBAX2010 新ブーム「電子工作」を体験しよう!AKIBAX2010 新ブーム「電子工作」を体験しよう!
AKIBAX2010 新ブーム「電子工作」を体験しよう!
 
How I Learned To Stop Worrying (And Love The KiCad)
How I Learned To Stop Worrying (And Love The KiCad)How I Learned To Stop Worrying (And Love The KiCad)
How I Learned To Stop Worrying (And Love The KiCad)
 
Iphoneで良い音楽を聞く方法
Iphoneで良い音楽を聞く方法Iphoneで良い音楽を聞く方法
Iphoneで良い音楽を聞く方法
 
これからの音楽はハイレゾだ!
これからの音楽はハイレゾだ!これからの音楽はハイレゾだ!
これからの音楽はハイレゾだ!
 
ビル・ゲイツ「学校では教えてくれない人生に役立つ11のルール」
ビル・ゲイツ「学校では教えてくれない人生に役立つ11のルール」ビル・ゲイツ「学校では教えてくれない人生に役立つ11のルール」
ビル・ゲイツ「学校では教えてくれない人生に役立つ11のルール」
 
Why (and how) to switch to KiCad
Why (and how) to switch to KiCadWhy (and how) to switch to KiCad
Why (and how) to switch to KiCad
 
Designing with KiCAD of 64-bit ARM board
Designing with KiCAD of 64-bit ARM boardDesigning with KiCAD of 64-bit ARM board
Designing with KiCAD of 64-bit ARM board
 
PCB Business Card
PCB Business CardPCB Business Card
PCB Business Card
 
Picademy 5 Picamera Intro Workshop
Picademy 5 Picamera Intro WorkshopPicademy 5 Picamera Intro Workshop
Picademy 5 Picamera Intro Workshop
 
Raspberry PiのUSB OTGを試す
Raspberry PiのUSB OTGを試すRaspberry PiのUSB OTGを試す
Raspberry PiのUSB OTGを試す
 
技適なBluetooth GNSS/GPSレシーバーをRaspberryPiで作りたい
技適なBluetooth GNSS/GPSレシーバーをRaspberryPiで作りたい技適なBluetooth GNSS/GPSレシーバーをRaspberryPiで作りたい
技適なBluetooth GNSS/GPSレシーバーをRaspberryPiで作りたい
 
プログラミング言語の理念いろいろ
プログラミング言語の理念いろいろプログラミング言語の理念いろいろ
プログラミング言語の理念いろいろ
 
Raspberry Piで 初心者が 半日でできる電子工作 を考えてみた
Raspberry Piで 初心者が 半日でできる電子工作 を考えてみたRaspberry Piで 初心者が 半日でできる電子工作 を考えてみた
Raspberry Piで 初心者が 半日でできる電子工作 を考えてみた
 
Raspberry pi technology
Raspberry pi technologyRaspberry pi technology
Raspberry pi technology
 
Raspberry Pi Zero
Raspberry Pi ZeroRaspberry Pi Zero
Raspberry Pi Zero
 

Similar to Raspberry-Pi

Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlPradip Bhandari
 
IoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptxIoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptxMadhurimaDas52
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentationGR Techno Solutions
 
Iaetsd the universal brain for all robots
Iaetsd the universal brain for all robotsIaetsd the universal brain for all robots
Iaetsd the universal brain for all robotsIaetsd Iaetsd
 
Raspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your LibraryRaspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your LibraryBrian Pichman
 
Iaetsd the world’s smallest computer for programmers and app developers
Iaetsd the world’s smallest computer for programmers and app developersIaetsd the world’s smallest computer for programmers and app developers
Iaetsd the world’s smallest computer for programmers and app developersIaetsd Iaetsd
 
Internet of things aktu lab file
Internet of things  aktu lab fileInternet of things  aktu lab file
Internet of things aktu lab fileNitesh Dubey
 
Bulb Control using Web App with Raspberry Pi
Bulb Control using Web App with Raspberry Pi Bulb Control using Web App with Raspberry Pi
Bulb Control using Web App with Raspberry Pi Sanjay Kumar
 
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIDevelop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIEnablex io
 
Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Mandeesh Singh
 
Single Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsSingle Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsEueung Mulyana
 
Low Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PILow Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PIVarun A M
 
projectppt-141127001908-conversion-gate02.pptx
projectppt-141127001908-conversion-gate02.pptxprojectppt-141127001908-conversion-gate02.pptx
projectppt-141127001908-conversion-gate02.pptxbhaveshagrawal35
 

Similar to Raspberry-Pi (20)

Amity Raspberry Jam
Amity Raspberry JamAmity Raspberry Jam
Amity Raspberry Jam
 
Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin Control
 
Video conferincing
Video conferincingVideo conferincing
Video conferincing
 
IoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptxIoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptx
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentation
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Iaetsd the universal brain for all robots
Iaetsd the universal brain for all robotsIaetsd the universal brain for all robots
Iaetsd the universal brain for all robots
 
Raspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your LibraryRaspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your Library
 
Capstone_Project.ppt
Capstone_Project.pptCapstone_Project.ppt
Capstone_Project.ppt
 
Iaetsd the world’s smallest computer for programmers and app developers
Iaetsd the world’s smallest computer for programmers and app developersIaetsd the world’s smallest computer for programmers and app developers
Iaetsd the world’s smallest computer for programmers and app developers
 
RASPBERRY Pi.pptx
RASPBERRY Pi.pptxRASPBERRY Pi.pptx
RASPBERRY Pi.pptx
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Internet of things aktu lab file
Internet of things  aktu lab fileInternet of things  aktu lab file
Internet of things aktu lab file
 
Bulb Control using Web App with Raspberry Pi
Bulb Control using Web App with Raspberry Pi Bulb Control using Web App with Raspberry Pi
Bulb Control using Web App with Raspberry Pi
 
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIDevelop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
 
Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014
 
Single Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsSingle Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi Basics
 
Low Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PILow Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PI
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
projectppt-141127001908-conversion-gate02.pptx
projectppt-141127001908-conversion-gate02.pptxprojectppt-141127001908-conversion-gate02.pptx
projectppt-141127001908-conversion-gate02.pptx
 

More from Rehan Fazal

Water Distribution Control System
Water Distribution Control SystemWater Distribution Control System
Water Distribution Control SystemRehan Fazal
 
Plc based Robotic Arm and Automated Different Size Bottle Filling System
Plc based Robotic Arm and Automated Different Size Bottle Filling SystemPlc based Robotic Arm and Automated Different Size Bottle Filling System
Plc based Robotic Arm and Automated Different Size Bottle Filling SystemRehan Fazal
 
Chhatisgarh State Electricity
Chhatisgarh State Electricity Chhatisgarh State Electricity
Chhatisgarh State Electricity Rehan Fazal
 
BHEL Vocational Training
BHEL Vocational TrainingBHEL Vocational Training
BHEL Vocational TrainingRehan Fazal
 
YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3Rehan Fazal
 
Surface acoustic wave (saw) radio transponders
Surface acoustic wave (saw) radio transpondersSurface acoustic wave (saw) radio transponders
Surface acoustic wave (saw) radio transpondersRehan Fazal
 
Transparent Electronics
Transparent ElectronicsTransparent Electronics
Transparent ElectronicsRehan Fazal
 
Thermoelectric Fan Powered By a Candle
Thermoelectric Fan Powered By a CandleThermoelectric Fan Powered By a Candle
Thermoelectric Fan Powered By a CandleRehan Fazal
 
Organic Light Emitting Diode
Organic Light Emitting DiodeOrganic Light Emitting Diode
Organic Light Emitting DiodeRehan Fazal
 
Online Electric Vehicle
Online Electric VehicleOnline Electric Vehicle
Online Electric VehicleRehan Fazal
 
Brain Machine Interface
Brain Machine InterfaceBrain Machine Interface
Brain Machine InterfaceRehan Fazal
 

More from Rehan Fazal (20)

Water Distribution Control System
Water Distribution Control SystemWater Distribution Control System
Water Distribution Control System
 
Plc based Robotic Arm and Automated Different Size Bottle Filling System
Plc based Robotic Arm and Automated Different Size Bottle Filling SystemPlc based Robotic Arm and Automated Different Size Bottle Filling System
Plc based Robotic Arm and Automated Different Size Bottle Filling System
 
Jindal Steel
Jindal SteelJindal Steel
Jindal Steel
 
Chhatisgarh State Electricity
Chhatisgarh State Electricity Chhatisgarh State Electricity
Chhatisgarh State Electricity
 
BHEL Vocational Training
BHEL Vocational TrainingBHEL Vocational Training
BHEL Vocational Training
 
YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3YOKOGAWA CENTUM CS 3000 R3
YOKOGAWA CENTUM CS 3000 R3
 
Surface acoustic wave (saw) radio transponders
Surface acoustic wave (saw) radio transpondersSurface acoustic wave (saw) radio transponders
Surface acoustic wave (saw) radio transponders
 
Red Tacton
Red TactonRed Tacton
Red Tacton
 
Transparent Electronics
Transparent ElectronicsTransparent Electronics
Transparent Electronics
 
Thermoelectric Fan Powered By a Candle
Thermoelectric Fan Powered By a CandleThermoelectric Fan Powered By a Candle
Thermoelectric Fan Powered By a Candle
 
Spintronics
SpintronicsSpintronics
Spintronics
 
Projectors
ProjectorsProjectors
Projectors
 
Paper Battery
Paper BatteryPaper Battery
Paper Battery
 
Organic Light Emitting Diode
Organic Light Emitting DiodeOrganic Light Emitting Diode
Organic Light Emitting Diode
 
Online Electric Vehicle
Online Electric VehicleOnline Electric Vehicle
Online Electric Vehicle
 
Lego
LegoLego
Lego
 
Guided Missiles
Guided MissilesGuided Missiles
Guided Missiles
 
Emp Bomb
Emp BombEmp Bomb
Emp Bomb
 
Electronic Nose
Electronic NoseElectronic Nose
Electronic Nose
 
Brain Machine Interface
Brain Machine InterfaceBrain Machine Interface
Brain Machine Interface
 

Recently uploaded

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 

Recently uploaded (20)

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 

Raspberry-Pi

  • 2. Content Layout  Raspberry Pi o Introduction o Types & Specifications o OS o Architecture o GPIO Pins o Hardware & Connectivity o Use of PI  Wireless Display over Bluetooth using Pi and Android Phone  Video o Raspberry Pi based FM Transmitter o Difference between Raspberry Pi & Arduino
  • 3. What is Raspberry Pi? Raspberry Pi is a single board computer which is the size as small as a credit card.  Developed by Raspberry Pi foundation in UK  Costs around US$25 to $35 KEY FEATURES • Connect to the TV via HDMI interface • For learning programming • Act as a media centre for video playback or gaming functions  The Raspberry Pi measures 85.60mm x 56mm x 21mm (or roughly 3.37″ x 2.21″ x 0.83″) & It weighs 45g
  • 4. Types& Specification Of Raspberry Pi  There are two types of Raspberry Pi : Model A Model B
  • 5. OPERATING SYSTEM USED IN RASPBERRY PI  First you have to write it to a suitable (2GB or 4GB) SD card using the UNIX tool dd. Windows users can use Win32 Disk Imager.  Install NOOBS in your primary PC  List of OS Raspbian “wheezy” OpenELEC Occidentalis v0.2 Pidora RaspBMC RISC OS Arch Linux based OS
  • 7. PINSLAYOUT • 17 GPIOpins • most have alternated functions • two pins for UART; two for I2C; six for SPI • All 17 pins can be GPIO (i.e., INPUT or OUTPUT) • all support interrupts • internal pull-ups & pull-downs for each pin •Pins are 3.3V not 5V like on the Arduino •They are connected directly to the Broadcom chip •Sending 5V to a pin may kill the Pi •Maximum permitted current draw from a 3.3V pin is 50mA
  • 8. Diagram includes BCM GPIO references (GPIO.BCM), common functions, WiringPi pin references, and Pin numbers (GPIO.BOARD). The Bigger Picture
  • 9. Hardware & Connectivity inside the Pi COMPONENTSOFA RASPBERRY PI
  • 10. POWER 5v micro USB connector (Similar to the one on a lot of mobile phones!)
  • 11. A/V (AUDIO/VIDEO) HDMI Audio & Video (works with modern TVs and DVI monitors)
  • 12. A/V (AUDIO/VIDEO) RCA Video (works with most older TVs) HDMI Audio & Video (works with modern TVs and DVI monitors)
  • 13. A/V (AUDIO/VIDEO) RCA Video (works with most older TVs) HDMI Audio & Video (works with modern TVs and DVI monitors) 3.5mm Audio Standard headphone socket
  • 14. CONNECTIVITY 2 x USB 2.0 ports
  • 15. CONNECTIVITY 2 x USB 2.0 ports 10/100Mb Ethernet
  • 16. CONECTIVITY 2 x USB 2.0 ports 10/100Mb Ethernet GPIO (General Purpose Input & Output)
  • 17. INTERNALS SOC (System On a Chip) Broadcom BCM2835 700Mhz & 256Mb / 512Mb RAM
  • 18. INTERNALS LAN Controller SOC (System On a Chip) Broadcom BCM2835 700Mhz & 256Mb / 512Mb RAM
  • 19. INTERNALS JTAG (debug ports) LAN Controller SOC (System On a Chip) Broadcom BCM2835 700Mhz & 256Mb / 512Mb RAM
  • 20. INTERNALS JTAG (debug ports) LAN Controller SOC (System On a Chip) Broadcom BCM2835 700Mhz & 256Mb / 512Mb RAM CSI (camera interface)
  • 21. INTERNALS JTAG (debug ports) LAN Controller SOC (System On a Chip) Broadcom BCM2835 700Mhz & 256Mb / 512Mb RAM CSI (camera interface) DSI (display interface)
  • 22. STORAGE SD Card Slot (supports SD cards up to 32GB)
  • 44. WIRELESSDISPLAY OVER BLUETOOTH USING PI AND ANDROID PHONE
  • 45. PROJECT OVERVIEW  Goal is to build a system using Raspberry Pi and an Android phone to get the wireless display over Bluetooth and setup a Virtual Network connection between them  The basic idea is to set up Bluetooth networking with the Pi, and use SDL VNC viewer to display the X screen on the Android device  Virtual NetworkComputing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer protocol (RFB) to remotely control another computer. It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network.
  • 46. MOTIVATION  The basic idea of connecting a raspberry pi and an android over Bluetooth and VNC  Give usera flexibility to access and workremotely overthe phone  Can help save and store data over the pi and phone. The phone can be accessed completely over the Raspberry Pi  The Raspberry Pi is a pretty powerful device, but much of its benefits come when it's connected to the Internet. If we want to utilize the Pi for mobility, we should try this method of tethering it to our smartphones to get it online anywhere we have mobile data
  • 47. SYSTEM ARCHITECTURESystem Architecture: An overall view of the system is as below: Ping On Pi Android Phone Bluetooth network setup UtilityVNC Set-up
  • 48. BLUETOOTH NETWORK SETUP  The Raspberry pi is not equipped with the built in Bluetooth, so we need to follow the below steps:  Bluetooth dongle (We used version 2.0)  Install drivers  Commands on the command editor of pi to scan the devices over Bluetooth. This is needed only for first time  Connect
  • 49. VNC SETUPFOR RASPBERRY PI  Using commands, we installed TightVNCServer over Raspberry Pi  Set the pixel format and geometry settings as for the Android display screen  Install client over android  Connect to Raspberry pi
  • 50. LEARNING  Basic Raspberry Pi setup and connection  Connecting Raspberry Pi and android phone over Bluetooth and access the data and folders of Android from pi  Establishing the Virtual Network connection between the Pi and Android  This enables the users to remotely access the Raspberry pi system over a phone  Once completely installed, the Pi should automatically mount and connect to our mobile device when we plug it in, without having to fiddle around in the command  Can be enhanced and improved for future works like live demonstrations, programming and learning
  • 52. Controlling a Servo with the Pi • Controlling the servos requires PWM, aka Pulse Width Modulation – The Arduino program has complete control of the microcontroller • when it is running loop() nothing else can use the CPU – Except for interrupt handlers written as part of the Arduino program – On the Raspberry Pi, your program runs within a Linux OS • The Linux OS may switch to running another program! – But you can change your program’s scheduling priority • Some ways of getting the Pi to give the impression that it is a real time system and to do PWM ‘properly’:
  • 53. Connect a Parallax Servo Servo Connector: Black – Pi’s ground Red – Pi’s 5V White – signal on GPIO 17 Image credit: http://www.parallax.com/ NOTE: For a single small servo you can take the 5 volts for it from the Pi header, but doing anything non-trivial with four servos connected pulls the 5 volts down far enough to crash the Pi
  • 54. Using WiringPi’s servo example #include <stdio.h> #include <errno.h> #include <string.h> #include <wiringPi.h> #include <softServo.h> int main () { if (wiringPiSetup () == -1) { // setup to use Wiring pin numbers fprintf (stdout, "oops: %sn", strerror (errno)) ; return 1 ; } softServoSetup (0, 1, 2, 3, 4, 5, 6, 7) ; // wiringPi pin numbers for (;;) { softServoWrite (0, 0) ; // wiringPi pin 0 is BCM_GPIO 17 delay (1000) ; softServoWrite (0, 500) ; delay (1000); softServoWrite (0, 1000) ; delay (1000); }
  • 55. Running servo.c • To compile: gcc -Wall -o servo servo.c wiringPi/wiringPi/softServo.c  compile softServo.c -IwiringPi/wiringPi  path to softServo.c -lwiringPi  include wiring library • To run: sudo ./servo • Calling softServoWrite () ; – The 1st input is the pin number – The 2nd input refers to the number of microseconds of the pulse. • An input of 0 produces a 1000uSec (1mSec) pulse (hard left) • An input of 1000 produces a 2000uSec (2mSec) pulse (hard right) • An input of 500 produces a 1500uSec (1.5 mSec) pulse (stop)