- Hands-On Robotics Programming with C++
- Dinesh Tavasalkar
- 416字
- 2021-06-24 15:30:24
Setting up the Raspberry Pi 3B+
After booting the Raspbian OS from the microSD card, we will set up the Raspberry Pi by connecting different peripherals to it, as follows:
- Insert the microSD card into the SD card slot, which is located on the back of the Raspberry Pi 3B+:

- Connect the keyboard and mouse to the USB ports of the Raspberry Pi 3B+. It is also possible to use a wireless keyboard and mouse:

- The Raspberry Pi 3B+ contains an HDMI port with which we can connect the RPi to a display unit, such as a computer monitor or TV. Connect one end of the HDMI cable to the Raspberry Pi's HDMI port and the other end to a display unit:

- Finally, to turn the Raspberry Pi on, we need to provide it with power. A typical Raspberry Pi requires 5V of power and ideally 2.5A of current. There are two methods that we can use to supply power to the Raspberry Pi:
-
- Smartphone charger: Most smartphone chargers provide a 5V voltage output and 2.5A of current output. If you take a closer look at your smartphone charger, you will find the maximum voltage and the current output value printed on it, as shown in the following photo. On my charger, the current output of 3A indicates the maximum current output. The charger, however, will only provide the current output as required for the RPi and not the maximum current of 3A. Note that the Raspberry Pi contains a micro USB B port, so, to connect to the power port of Raspberry Pi, we need to connect a micro USB B wire to our charger:

-
- Power bank or battery bank: Alternatively, we can use a power bank or a battery bank. As mentioned earlier, we need to connect the power bank to the Raspberry Pi via micro USB B port, and we also need to make sure that it provides 5V of voltage output and around 2.5A of current output:

- Once everything is plugged in, turn the display unit on and make sure that you have selected the correct HDMI option.
- Next, turn on the power supply. You will see the red LED on your Raspberry Pi turn on. Wait for around 10-20 seconds for the Raspberry Pi to boot up. Once this is done, you will see the following screen:

Now that we've got our Raspberry Pi 3B+ running, let's connect it to the internet.
推薦閱讀
- C++面向?qū)ο蟪绦蛟O(shè)計(第三版)
- Boost C++ Application Development Cookbook(Second Edition)
- Learning Docker
- C和C++安全編碼(原書第2版)
- Practical DevOps
- 單片機應(yīng)用技術(shù)
- Python數(shù)據(jù)分析從0到1
- 飛槳PaddlePaddle深度學(xué)習(xí)實戰(zhàn)
- RISC-V體系結(jié)構(gòu)編程與實踐(第2版)
- Selenium Testing Tools Cookbook(Second Edition)
- Unity 2D Game Development Cookbook
- ActionScript 3.0從入門到精通(視頻實戰(zhàn)版)
- Spring Boot學(xué)習(xí)指南:構(gòu)建云原生Java和Kotlin應(yīng)用程序
- Node.js Web Development
- Learning WebRTC