This post was last edited by Electronic Bad Man on 2023-12-21 11:16
When I was helping my friend buy modules at Digi-Key, I accidentally wanted to see what the price of Raspberry Pi was, so I checked the price of 5B:
The price of Raspberry Pi 4B on Digi-Key is 447, while the price of 5B is only 487, a difference of 40 yuan.
In comparison, there are a lot of 5Bs on Taobao that cost more than 500 yuan, and Digi-Key also offers free shipping, so it is obviously more attractive.
Place an order without hesitation!
I placed the order on the 14th and the goods arrived on the 20th. The total transportation time was less than a week, and the goods were available faster than I expected.
I was a little disappointed. The packaging was quite simple. It was just a cardboard box containing the PI5 and a simple instruction manual. There were no extra accessories.
It can be seen that the biggest change between 5B and 4B is the addition of many interfaces and the swapping of the RJ45 network port and USB.
The heat generated by the chip is several orders of magnitude higher than that of 4B. It is recommended to purchase a cooling package or use a heat sink with a fan to suppress it.
For burning, try to choose the official Raspberry Pi burning tool to ensure compatibility. For capacity, it is recommended to prepare a memory card of 32G or more.
I chose to burn UBUNTU 23 here, which is also the only UBT image currently supported by Raspberry Pi 5
After burning, insert the card, connect the power supply and screen, and turn on the computer.
It's still a familiar taste. After configuring the user, you can successfully enter the world of UBUNTU23
This time, the mirror source address server of 5B is not as slow as 4B. Considering that there are often errors when changing the source, we choose not to change the source here.
Update and install some common software:
sudo apt install update
sudo apt install upgrade
Install the editing software:
sudo apt install vim
sudo apt install gedit
#按照喜好选择即可
ssh: (can be configured in advance in the burning software)
sudo apt install ssh
python3 and pip:
sudo apt install python3
#官方镜像默认安装了python3.11,可以跳过这一步
sudo apt install pip
Since UBT23 has not yet installed ROS2, I will first install OPENCV to play with it.
The opencv installed by PIP INSTALL cannot fully play its role. If necessary, you can download the installation package and compile it from scratch. You can refer to Weixue's tutorial:
Raspberry Pi OpenCV series tutorial 1: Development environment setup - Raspberry Pi OpenCV tutorial Weixue Classroom (waveshare.net)
pip3 install opencv-python
pip3 install numpy
sudo apt-get install libjpeg8-dev -y
sudo apt-get install libtiff5-dev -y
sudo apt-get install libjasper-dev -y
sudo apt-get install libpng12-dev -y
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt-get install libgtk2.0-dev -y
sudo apt-get install libatlas-base-dev gfortran -y
#安装一些依赖库,避免报错
Download a camera app to check if the camera is working properly:
sudo apt-get install guvcview
guvcview
You can choose to use a USB (v4l2) camera or a zero2w camera and cable, the interfaces are compatible.
However, according to my understanding, the CSI cable camera needs to modify the device tree or enable the device before it can be used normally. Simply connecting the camera will not work properly.
The blogger will start writing various course articles and experimental reports first, and will update other parts after the holiday.
Stay tuned...