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

NCTU PPT 2023-2024 - WEEK3-Raspberry Pi

Uploaded by

Ibrahim Wael
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)
176 views25 pages

NCTU PPT 2023-2024 - WEEK3-Raspberry Pi

Uploaded by

Ibrahim Wael
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

‫كلية تكنولوجيا الصناعة والطاقة‬

PEARSON BTEC International Standards Verifier


ICT Program
q
Dr. Amany AbdElSamea Saeed

2/27/2024 6:19 AM
Lec. 3 Raspberry Pi February 2024
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/27/2024 6:19 AM 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 .
• It 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)

2/27/2024 6:19 AM 3
Raspberry Pi ‫كلية تكنولوجيا الصناعة والطاقة‬

• The Raspberry Pi has a small footprint (about 9x6cm) and it is cheap.


Their models are priced between US$5–35.
• 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

2/27/2024 6:19 AM 4
‫‪Raspberry pi History‬‬ ‫كلية تكنولوجيا الصناعة والطاقة‬

‫‪2/27/2024 6:19 AM‬‬ ‫‪5‬‬


‫‪Raspberry pi Models‬‬ ‫كلية تكنولوجيا الصناعة والطاقة‬

‫‪2/27/2024 6:19 AM‬‬ ‫‪6‬‬


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.
2/27/2024 6:19 AM 7
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.

2/27/2024 6:19 AM 8
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

2/27/2024 6:19 AM 9
‫‪Raspberry Pi Hardware‬‬ ‫كلية تكنولوجيا الصناعة والطاقة‬

‫‪2/27/2024 6:19 AM‬‬ ‫‪10‬‬


‫‪Raspberry Pi vs. Arduino‬‬ ‫كلية تكنولوجيا الصناعة والطاقة‬

‫‪2/27/2024 6:19 AM‬‬ ‫‪11‬‬


‫‪Arduino Strength‬‬ ‫كلية تكنولوجيا الصناعة والطاقة‬

‫‪2/27/2024 6:19 AM‬‬ ‫‪12‬‬


‫‪Raspberry Pi Strength‬‬ ‫كلية تكنولوجيا الصناعة والطاقة‬

‫‪2/27/2024 6:19 AM‬‬ ‫‪13‬‬


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) .
2/27/2024 6:19 AM 14
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
2/27/2024 6:19 AM 15
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".

2/27/2024 6:19 AM 16
‫‪Raspberry Pi Imager‬‬ ‫كلية تكنولوجيا الصناعة والطاقة‬

‫‪2/27/2024 6:19 AM‬‬ ‫‪17‬‬


‫‪Connect to Wi-Fi Network‬‬ ‫كلية تكنولوجيا الصناعة والطاقة‬

‫‪2/27/2024 6:19 AM‬‬ ‫‪18‬‬


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

2/27/2024 6:19 AM 19
Update Raspberry Pi OS ‫كلية تكنولوجيا الصناعة والطاقة‬

Run the following commands in the Terminal window:

• First run the following:


sudo apt update

• Then:
sudo apt full-upgrade

2/27/2024 6:19 AM 20
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.
2/27/2024 6:19 AM 21
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
2/27/2024 6:19 AM 22
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).

• Today, Python has become one of the most popular


Programming Languages.

• The Raspberry Pi OS comes with a basic Python Editor called


“Thonny“
2/27/2024 6:19 AM 23
‫‪LED Example‬‬ ‫كلية تكنولوجيا الصناعة والطاقة‬

‫‪2/27/2024 6:19 AM‬‬ ‫‪24‬‬


‫كلية تكنولوجيا الصناعة والطاقة‬

‫‪Thank‬‬
‫‪q‬‬
‫‪you‬‬

‫‪2/27/2024 6:19 AM‬‬ ‫‪25‬‬

You might also like