• No results found

Lab 1 Warm-up with Raspberry Pi. ECE 1175 Embedded System Design

N/A
N/A
Protected

Academic year: 2021

Share "Lab 1 Warm-up with Raspberry Pi. ECE 1175 Embedded System Design"

Copied!
41
0
0

Loading.... (view fulltext now)

Full text

(1)

Lab 1 – Warm-up with Raspberry Pi

ECE 1175 Embedded System Design

(2)

ECE 1175 – Lab 1

Raspberry Pi Basics

Hardware & software

How to start

Lab 1 Task – warm-up with Pi

A brief introduction

If you cannot pick-up the Pi on Friday (9/17), please contact TA (Xiangyu (Eric) Yin: [email protected]) to schedule another time slot for pick-up.

(3)

ECE 1175 – Lab 1

Take care of your boards

Avoid touching the circuits on the boards

Keep boards dry and clean

Make good use of the protective case

(4)

Raspberry Pi

Classic “embedded” computer

Single board computer

Size of a credit card

Raspberry Pi

(5)

Raspberry Pi

Microprocessor (Raspberry Pi 4B)

Broadcom BCM2711 (ARM v8) 64-bit SoC @ 1.5GHz

64-bit quad-core ARM Cortex-A53

Same as …

Hardware video codec

H.265 H.264

4 GB DDR4 Memory

Connectivity

2.4G & 5GHz WiFi + Bluetooth 5.0

5

LG V10 Sony Xperia X

(6)

Raspberry Pi

Input/Output

OS: Raspbian

(7)

Raspberry Pi

Power Supply

Use either power adapter or USB charger

Provided power adapter is recommended

If want to use your own USB charger

USB-Type C

Make sure 5V@3A(or > 3A)

Be aware of undervoltage issues!

7

(8)

Raspberry Pi

HDMI Port

Micro-HDMI ports *2 (HDMI0 & HDMI1)

Make sure you connect your main monitor to HDMI0

HDMI port enables you to send audio/video data from Raspberry Pi to your monitor so that you can see what is happening inside your little computer.

(9)

USB 2.0 Port *2 + USE 3.0 Port *2

4 USB ports could be used as connectors for your keyboard and mouse when you are operating in Raspberry Pi.

Raspberry Pi

9

USB 3.0 USB 2.0

(10)

Ethernet Cable Port

Use Ethernet cable to connect Raspberry Pi to the Internet. Or you can use the built-in WiFi for connection.

Raspberry Pi

(11)

Raspberry Pi

General Purpose Input/Output (GPIO):

It is a generic pin on Raspberry Pi board and controlled by user at run time for input or output purpose. Raspberry Pi has 40 pins on board.

11

(12)

Operating System

Operating system (OS)

It is a program

Manage computer software and hardware resources

Provide service to users

(13)

Operating System – Linux

Linux

One type of Operating system

(Traditionally) using command line to provide service to users

13

Linux Kernel

Terminal Shell

(14)

Operating System – Linux

Terminal

Text/command line input/output environment

Shell

A software interpreting command line

Linux Kernel

Access to hardware resource

Hardware

Process data and managed by Linux kernel

Terminal Shell Kernel

User

Hardware

(15)

Operating System – Linux

ECE 1160/2160 Embedded Systems Design 15

Compile Instruction:

1. gcc world.c -o world 2. ./world

(16)

Operating System – Raspbian

Raspbian

A free operating system based on Linux kernel

Optimized for the Raspberry Pi hardware

35,000+ packages

communication package

sound package

graphics package

Complete list: http://www.raspberryconnect.com/raspbian-packages-list

*install package by command: apt/apt-get install <package name>

Pre-installed software

Python, GCC, …

Mathematica, Scratch

other programming software.

Debian

(17)

Operating System – Raspbian

Scratch

Scratch is a programming language with blocks, not code, for interactive stories, games and animations

17

(18)

Operating System – Raspbian

Mathematica

mathematical symbolic computation program or computer algebra program

Expand mathematical expression

Output 200 digits of Pi

(19)

Operating System – Raspbian

Programming software

Python 2 -> Python 3

19

(20)

Operating System – Raspbian

Programming software

BlueJ: Java

(21)

Operating System – Other choices

Risc OS

Unix-like OS

Incompatible with Linux software

OpenELEC/RaspBMC

