10
Raspberry Pi Sivakumar V 23 rd Dec 2013 github.com/sivakumar.bdu © Spritle Software Private Limited | http://www.spritle.com

Intro to Raspberry Pi - by Sivakumar V

Embed Size (px)

DESCRIPTION

Lets connect Raspberry pi and code with it.

Citation preview

Page 1: Intro to Raspberry Pi - by Sivakumar V

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

Raspberry Pi

Sivakumar V23rd Dec 2013

github.com/sivakumar.bdu

Page 2: Intro to Raspberry Pi - by Sivakumar V

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

Agenda

• Intro• Some history• Sample demos• Questions

Page 3: Intro to Raspberry Pi - by Sivakumar V

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

Page 4: Intro to Raspberry Pi - by Sivakumar V

© 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.

Page 5: Intro to Raspberry Pi - by Sivakumar V

© 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

Page 6: Intro to Raspberry Pi - by Sivakumar V

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

Architecture

Page 7: Intro to Raspberry Pi - by Sivakumar V

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

Tools

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

Page 8: Intro to Raspberry Pi - by Sivakumar V

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

Page 9: Intro to Raspberry Pi - by Sivakumar V

© 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

Page 10: Intro to Raspberry Pi - by Sivakumar V

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

Questions?

Thank you