0% found this document useful (0 votes)
30 views25 pages

Lect3 InternetofThings

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views25 pages

Lect3 InternetofThings

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

Raspberry Pi

Presented by
Dr. Amany AbdElSamea

1
Outline
• What is Raspberry pi?
• Raspberry pi history
• Raspberry pi models
• Raspberry pi hardware
• Raspberry pi vs. Arduino
• Raspberry pi OS
• Python with Raspberry pi
• LED example
2
What is Raspberry Pi?
• Raspberry pi is a credit- card sized computer that
plugs into the TV and a keyboard .It functions almost
as a computer .
• Its is a fully featured micro-computer squashed onto
a circuit board.
• It was developed in United Kingdom (UK) by the
Raspberry Pi foundation with the intension of
promoting the teaching of basic computer science in
schools.
• The recommended Operating System is called
Raspberry Pi OS (Linux based)
Raspberry Pi
• The Raspberry Pi has a small footprint (about 9x6cm) and
it is cheap. Their models are priced between US$15–100.
• You plug it into a monitor and attach a keyboard and
mouse.
• Raspberry Pi also allows interfacing sensors and actuators
through the general purpose I/O pins. It has so-called
GPIO pins (General Purpose Input/Output) for connection
sensors and other electronic components like LEDs, etc.
• It can be used to learn programming, IT and other
technical skills, etc.
• The “Hardrive” is a Micro SD card
Raspberry pi History
Raspberry pi Models
Raspberry Pi Features
• All models feature a Broadcom System on a Chip (SoC), which includes an ARM
compatible central processing unit (CPU) and an on-chip graphics processing unit (GPU,
a VideoCore IV).

• CPU speed ranges from 700 MHz to 1.2 GHz for the Pi 3 and on board memory range
from 256 MB to 1 GB RAM.

• Secure Digital (SD) cards are used to store the operating system and program memory
in either the SDHC or MicroSDHC sizes.

• Most boards have between one and four USB slots, HDMI and composite video output,
and a 3.5 mm phonon jack for audio.

• Lower level output is provided by a number of GPIO pins

• The B-models have an 8P8C Ethernet port and the Pi 3 and Pi Zero have on board Wi-Fi
802.11n and Bluetooth.
Raspberry Pi 3
• Raspberry Pi 3 is the third generation of Raspberry Pi and it packs quite a
formidable punch in its credit card-sized package. Most notably, in addition to
the standard features of the Raspberry Pi (such as four USB 2.0 ports and built-
in Ethernet), it has:

• A 1.2GHz 64-bit quad-core ARMv8 CPU


• 802.11n Wireless LAN
• Bluetooth 4.1 Low Energy (BLE)
• The powerful CPU coupled with Wireless LAN and Bluetooth 4.1 radio makes it
an ideal candidate for IoT projects, because multiple sensors can be connected
to it simultaneously.
• In addition, the Raspberry Pi has a 40-pin GPIO (General Purpose I/O)
connector for interfacing with external sensors.
Raspberry Pi Zero
• The Raspberry Pi Zero is the smallest Raspberry Pi ever made.

• Although it doesn't have a processor that's as powerful as the Pi 3, its small


size is especially suited for embedded projects (such as wearables, etc.), where
space is a premium
Raspberry Pi Hardware
Raspberry Pi vs. Arduino
Arduino Strength
Raspberry Pi Strength
Raspberry Pi or Arduino

Essentially the Raspberry Pi is the thinker while the Arduino is the worker. This is perhaps a
broad generalization, but it does hold true in most cases.
• If your application requires precision software timing then choose an
Arduino. Microcomputers are just too busy doing other things to worry about precise
software timing.
• If you need Internet connectivity then a Raspberry Pi makes sense. You can add this
capability to the Arduino using shields, but it’s built-in on most Raspberry Pi models.
• If you need a video display then choose a Raspberry Pi.
• If you want a camera then you’ll want a Raspberry Pi
And remember – in an advanced design you may well choose to use BOTH boards, as they can
be interfaced using Inter-Integrated Circuit (I2C) or Serial Peripheral Interface (SPI) .
Getting Started with Raspberry Pi
Hardware Requirements
• Essential:

 Raspberry Pi board
 Micro SD Card (+ Adapter)
 USB keyboard
 Display (with HDMI, DVI, or
Composite input)
 Power Supply

• Highly suggested extras include:

 USB mouse
 Internet connectivity - LAN cable
 Heat sink for Processor
 Case
Raspberry Pi OS
• In order make your Raspberry Pi up and running you need to install an
Operating System (OS)
• The OS for Raspberry Pi is called Raspberry Pi OS (previously known as
Raspbian)
• The Raspberry Pi Foundation recommends the use of Raspbian, a Debian-
based Linux operating system.
• Other third party operating systems available via the official website
include Ubuntu MATE, Snappy Ubuntu Core, Windows 10 IoT Core, RISC
OS.
• To install the necessary OS, you need a microSD card
• Then you use the Raspberry Pi Imager in order to download the OS to the
microSD card
• Since Raspberry Pi runs Linux operating system, it supports Python "out
of the box".
Raspberry Pi Imager
Connect to Wi-Fi Network
The Linux Terminal

• The Raspberry Pi OS is a Linux


based OS and comes with a GUI
with limited features, so very
often you need to type “low-
level” commands using the
Terminal
• The Linux terminal is a powerful
tool for “low-level” operations
on the OS
Update Raspberry Pi OS

Run the following commands in the Terminal


window:
• First run the following:
sudo apt update

• Then:
sudo apt full-upgrade
How to Power off your Raspberry Pi?
Unlike your other electronic devices, Raspberry Pi
doesn’t come with an “off” switch.
• You should not just “pull out the plug“

• Enter the following in the Terminal:


sudo poweroff

• This will give you a clean shutdown. After that, you can
unplug the computer.
• How to turn on Raspberry Pi after shutdown? It’s
simple. Just plug it in.
Remote Access
Typically, you want to have
Remote Access to
you Raspberry Pi from your
ordinary Desktop
Computer. Different options:
• SSH – Command Line Access
Or use some kind of Remote
Desktop software:
• XRDP/RDC (not root user)
• TeamViewer
• VNC
Python with Raspberry Pi

• Python is a fairly old Programming Language


(1991) compared to many other Programming
Languages like C# (2000), Swift (2014), Java
(1995), PHP (1995).7
• Today, Python has become one of the most
popular Programming Languages.
• The Raspberry Pi OS comes with a basic Python
Editor called “Thonny“
LED Example
Questions

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy