+ All Categories
Home > Technology > Introduction to Raspberrypi

Introduction to Raspberrypi

Date post: 06-Jan-2017
Category:
Upload: iheb-ben-salem
View: 155 times
Download: 2 times
Share this document with a friend
24
Introduction to RPI 1 ElGhazala HackerSpace 10/16/2016 Iheb Ben Salem RPI workshop
Transcript

Introduction to RPI

1

ElGhazala HackerSpace

10/16/2016Iheb Ben Salem RPI workshop

““When we get the final hardware, the performance is

just going to skyrocket. J Allard

2

1. What is Raspberry PI ?Let’s start with the basic questions

3

RPI

The Pi is a tiny computer about the size of a credit-card, the board features a processor, RAM and typical hardware ports you find with most computers.

4

2. Arduino Vs Raspberry PI ?What is the main difference between the two ?

5

Arduino Vs RPI

Arduino is a micro-controller.Micro-controller is a simple computer that can run one program at a time, over and over again. It is very easy to use.

Raspberry Pi is a general-purpose computer(Mini PC), usually with a Linux operating system, and the ability to run multiple programs. It is more complicated to use than an Arduino.

6

What would I use each for?

Arduino is best used for simple repetitive tasks: opening and closing a garage door, reading the outside temperature and reporting it to Twitter, driving a simple robot.

Raspberry Pi is best used when you need a full-fledged computer: driving a more complicated robot, performing multiple tasks, doing intense calculations (as for Bitcoin or encryption)

7

How to decide between the 2 when am working on project?

If you can describe it with less than two ‘and’s, get an Arduino. If you need more than two ‘and’s, get a Raspberry Pi.

8

3. RPI Models ?!!..

9

RPI A RPI B+ (B) RPI PI 2 RPI 3

PI ZERO

10

Raspberry PI 3 Features

● The 1.2GHz 64-bit quad-core ARM

Cortex-A53 CPU

● Integrated 802.11n wireless LAN and

Bluetooth 4.1

● Broadcom BCM2387 chipset

● 1G RAM

11

4. OS for PI ?!There is many types of OS for RPI ,which one is the best ?!

12

Operating system

13

5. How to setup my PI card ?

14

The full guide to bootstrap with PI

15

16

SD card Minimum size 4Gb (class 4)

HDMI to HDMI /DVI● HDMI to HDMI lead (for HD TVs and monitors with HDMI input).

OR● HDMI to DVI lead (for monitors with DVI input). Leads and adapters are available for few

pounds -- there is no need to buy expensive ones

Power adapter ● A good quality, micro USB power supply that can provide at least 700mA at 5V is essential.

● Many mobile phone chargers are suitable—check the label on the plug.● If your supply provides less than 5V then your Raspberry Pi may not work at all,

Ethernet RJ45

17

Preparing the SD card

1. Download RPI OS (Raspbian recommended )2. Unzip the file that you just downloaded3. Download the Win32DiskImager software4. Writing Raspbian to the SD card5. 5. Booting your Raspberry Pi for the first time

On first boot you will come to the Raspi-config window->Default username :pi->Default password : raspberry

6. Static IP@ and ssh config

18

Static IP address

19

The following is done over SSH, but you could just as well plug your Pi into a monitor, hook up a keyboard and mouse, and use the Terminal instead.Start by editing the dhcpcd.conf file

sudo nano /etc/dhcpcd.conf

You’ll need to edit the

numbers in the snippet so

they match your network

configuration.

20

Enable ssh

Enter sudo raspi-config in the terminal, first select Interfacing options, then navigate to ssh, press Enter and select Enable or disable ssh server

7. LAMP install

21

22

About LAMP

LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Ubuntu, the linux part is taken care of.

Install LAMP

We recommend this script to easily install the full LAMP without extra-command lines

23

https://github.com/ihebBenSalem/LampRapberryPI2-3

Thank you ..

24


Recommended