Intro to Raspberry Pi - by Sivakumar V

Post on 13-May-2015

730 views 2 download

Tags:

description

Lets connect Raspberry pi and code with it.

transcript

© Spritle Software Private Limited | http://www.spritle.com

Raspberry Pi

Sivakumar V23rd Dec 2013

github.com/sivakumar.bdu

© Spritle Software Private Limited | http://www.spritle.com

Agenda

• Intro• Some history• Sample demos• Questions

© Spritle Software Private Limited | http://www.spritle.com

© Spritle Software Private Limited | http://www.spritle.com

What is Raspberry Pi?

• The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard.

• It is a capable little computer which can be used in electronics projects, and for many of the things that your desktop PC does, like spreadsheets, word-processing and games.

• It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.

© Spritle Software Private Limited | http://www.spritle.com

Types

• Modal A– 256 MB Ram– 1 x USB– No Ethernet

• Model B– 512 Mb Ram– 2 x USB – 1 Ethernet

© Spritle Software Private Limited | http://www.spritle.com

Architecture

© Spritle Software Private Limited | http://www.spritle.com

Tools

• Python(Quick2Wire) • Ruby – 1.9.2.x• OpenSource libraries• Scratch

© Spritle Software Private Limited | http://www.spritle.com

Quick2Wire

• Python API to access GPIhttp://quick2wire.com/

import sysfrom time import sleepfrom quick2wire.gpio import GPIOPin, In, Out

led = GPIOPin(1, direction=Out)button = GPIOPin(0, direction=In)

while True: led.value = button.value sleep(0.1)

© Spritle Software Private Limited | http://www.spritle.com

Reference

• http://elinux.org/RPi_Easy_SD_Card_Setup • http://quick2wire.com/• https://github.com/quick2wire/quick2wire-

python-api

© Spritle Software Private Limited | http://www.spritle.com

Questions?

Thank you