Entertainment system

Design for media play center

Arch Linux/Ubuntu Mate

Linux experience required

Not for beginner

Window 10 IoT

Desktop and desktop is not included

21

(22)

Raspberry Pi for Labs

1. Protective case

2. Power adapter

3. Sense HAT

4. Micro-SD card and its adapter

5. Raspberry Pi board

6. Micro-HDMI/VGA adapter

7. Micro-HDMI/HDMI cable

8. Cooling fan

9. Heat sinks

10. Quick-start Manual

All devices need to be returned at the end of this course

Please take care of your Pi kit

(23)

Get Started

Assemble the Pi (refer to the manual)

1. Take out the case and Pi board

(24)

Get Started

Assemble the Pi (refer to the manual)

2. Put Raspberry Pi into the case

(25)

Get Started

Assemble the Pi (refer to the manual)

3. (Optional) Put on the heat sinks and cooling fan Red wire on right 2nd pin Black wire on right 3rd pin

(26)

Get Started

Assemble the Pi (refer to the manual)

4. Insert the SD card

Micro SD Card

Store your OS and data

32GB is enough for lab tasks

Pre-installed with NOOBS

NOOBS is an easy operating system installer which includes Raspbian.

It also provides a selection of alternative operating systems.

(27)

Get Started

Assemble the Pi (refer to the manual)

5. Wire the cables

Power adapter

Micro-HDMI/VGA adapter

Mouse and keyboard

VGA cable To monitor ->

Unplug the mouse and keyboard from the lab PC.

Remember to return it to original place after lab session.

(28)

Raspberry Pi Board

Attention

Please always insert SD card first.

Raspberry Pi will start to boot up once the power supply is on.

When you shut down the system, do not remove the power supply until the green status LED on the board stops blinking.

Status LED

(29)

Raspbian

Switch your monitor’s input source to VGA

(30)

Raspbian

(31)

Raspbian

Installation and boot-up runtime screenshot and keep waiting

(32)

Raspbian

(33)

Raspbian

Installation and boot-up runtime screenshot and keep waiting

(34)

Raspbian

(35)

Raspbian

Raspbian Desktop

(36)

Raspbian

WiFi Connection

The lab (1223 Benedum) WiFi (802.11g)

Name: Embedded System Class

Password: embedded1234

WiFi standard supported by Raspberry Pi 4

802.11b/g/n (2.4 GHz) supported

802.11ac (5 GHz) supported

(37)

Terminal

(38)

Terminal

(39)

Lab 1 Task

Warm-up with Raspberry Pi

Get familiar with some basic commands of Linux.

Use pre-installed packages to modify the configurations and behaviors of the system.

Please refer to lab1.htm posted on the course website for details.

If your equipment is malfunctioning or you have any confusion about the lab assignments, please contact TA (Xiangyu (Eric) Yin: [email protected]) for help.

(40)

Attention

Take turns to use the monitor, mouse and keyboard.

Remember to restore the mouse and keyboard connection with the lab PC before you leave.

Make sure the lab PC is showing the Windows lock screen as usual after you finish.

(41)

References

Related documents

Physical map generated using polymorphic (2,455) SNP marker calls from Illumina Infinium BARCSoySNP6K BeadChip (Song et al., 2014).. Physical map generated using polymorphic

A pilot will be a success if executed correctly and providing results that are reliable (whether ‘positive’ or ‘negative’). Positive results prove a theory is

The Lecithin-Sphingomyelin Ratio of Amniotic Fluid: An Index of Fetal

Int J Dn lliol ~2 117 125 (1998) 117 The generation of fiber diversity during myogenesis PETER M WIGMORE' and GRETA F, DUNGLISON School of Biomedical Sciences University of Nottingham,

The present study confirms prior randomized, controlled trial data that 5,000 IU aXa/d certoparin are no more ef- fective than 3,000 IU aXa/d in preventing thrombo- embolic events

The PKU-QOL is a questionnaire designed to specific- ally assess the impact of PKU on all aspects of PKU pa- tients ’ life, including: PKU symptoms; the practical, social and

The aim of this study is to present the results of a comprehensive, Moodle compatible system designed for the development and evaluation of inter-personal competencies – teamwork

Afterward, the positive selection process was performed by recovering the phage clones from the previous step, and those that were recognized by antibodies present in the serum