1599 views|8 replies

126

Posts

1

Resources
The OP
 

Raspberry Pi 5B unboxing + opencv simple environment construction [Copy link]

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...

This post is from Linux and Android

Latest reply

Is it necessary to use a fan? I saw some comments saying that if the power supply is not strong enough, it may not work.   Details Published on 2023-12-22 16:22
Personal signature

没用比没有强


33

Posts

3

Resources
2
 


This post is from Linux and Android
 
 

153

Posts

0

Resources
3
 

What a great board!


This post is from Linux and Android
 
 
 

6064

Posts

4

Resources
4
 

Are the prices of 5B and 4B similar?

This post is from Linux and Android

Comments

The price difference is 40, it is definitely not as low as it was a few years ago, I think it is worth buying  Details Published on 2023-12-21 14:26
 
 
 

1w

Posts

204

Resources
5
 

Wow, that's very fast.


This post is from Linux and Android
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 
 

126

Posts

1

Resources
6
 
damiaa posted on 2023-12-21 12:47 Are the prices of 5B and 4B similar?

The price difference is 40, it is definitely not as low as it was a few years ago, I think it is worth buying

This post is from Linux and Android
 
Personal signature

没用比没有强

 
 

7422

Posts

2

Resources
7
 

Is the 5 obviously faster than the 4? Looking forward to the in-depth review!

This post is from Linux and Android

Comments

Now it seems to run much faster than 4, let's run a stress test later  Details Published on 2023-12-21 21:20
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

126

Posts

1

Resources
8
 
freebsder posted on 2023-12-21 19:36 Is 5 more obvious than 4? Looking forward to the in-depth review!

Now it seems to run much faster than 4, let's run a stress test later

This post is from Linux and Android
 
Personal signature

没用比没有强

 
 

7422

Posts

2

Resources
9
 

Is it necessary to use a fan? I saw some comments saying that if the power supply is not strong enough, it may not work.

This post is from Linux and Android
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list