NCTU PPT 2023-2024 - WEEK3-Raspberry Pi
NCTU PPT 2023-2024 - WEEK3-Raspberry Pi
NCTU PPT 2023-2024 - WEEK3-Raspberry Pi
2/27/2024 6:19 AM
Lec. 3 Raspberry Pi February 2024
1
Outline
كلية تكنولوجيا الصناعة والطاقة
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 كلية تكنولوجيا الصناعة والطاقة
2/27/2024 6:19 AM 4
Raspberry pi History كلية تكنولوجيا الصناعة والطاقة
• 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 كلية تكنولوجيا الصناعة والطاقة
2/27/2024 6:19 AM 8
Raspberry Pi Zero كلية تكنولوجيا الصناعة والطاقة
• 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 كلية تكنولوجيا الصناعة والطاقة
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
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 19
Update Raspberry Pi OS كلية تكنولوجيا الصناعة والطاقة
• 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“
• 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 كلية تكنولوجيا الصناعة والطاقة
Thank
q
you