BY :
SHASHANK KARTHIK D JOSHI
INTROUCTION TO
RASPBERRY PI
What is Raspberry Pi ?
Credit card size single board computer or a
Programmable PC
Developed in U.K. by Raspberry - Pi foundation in
2009
Concept Initiated by Eben Upton who works at
Broadcom
Supported by “University of Cambridge Computer Laboratory & Broadcom”
To promote the study of basic computer science in
schools & to develop interest among kids and adults
Has been a revolution in the market with over 3
million units sold
Video Demo (www.raspberrypi.org)
History
The Raspberry Pi is the work of the Raspberry Pi
Foundation, a charitable organisation.
UK registered charity (No. 1129409), May 2009
It's supported by the University of Cambridge
Computer Laboratory and tech firm Broadcomm
Why Raspberry Pi ?
Very Low Cost ($25 – Rs 1550/- for Model A & $35 –
Rs 2200/- for Model B/B+)
Great tool for Learning Programming, Computers &
Concepts of Embedded Linux, etc
Support for all Age Groups (School Children, College
Undergraduates, Professional Developers,
Programmers)
Supports & runs Free and Open Source Linux OS
Consumes less than 5W of Power
Supports Full HD Video Output (1080p), Multiple USB
Ports , etc
Fun to learn & explore.You are limited by your
imagination
Raspberry Pi – Models
3 Main Models/Versions released till date with Model
B+ being the latest in the series.
Technical Specs.
Processor : Broadcom BCM2835 SoC (System on
Chip)
Core : ARM11 (700 MHz ARM1176JZF-S)
Memory (RAM) : 256 Mb (Model A) or 512 Mb (Model
B/B+)
GPU : Broadcom Videocore IV
USB 2.0 : 1 (Model A) / 2 (Model B) / 4 (Model B+)
On Board Storage : SD Card (Model A/B) / Micro SD
(Model B+)
Video Input : Camera Support via CSI Connector
Video Output : Composite Video (RCA) or HDMI or
LCD Support via DSI
Technical Specs. (Cont.)
Networking : 10/100 Mbit/s Ethernet Support on
Model B/B+
Audio Outputs : 3.5 mm Jack
I.O. Lines : 26 Pin GPIO Connector on Model A/B and
40 Pin GPIO Connector on Model B+ (GPIO, UART,
SPI, I2C, Power Rails, I2S, etc)
Power Source : 5V/2A DC Adapter via Micro USB
Power Ratings : 300 mA (1.5W – Model A), 700 mA
(3.5W – Model B) & 600 mA (3W – Model B+)
Operating Systems : Raspbian, Debian, Pidora,
Fedora, OpenELEC, ArchLinux ARM, FreeBSD,etc
Setup Python
sudo apt-get install python-dev
sudo apt-get install python-rpi.gpio
GPIO PINS
Set the status of GPIO Pins
Set the status of GPIO Pins
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(12, GPIO.OUT)
try:
while True:
GPIO.output(12, GPIO.HIGH)
time.sleep(1)
GPIO.output(12, GPIO.LOW)
time.sleep(1)
finally:
GPIO.cleanup()
Changing the brightness of the LED
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(12, GPIO.OUT)
p = GPIO.PWM(12, 50) # channel=12 frequency=50Hz
p.start(0)
try:
while True:
for dc in range(0, 101, 5):
p.ChangeDutyCycle(dc)
time.sleep(0.1)
for dc in range(100, -1, -5):
p.ChangeDutyCycle(dc)
time.sleep(0.1)
finally:
p.stop()
GPIO.cleanup()
Protocols Used:
I2C
SPI
Serial
ADVANTAGES
It is very easy to connect to the internet
Entire Linux software stack is available
Can be programmed using a variety of
programming languages
Applications
It can make your Old TV in to a smart TV. (You can
play Videos, 3D Games, Music, Browse Internet and
much more.Raspberry Pi can Act as Full HD 1080p Media Player.
Its a Mini Computer which just cost Rs.2,350/-;You can connect a Monitor, Keyboard and
Mouse and use it as a normal computer.
Its Graphics Capabilities is better than Apple
Products.
DISADVANTAGES
It does not have a Hard Disk associated with it for
permanent storage pf files,we have to connect one
externally or have to use SD card for the purpose.
The RAM is a POP package on top of the SoC, so
it’s not removable or swappable.
There is no Real time clock associated with the
board.Adding an RTC is expensive.You can add
one yourself using the GPIO pins.
DIFFERNECES BETWEEN RASPBERRY PI AND ARDUINO
Features Rapberry PI Arduino
Programming Language No Limit Arduino, C/C++
Processor Speed 700 MHz 16 MHz
Internet Connectivity very Not Easy Doable
easy
Hardware Design Closed source Open Source
Real Time Hardware real time In real time
Analog to Digital No Yes
THANK YOU…