21
HELLO I am Marco Casini I am here to present Raspberry Pi 2 You can find me at: https://it.linkedin.com/in/marcocasini2 1 !

Presentation raspberry pi

Embed Size (px)

Citation preview

Page 1: Presentation   raspberry pi

HELLOI am Marco Casini

I am here to present Raspberry Pi 2

You can find me at:https://it.linkedin.com/in/marcocasini2

1

!

Page 2: Presentation   raspberry pi

OVERVIEWLet’s start with the first set of slides on the first credit card that goes over the wallet!

Page 3: Presentation   raspberry pi

WHAT IS RAPSBERRY PI?

•A credit card sized PC•Plugs into a Tv or Monitor•Very Cheap ~ 30£ each•Over 5 milion units sold•Uses Broadcom BCM2836 4core

CPU•Designed for education

Page 4: Presentation   raspberry pi

A little bit deeper..

- 1 GB RAM- 4 USB

- Ethernet - SD ROM

- HDMI- GPIO

- CAMERA- 3.3v VOLTAGE

Page 5: Presentation   raspberry pi

I’m not like you!

Page 6: Presentation   raspberry pi

Arduino Raspberry Pi

Microcontroller Just a tiny Pc

FLASH ROM Operating system

Special Purpose General Purpose

One job at a time Multitasking

Hardware minimal Normal Hardware

Page 7: Presentation   raspberry pi

Distros and Operating Systems

Ubuntu Mate

Osmc

Page 8: Presentation   raspberry pi

Coding(Education)

Web MultimediaWeb

ServerCloud Server

Real Worlds Project (GPIO)

Game Boy(RetroPi)

FTP Server

Page 9: Presentation   raspberry pi

GPIO - general purpose

input/outputA more accurate vision on this

powerfull port

Page 10: Presentation   raspberry pi

GPIO – Pins

Physical interface between the Pi and the outside world.

40 pins, 26 are GPIO pins 14 are for power or ground

Page 11: Presentation   raspberry pi

InputSignals incoming from sensorsGPIO –

Input /Output

OutputSending signals to ouput, led or whatever.

Page 12: Presentation   raspberry pi

GPIO - OUTPUT

GPIO as an output, use HIGH or LOW in computing terms to send values.

HIGH 3.3VLOW 0V

LED -GND,+3.3V

Page 13: Presentation   raspberry pi

GPIO – INPUT

INPUT, listening values

OUTPUT, no standardized, it depends on the nature of the connected device

Page 14: Presentation   raspberry pi

GPIO & PYTHON

1)For using python we must install it using pip, the package manager :2) We need to install python now

3)For control GPIO we need 2 librariesdistribute e RPi.GPIO:

Page 15: Presentation   raspberry pi

GPIO – SHELL SCRIPTING

Shell Script – Native on Linux !

Supported languages: C, C++, JavaScript, HTML,Python

Page 16: Presentation   raspberry pi

PRACTICALEXAMPLE:MOTION DETECTION ALARM

Page 17: Presentation   raspberry pi

MOTIONDETECTIONALARM

IN to VCC OUT to GPIO4GND to GND.

MOTION DETECTION HIGH GPIO4

Page 18: Presentation   raspberry pi

MOTIONDETECTIONALARM

Page 19: Presentation   raspberry pi

19

Page 20: Presentation   raspberry pi

LET’S SEE HOW IT WORKS!

IF YOU LOOK AT YOUR SMARTPHONE YOU SHOULD HAVE A

NOTIFICATION ABOUT NEW POST ON DIAG SLACK’S CHANNEL

Page 21: Presentation   raspberry pi

THANKS!Any questions?