Raspberry Pi and Scientific Computing [SciPy 2012]

Post on 13-May-2015

321 views 2 download

Tags:

description

A small, credit card sized ARM based computer, Raspberry Pi has seen tremendous response from developers all across the world. This talk is divided in two parts: 1.Raspberry Pi: Getting Started with Python and tools In first part I will brief about raspberry pi, its features and will discuss how scientific computation can be done using small raspberry pi.I will also discuss what tools are needed for the same. It is followed by examples in key area like data processing. 2.Controlling external device using Raspberry Pi and Python In second part of the presentation I will talk about one specific project. Data is entered by user and the complex processing (project specific) is done by python. Based on the result given by python code Raspberry Input/output ports can be controlled to control specific device connected to it.

Transcript of Raspberry Pi and Scientific Computing [SciPy 2012]

1

RASPBERRY PI AND SCIENTIFIC COMPUTINGSamarth Shah (shah.samarth.p@gmail.com)

29/12/2012

“Technology feeds on itself. Technology makes more technology possible “ –Alvin Toffler

2

About Me

29/12/2012

B.Tech Electronics Engineer – 2012 Area of Interests

Hardware tinkering Human Computer Interaction , Kinect Open Source Computer Vision (OpenCV)

Speaker Design Engineer Conference , Delhi Electronics Rocks’12 Conference , Banglore

Writer Electronics For You Open Source For You (Earlier “Linux For You”)

Thinker https://shahsamarth.wordpress.com

Learner Everything that amazes me

3

What will you learn ?

29/12/2012

Raspberry Pi Overview Getting Started Raspberry Pi and Python

Development Demonstration Some cool hacks

4

Motivation

29/12/2012

Tiny Board(85*56*21 mm , 45 grams) Portability Low Cost(25 $ (Model A) , 35 $(Model B)) Open Source

5

What exactly is Raspberry Pi?

29/12/2012

In Simple Terms Small credit card size mini Computer

In Technical Terms ARM11 700 MHz Processor based single-

board computer

Image Credit: Wikipedia

6

Features

29/12/2012

Broadcom BCM 2835 SOC 256 /512 MB RAM 1/2 USB 2.0 Port/s 0/1 Ethernet Port Composite RCA and HDMI Video Output 3.5 mm jack for Audio 8 GPIO , UART , I2C bus , SPI bus with

two chip selects

7

Which OS does it support?

29/12/2012

Android Debian Squeeze Firefox Fedora RISC OS FreeBSD Plan 9 from Bell Labs

Image Source: http://en.wikipedia.org/wiki/File:Plan9bunnysmblack.jpg , http://www.mozill.org , http://www.android.com/

8

Getting Started

29/12/2012

Components Required SD Card (At least 2 GB) USB Keyboard USB Mouse LCD with RCA cable/HDMI cable Power Supply (5 V / 700 mA) Ethernet cable(Optional)

Mount OS to SD card

9

PLAYING WITH RASPBERRY PI AND PYTHON

A Demonstration29/12/2012

10

29/12/2012

11

29/12/2012

Username : pi Password : raspberry

12

29/12/2012

13

29/12/2012

14

Limitations

29/12/2012

Performance Python Module Support LCD Support KeyBoard , Mouse

15

Few Applications

29/12/2012

To encourage students to learn programming

To teach village students programming Development Board like Arduino Home Automation

16

What Else?

29/12/2012

Game Development(Pygame) 3D Development/programming Image Processing Web development

Image Source: http://www.raspberrypi.org and http://www.pygame.org

17

Wait… Imagine What’s Possible

29/12/2012

Tiny , Portable, Open Source Computer With Python Support numpy , scipy matplotlib , iPython Game Development 3D Processing Image Processing Web Development expEYES for Physics More… Personal Example

18

Basic Idea

29/12/2012

Extend usage of Raspberry Pi Physical Research Laboratory ,

Ahmedabad Do “something” to support Indian

Research Scientist

Image Source: http://www.prl.res.in

19

Demonstration

29/12/2012

Data Entered by User

Entered Data processed by

Python in Raspberry Pi

Based on results

external connected

device can be controlled

20

Going Beyond

29/12/2012

Raspberry Pi based Supercomputer Parallel Computing and more RPi Store Custom OS Imagination

Image Credit: http://www.blogcdn.com/www.engadget.com/media/2012/09/iridis-pi-supercomputer.jpg

21

Contact

29/12/2012

shah.samarth.p@gmail.com @SamarthShah_