1. What is Raspberry Pi?
The Raspberry Pi is a small computer the size of a credit card that you can connect to a TV, monitor, keyboard, mouse, and other devices.
Currently, the Raspberry Pi can replace a desktop computer for various uses, including word processing, spreadsheets, media center, gaming, etc., or it can be used to build an ultra-low-power small server for 24/7 service, or to create a smart home system with smart devices.
Before learning about Raspberry Pi, you need to have a basic understanding of Linux. If you plan to develop with the Raspberry Pi, C language or Python is a good choice.
The Raspberry Pi is a microcomputer suitable for programming education, and since it is a computer, it definitely needs an operating system. Now, let me teach you how to install the operating system!

2. Introduction to Raspberry Pi 3B, 3B+, 4B
(The Raspberry Pi 4B 8G has been released as of July 2020)
Raspberry Pi 3B, 3B+, 4B. Currently, I only have the 3B, so I will use the 3B to install the operating system; the installation method is basically the same for the others. The Raspberry Pi 3B is built on the Broadcom 2837 ARMv8 64-bit processor, which is faster and more powerful compared to its predecessors. With its built-in wireless and Bluetooth connectivity, it is also an ideal IoT solution.

The Raspberry Pi development board does not have onboard Flash, so the Raspberry Pi’s operating system needs to be installed on a TF card.
This way, by using removable TF cards, we can switch between multiple operating systems quickly and conveniently without having to re-flash the system each time.
Many Linux distributions support the Raspberry Pi, including the officially recommended Raspbian system, which is based on Debian, as well as Ubuntu, CentOS, Kali, Lakka, OSMC, and others.
Additionally, Google has released Android Things, and Microsoft has launched Windows 10 IoT, both of which also support the Raspberry Pi development board, making the Raspberry Pi ecosystem exciting.
The vast majority of Linux systems supporting Raspberry Pi, as well as Android Things, can be flashed using Win32 Disk Imager software or the official Raspberry Pi installation tool NOOBS.
The Windows 10 IoT Core system can be flashed using Noobs or Microsoft’s IoT Dashboard tool.
When installing the operating system, we need a TF card, a card reader, and a computer running Windows. We will use two methods to install the system: installing on the Windows platform and using the NOOBS tool.

Once you have the new Raspberry Pi in hand, you can’t wait to play with it. However, this is not like your Macbook that can be used right away. To successfully boot the Raspberry Pi, you need to go through five steps.
-
Prepare a micro SD card
-
Write the operating system to the SD card
-
Connect the display and other peripherals
-
Power on
-
Install/boot the operating system
Tools required:
-
win32diskimager (image writing tool)
-
SDFormatter (formatting tool)
-
Putty (remote connection tool)
-
Advanced_IP_Scanner (IP search tool)
3. Installing the Raspberry Pi Operating System
3.1 Prepare a micro SD card
If you have carefully observed the appearance of the Raspberry Pi, you will find that it does not have a hard disk structure, and there is only a micro SD card slot on the back of the motherboard. Yes, this is the storage for the Raspberry Pi, so you need to install the operating system on a micro SD card.
Before installing the operating system, you need to prepare a micro SD card of at least 8G, but it doesn’t need to be too large; if it exceeds 64G, you may encounter some strange issues (4B can use 128G).
The Raspberry Pi official recommends that the SD card’s write speed be class 4, and it’s not necessarily better if the write speed is faster. Using a class 10 card does not mean that the Raspberry Pi will run faster, as increasing the write speed often sacrifices read speed and increases addressing time.
However, it seems that it is not easy to buy a class 4 card nowadays; almost all cards on the market are class 10, which can also be used perfectly.
It is recommended to purchase SD cards from reputable brands, as some cards may not be of good quality and can lead to installation failures or inexplicable runtime errors.
I bought a 16G class 10 micro SD card for less than 30 yuan on a certain platform, and it works great.
Of course, to read and write this micro SD card, you also need to buy a card reader, which is not needed for the Raspberry Pi but will be used in the following steps to write the operating system to the SD card.

Format the mini SD card to FAT format
Some newly bought mini SD cards are already formatted and can be skipped to the next step, such as the SanDisk 32GB card I bought on a certain platform.
If it is an already used or occupied memory card, it needs to be formatted. You can format it normally through a computer; if you have installed a system, you need to use software to format the memory card;
Download here:
https://www.fixdown.com/ushendu.htm
Then install the software:

After installation, open the software

Then select your memory card drive:

Check if it is the drive where the memory card is located, then click:

Wait for the memory card to format…
3.2 Write the operating system to the SD card
Operating systems supported by the Raspberry Pi
The officially recommended one is Raspbian, which is a Raspberry Pi-specific system based on Debian Linux, suitable for all models of Raspberry Pi.
In addition, the Raspberry Pi supports many operating systems:
-
Ubuntu, which is a desktop operating system based on Debian Linux. The Raspberry Pi supports two versions of Ubuntu: Ubuntu META and Snappy Ubuntu Core; the former is the desktop version, while the latter is aimed at developers.
-
OSMC, which stands for Open Source Media Center, is an open-source media player operating system based on the Linux kernel designed for single-board computers.
-
Windows 10 IoT Core, a system developed by Microsoft specifically for IoT, is a boon for Windows users wanting to use Raspberry Pi.
-
LibreELEC, a lightweight Linux distribution designed to build a multimedia service platform for embedded devices.
Alright, let’s get started!
Step 1: Go to the official website to download the system image–>
Find the system files on the data disk:

The version I used is: version 2020-02-13

Download it yourself from the official website:
https://www.raspberrypi.org/downloads/

There are two systems here; let me explain. If you are a beginner, it is recommended to install NOOBS. If you have some experience with Linux systems, it is recommended to install Raspbian. Don’t ask why; just take this advice. Note: Be sure to download the .img file

There are two installation methods for the Raspberry Pi operating system:
-
One is to first write the Raspberry Pi installation bootloader NOOBS to the SD card, and then start the Raspberry Pi to enter NOOBS to install the operating system.
-
The other is to write the operating system image directly to the SD card, allowing the Raspberry Pi to boot directly into the operating system.
Next, we will use Win32 Disk Imager software
Open the data disk:


Download it yourself from:
https://win32diskimager.download/

First, click the folder icon in position 1, then select the img image file, and then select the TF card to be used for flashing at position 2 Device.

After selection, click the Write (write) function in position 3.

After the flashing is completed, the software will prompt that the writing was successful.

After installing the system, there will be two partitions, one system disk and one memory disk; you do not need to worry about them or format them.

After writing is complete using the above method, if connected to Wi-Fi, do not remove the SD card, continue with the operation. Please refer to the second part:
https://blog.csdn.net/weixin_44908159/article/details/107402547
If you connect via Ethernet, you can refer to the third part:
https://blog.csdn.net/weixin_44908159/article/details/107402938
Raspberry Pi resource downloads:
https://download.csdn.net/download/weixin_44908159/12628244
“Mobile Robot Target Detection YOLOv5”
This course aims to guide everyone through the deployment and application of YOLOv5, building a recognition environment, training your own model, and applying and extracting recognition information.

(Scan the QR code to view course details)
