We will learn about the Raspberry Pi 4.
Tag: Project 130 Overview of Raspberry Pi 4 model B. Acoptex.lt
- Sketch: None;
- Libraries: None;
- Other attachments: None.
In this project, you needed these parts (Dear visitors. You can support our project buy clicking on the links of parts and buying them or donate us to keep this website alive. Thank you):
- Raspberry Pi 4 model B 1 pc
2. Raspberry Pi 15.3W USB-C Power Supply 5.1V 3A – 1 pc
3. A microSD card with NOOBS or Raspberry Pi OS- 1 pc
4.USB Keyboard and USB Mouse
5. Computer display or screen 1 or 2 pcs
6. Micro HDMI to HDMI cable, or a standard HDMI to HDMI cable plus a micro HDMI to HDMI adapter 2 pcs (for 2 screens)
7. Ethernet cable 1pc (optional)
Understanding the Raspberry Pi 4
Raspberry Pi 4 is your tiny, dual-display, desktop computer …and robot brains, smart home hub, media centre, networked AI core, factory controller, and much more.
Raspberry Pi 4 Model B is the latest product in the popular Raspberry Pi range of computers. It offers ground-breaking increases in processor speed, multimedia performance, memory, and connectivity compared to the prior-generation Raspberry Pi 3 Model B+, while retaining backwards compatibility and similar power consumption. For the end user, Raspberry Pi 4 Model B provides desktop performance comparable to entry-level x86 PC systems. This product’s key features include a high-performance 64-bit quad-core processor, dual-display support at resolutions up to 4K via a pair of micro-HDMI ports, hardware video decode at up to 4Kp60, up to 8GB of RAM, dual-band 2.4/5.0 GHz wireless LAN, Bluetooth 5.0, Gigabit Ethernet, USB 3.0, and PoE capability (via a separate PoE HAT add-on).
The dual-band wireless LAN and Bluetooth have modular compliance certification, allowing the board to be designed into end products with significantly reduced compliance testing, improving both cost and time to market.
The speed and performance of the new Raspberry Pi 4 is a step up from earlier models. For the first time, we’ve built a complete desktop experience. Whether you’re editing documents, browsing the web with a bunch of tabs open, juggling spreadsheets or drafting a presentation, you’ll find the experience smooth and very recognizable – but on a smaller, more energy-efficient and much more cost-effective machine.
- Dual displays, 4K output. With Raspberry Pi 4, you can run two monitors at once — and in 4K, too!
- Silent, energy-efficient. The fanless, energy-efficient Raspberry Pi runs silently and uses far less power than other computers.
- USB 3. Your new Raspberry Pi 4 has upgraded USB capacity: along with two USB 2 ports you’ll find two USB 3 ports, which can transfer data up to ten times faster.
- Fast networking. Raspberry Pi 4 comes with Gigabit Ethernet, along with onboard wireless networking and Bluetooth.
- Your choice of RAM. We’re making different variants of the Raspberry Pi 4 available, depending on how much RAM you need — 2GB, 4GB, or 8GB.
- Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
- 2GB, 4GB or 8GB LPDDR4-3200 SDRAM (depending on model)
- 2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE
- Gigabit Ethernet
- 2 USB 3.0 ports; 2 USB 2.0 ports.
- Raspberry Pi standard 40 pin GPIO header (fully backwards compatible with previous boards)
- 2 × micro-HDMI ports (up to 4kp60 supported)
- 2-lane MIPI DSI display port
- 2-lane MIPI CSI camera port
- 4-pole stereo audio and composite video port
- H.265 (4kp60 decode), H264 (1080p60 decode, 1080p30 encode)
- OpenGL ES 3.0 graphics
- Micro-SD card slot for loading operating system and data storage
- 5V DC via USB-C connector (minimum 3A*)
- 5V DC via GPIO header (minimum 3A*)
- Power over Ethernet (PoE) enabled (requires separate PoE HAT)
- Operating temperature: 0 – 50 degrees C ambient
* A good quality 2.5A power supply can be used if downstream USB peripherals consume less than 500mA in total.
Signals and connections of the Raspberry Pi 4 Model B
Step by Step instruction
You can skip this section if you have micro SD card with NOOBS or Raspberry Pi OS preinstalled.
1.If you have an SD card that doesn’t have the Raspberry Pi OS operating system on it yet, or if you want to reset your Raspberry Pi, you can easily install Raspberry Pi OS yourself. To do so, you need a computer that has an SD card port — most laptop and desktop computers have one. Using the Raspberry Pi Imager is the easiest way to install Raspberry Pi OS on your SD card.
2.Go to the Raspberry Pi software page
3.Click on the link for the Raspberry Pi Imager that matches your operating system.
4.When the download finishes, click it to launch the installer.
5.Anything that’s stored on the SD card will be overwritten during formatting. If your SD card currently has any files on it, e.g. from an older version of Raspberry Pi OS, you may wish to back up these files first to prevent you from permanently losing them. When you launch the installer, your operating system may try to block you from running it. For example, on Windows I receive the following message:
If this pops up, click on More info and then Run anyway. Follow the instructions to install and run the Raspberry Pi Imager.
6.Insert your SD card into the computer or laptop SD card slot.We recommend a minimum of 8GB class 4 or class 10 microSD card.
7.In the Raspberry Pi Imager, select the OS that you want to install and the SD card you would like to install it on. You will need to be connected to the internet the first time for the the Raspberry Pi Imager to download the OS that you choose. That OS will then be stored for future offline use. Being online for later uses means that the Raspberry Pi imager will always give you the latest version. Note: The Raspberry Pi Imager gives the option to install Raspberry Pi OS Full, which comes with all recommended software already loaded, including office applications and some games.
8.Then simply click the WRITE button.
9.Wait for the Raspberry Pi Imager to finish writing. Once you get the following message, you can eject your SD card.
10. You can also browse a range of operating systems provided by Raspberry Pi and by other organisations, and download them to install manually – check this link.
2.Connecting and setting up your Raspberry Pi 4 Model B
1.You may want to put your Raspberry Pi in a case. This is not essential, but it will provide protection for your Raspberry Pi.
2.Insert the SD card you’ve set up with Raspberry Pi OS into the microSD card slot on the underside of your Raspberry Pi. Many microSD cards come inside a larger SD Card adapter — you can slide the smaller card out using the lip at the bottom.
3. Find the USB connector end of your mouse’s cable, and connect the mouse to a USB port on Raspberry Pi (it doesn’t matter which port you use).
4.Connect the USB keyboard in the same way.
5.Make sure your screen is plugged into a wall socket and switched on.
6.Look at the HDMI port(s) on your Raspberry Pi — notice that they have a flat side on top. Use a micro HDMI to HDMI cable to connect the screen to Raspberry Pi’s HDMI port — use a standard HDMI to HDMI cable plus a micro HDMI to HDMI adapter or a HDMI to DVI cable or a HDMI to VGA adapter if necessary.Connect your screen to the first of Raspberry Pi 4’s HDMI ports, labelled HDMI0. Note: Make sure you have used HDMI0 (nearest the power in port) rather than HDMI1. You can connect an optional second screen in the same way. Nothing will display on the screen, because your Raspberry Pi is not running yet.
7.If you want to connect your Raspberry Pi to the internet via Ethernet, use an Ethernet cable to connect the Ethernet port on Raspberry Pi to an Ethernet socket on the wall or on your internet router. You don’t need to do this if you want to use wireless connectivity, or if you don’t want to connect to the internet.
8.If the screen you are using has speakers, sound will play through those. Alternatively, connect headphones or speakers to the audio port if you prefer.
9.Your Raspberry Pi doesn’t have a power switch. As soon as you connect it to a power outlet, it will turn on.Plug the power supply 5.1V 3A into a wall socket and connect it to your Raspberry Pi’s USB-C power port.
10.You should see a red LED light up on the Raspberry Pi, which indicates that Raspberry Pi is connected to power. As it starts up (this is also called booting), you will see raspberries appear in the top left-hand corner of your screen.
11.After a few seconds the Raspberry Pi OS desktop will appear. Your Raspberry Pi runs Raspberry Pi OS, a version of an operating system (OS) called Linux. (Windows and macOS are other common operating systems.)
12.When you start your Raspberry Pi for the first time, the Welcome to Raspberry Pi application will pop up and guide you through the initial setup.
13.Click on Next to start the setup.
14.Set your Country, Language, and Timezone, then click on Next again.
15.Enter a new password for your Raspberry Pi and click on Next. For the official Raspberry Pi OS, if you need to manually log in, the default user name is
pi, with password
raspberry. Remember the default keyboard layout is set to UK. You should change the default password straight away to ensure your Raspberry Pi is secure.
16.Connect to your wireless network by selecting its name, entering the password, and clicking on Next.
17.Wait until the wireless connection icon appears and the correct time is shown before trying to update the software. Click on Next, and let the wizard check for updates to Raspberry Pi OS and install them (this might take a little while).
18.Click on Restart to finish the setup.You will only need to reboot if that’s necessary to complete an update.
2.Using your Raspberry Pi
1.The Raspberry Pi icon in the top left-hand corner is where you access the menu.
- Click on it to find lots of applications, including Programming applications.
- To open a text editor, click on Accessories and choose Text Editor.
- Close the text editor by clicking the x in the top right-hand corner of the window.
- Explore what other applications are currently available in the menu.
2.To set up your mouse and keyboard, select Preferences and then Mouse and Keyboard Settings from the menu.
3.If you want to connect your Raspberry Pi to the internet, you can plug an Ethernet cable into it (if you have a Raspberry Pi Zero, you’ll need a USB-to-Ethernet adapter as well). You can also connect to a wireless network. Click on the wireless network icon in the top right-hand corner of the screen, and select your network from the drop-down menu.
Type in the password for your wireless network, then click on OK. Once your Raspberry Pi is connected to the internet, you will see a wireless LAN symbol instead of the red crosses.
4.Your Raspberry Pi can either send sound to the screen’s built-in speakers through the HDMI connection (if your screen has speakers), or to the analogue headphone jack. Right-click on the speaker icon in the top right-hand corner, and select Audio Outputs, to choose whether your Raspberry Pi should use the HDMI or the AV Jack connection for sound.
Click on the speaker icon to adjust the volume by moving the slider up or down.
5.There are many, many software programs and applications you can download and install on Raspberry Pi. Your Raspberry Pi has to be connected to the internet before you can install software. In the menu, click on Preferences and then on Recommended Software.
You can browse all the recommended software, or filter it by category. To install a piece of software, click to mark the checkbox to its right.
Then click on OK to install the selected software. In addition to the Raspberry Pi’s recommended software, there’s a huge library of other available programs and applications. Click on Preferences and then on Add / Remove Software in the menu.
You can search for software, or browse by selecting a category from the menu on the left.
Try installing a drawing application called Pinta.
- Type ‘pinta’ into the search box and press Enter.
- Select Simple drawing/painting program in the list that appears.
- Click on OK to start the installation process.
- When prompted, enter your password; if you haven’t changed the password, it will be ‘raspberry’.
- Pinta will now be downloaded and installed.
When the process is complete, open Pinta by selecting Graphics and then Pinta from the menu.
6.It’s a good idea to regularly update the software on your Raspberry Pi with the latest features and fixes.You can update your Raspberry Pi using the Add / Remove Software application: open it by selecting it from the Preferences section of the menu.
Before you check and install any updates, you should refresh the software package lists on your Raspberry Pi.Click on Options in the top left-hand corner, and select Refresh Package Lists.
Your Raspberry Pi will then update all lists of packages.When this is done, click on Options and select Check for Updates.
The Package Updater will open and automatically check whether updates are available. It will display anything it finds in a list.
- Click on Install Updates to install all the available updates.
- When prompted, enter your password; if you haven’t changed the password, it will be ‘raspberry’.
The updates will then be downloaded and installed. You can see the installation by checking the progress bar in the bottom left-hand corner.
7.All the files on your Raspberry Pi, including the ones you create yourself, are stored on the SD card. You can access your files using the File Manager application. Click on Accessories and then on File Manager in the menu, or select the File Manager icon on the menu bar.
When the File Manager opens, you will be shown the
pi directory — this is where you can store your files and create new subfolders.
Double-click on any icon to open the directory and view the files inside. To open a file, double-click on its name, or right-click on it to open the file menu for more options. You can use USB drives and sticks with your Raspberry Pi. This is a convenient way of backing up your files and copying them to other computers. When you insert a USB stick into your Raspberry Pi a window will pop up, asking what action you want to perform.Click on OK to Open in File Manager.The File Manager will open and show you the files on your USB stick.
8.The terminal is a really useful application: it allows you to navigate file directories and control your Raspberry Pi using typed commands instead of clicking on menu options. It’s often in many tutorials and project guides, including the ones on our website.To open a terminal window, click on the Terminal icon at the top of the screen, or select Accessories and then Terminal in the menu.
You can type commands into the terminal window and run them by pressing Enter on your keyboard.
- In the terminal window, type:
- Then press Enter on the keyboard.
ls lists all the files and subdirectories in the current file directory. By default, the file directory that the terminal accesses when you open it is the one called
- Now type in this command to change directory to the Desktop.
You have to press the Enter key after every command.
- Use the command
lsto list the files in the Desktop directory.
The terminal can do a lot more than list files — it’s a very powerful way of interacting with your Raspberry Pi!
- As just one small example, try the command
This will show you a labelled diagram of the GPIO pins, and some other information about your Raspberry Pi.
Close the terminal window by clicking on the x in the top right-hand corner, or using the command
9.You can control most of your Raspberry Pi’s settings, such as the password, through the Raspberry Pi Configuration application found in Preferences on the menu.
In System tab you can change basic system settings of your Raspberry Pi.
- Password — set the password of the
piuser (it is a good idea to change the password from the factory default ‘raspberry’)
- Boot — select to show the Desktop or CLI (command line interface) when your Raspberry Pi starts
- Auto Login — enabling this option will make the Raspberry Pi automatically log in whenever it starts
- Network at Boot — selecting this option will cause your Raspberry Pi to wait until a network connection is available before starting
- Splash Screen — choose whether or not to show the splash (startup) screen when your Raspberry Pi boots
You can link devices and components to your Raspberry Pi using a lot of different types of connections. The Interfaces tab is where you turn these different connections on or off, so that your Raspberry Pi recognises that you’ve linked something to it via a particular type of connection.
- Camera — enable the Raspberry Pi Camera Module
- SSH — allow remote access to your Raspberry Pi from another computer using SSH
- VNC — allow remote access to the Raspberry Pi Desktop from another computer using VNC
- SPI — enable the SPI GPIO pins
- I2C — enable the I2C GPIO pins
- Serial — enable the Serial (Rx, Tx) GPIO pins
- 1-Wire — enable the 1-Wire GPIO pin
- Remote GPIO — allow access to your Raspberry Pi’s GPIO pins from another computer
If you need to do so for a particular project you want to work on, you can change the performance settings of your Raspberry Pi in this tab. Warning: Changing your Raspberry Pi’s performance settings may result in it behaving erratically or not working.
- Overclock — change the CPU speed and voltage to increase performance
- GPU Memory — change the allocation of memory given to the GPU
In the Localisation tab:
This tab allows you to change your Raspberry Pi settings to be specific to a country or location.
- Locale — set the language, country, and character set used by your Raspberry Pi
- Timezone — set the time zone
- Keyboard — change your keyboard layout
- WiFi Country — set the WiFi country code
You have learnt about the Raspberry Pi 4 model B.
Check for more DIY projects here.